[rygel] media-export: Always show playlist container
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Always show playlist container
- Date: Tue, 30 Apr 2013 10:42:07 +0000 (UTC)
commit 8df7ce0a23e51204c7c86cef4231af02ca504ff6
Author: Jens Georg <jensg openismus com>
Date: Wed Apr 10 16:25:28 2013 +0200
media-export: Always show playlist container
https://bugzilla.gnome.org/show_bug.cgi?id=697949
.../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 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]