[rygel/wip/create-reference: 2/5] media-export: Always show playlist container



commit 756f7e46acbe7c616b323440720b313c3dbbcb78
Author: Jens Georg <jensg openismus com>
Date:   Wed Apr 10 16:25:28 2013 +0200

    media-export: Always show playlist container

 .../rygel-media-export-root-container.vala         |    6 ++++--
 1 files changed, 4 insertions(+), 2 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 1cd62d2..10c569c 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -653,8 +653,10 @@ public class Rygel.MediaExport.RootContainer : TrackableDbContainer {
         }
 
         // If no child QueryContainers were added, remove
-        // the provided parent container.
-        if (this.media_db.get_child_count (container.id) == 0) {
+        // the provided parent container. Unless it's the Playlist container.
+        if (this.media_db.get_child_count (container.id) == 0 &&
+            !container.id.has_prefix ("virtual-parent:" +
+                                      Rygel.PlaylistItem.UPNP_CLASS)) {
             this.media_db.remove_by_id (container.id);
         } else {
             container.updated ();


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