[rygel] media-export: Comment on expensive statement
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Comment on expensive statement
- Date: Mon, 12 Oct 2009 23:33:50 +0000 (UTC)
commit d683bcb46823e9a435b1fb8d51af19f270b5c476
Author: Jens Georg <mail jensge org>
Date: Mon Sep 28 10:30:34 2009 +0200
media-export: Comment on expensive statement
.../rygel-media-export-root-container.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index f393717..2ba516f 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -236,6 +236,9 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
case FileMonitorEvent.DELETED:
var id = Checksum.compute_for_string (ChecksumType.MD5,
file.get_uri ());
+
+ // the full object is fetched instead of simply calling exists
+ // because we need the parent to signalize the change
var obj = this.media_db.get_object (id);
// it may be that files removed are files that are not
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]