From 8df7ce0a23e51204c7c86cef4231af02ca504ff6 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Wed, 10 Apr 2013 16:25:28 +0200 Subject: [PATCH] media-export: Always show playlist container https://bugzilla.gnome.org/show_bug.cgi?id=697949 --- src/plugins/media-export/rygel-media-export-root-container.vala | 6 ++++-- 1 file 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 1fe4523..8da3565 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 (); -- 2.7.4