[rygel] media-export: fix child count reporting



commit 06b8bb5a0e06160fe12be3a8ad8dc7544d0e938e
Author: Jens Georg <mail jensge org>
Date:   Thu Jun 25 00:12:19 2009 +0200

    media-export: fix child count reporting

 .../rygel-media-export-root-container.vala         |    8 +++++---
 1 files changed, 5 insertions(+), 3 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 b8747ad..17c59aa 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -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);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]