media-export: fix child count reporting
authorJens Georg <mail@jensge.org>
Wed, 24 Jun 2009 22:12:19 +0000 (00:12 +0200)
committerJens Georg <mail@jensge.org>
Thu, 25 Jun 2009 12:43:45 +0000 (14:43 +0200)
src/plugins/media-export/rygel-media-export-root-container.vala

index b8747ad..17c59aa 100644 (file)
@@ -34,6 +34,7 @@ public class Rygel.MediaExportRootContainer : MediaContainer {
                                        Cancellable? cancellable,
                                        AsyncReadyCallback callback)
     {
+        debug ("Get children called for root container");
         this.root_container.get_children (offset,
                                           max_count,
                                           cancellable,
@@ -117,11 +118,12 @@ public class Rygel.MediaExportRootContainer : MediaContainer {
                                 extractor);
                     this.harvester.add (harvest);
                     harvest.harvest (file);
-                } else {
-                    this.child_count++;
-                    this.updated ();
                 }
             }
         }
+
+        this.child_count = this.root_container.child_count;
+
+        debug ("Root container child count: %u", child_count);
     }
 }