rygel r521 - in trunk/src/plugins: dvb tracker



Author: zeeshanak
Date: Wed Jan 28 12:35:00 2009
New Revision: 521
URL: http://svn.gnome.org/viewvc/rygel?rev=521&view=rev

Log:
Containers should initialize child_count at creation time.

Modified:
   trunk/src/plugins/dvb/rygel-dvb-root-container.vala
   trunk/src/plugins/tracker/rygel-tracker-container.vala

Modified: trunk/src/plugins/dvb/rygel-dvb-root-container.vala
==============================================================================
--- trunk/src/plugins/dvb/rygel-dvb-root-container.vala	(original)
+++ trunk/src/plugins/dvb/rygel-dvb-root-container.vala	Wed Jan 28 12:35:00 2009
@@ -96,6 +96,8 @@
                                                   channel_list,
                                                   http_server));
         }
+
+        this.child_count = this.groups.size;
     }
 
     public override Gee.List<MediaObject>? get_children (uint     offset,

Modified: trunk/src/plugins/tracker/rygel-tracker-container.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-tracker-container.vala	(original)
+++ trunk/src/plugins/tracker/rygel-tracker-container.vala	Wed Jan 28 12:35:00 2009
@@ -84,14 +84,11 @@
         this.category = category;
         this.child_class = child_class;
         this.http_server = http_server;
-    }
 
-    public override void serialize (DIDLLiteWriter didl_writer)
-                                    throws GLib.Error {
-        /* Update the child count */
+        /* FIXME: We need to hook to some tracker signals to keep
+         *        this field up2date at all times
+         */
         this.child_count = this.get_children_count ();
-
-        base.serialize (didl_writer);
     }
 
     private uint get_children_count () {



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