media-export: Comment on expensive statement
authorJens Georg <mail@jensge.org>
Mon, 28 Sep 2009 08:30:34 +0000 (10:30 +0200)
committerJens Georg <mail@jensge.org>
Tue, 6 Oct 2009 15:56:59 +0000 (17:56 +0200)
src/plugins/media-export/rygel-media-export-root-container.vala

index f393717..2ba516f 100644 (file)
@@ -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