[rygel] core: initialize database backed container with correct child count
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: initialize database backed container with correct child count
- Date: Thu, 25 Jun 2009 15:46:55 +0000 (UTC)
commit dae0ec2bceb9e1c42e35734757071c8a7f507722
Author: Jens Georg <mail jensge org>
Date: Sun Jun 21 02:08:56 2009 +0200
core: initialize database backed container with correct child count
.../rygel-database-backed-media-container.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-database-backed-media-container.vala b/src/rygel/rygel-database-backed-media-container.vala
index 07f904c..44b83ed 100644
--- a/src/rygel/rygel-database-backed-media-container.vala
+++ b/src/rygel/rygel-database-backed-media-container.vala
@@ -30,7 +30,8 @@ public class Rygel.DatabaseBackedMediaContainer : Rygel.MediaContainer {
public DatabaseBackedMediaContainer (Rygel.MediaDB media_db,
string id,
string title) {
- base (id, null, title, 0);
+ var count = media_db.get_child_count (id);
+ base (id, null, title, count);
this.media_db = media_db;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]