[rygel] core: Hardcode the upnp_class in MediaContainer
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Hardcode the upnp_class in MediaContainer
- Date: Mon, 9 Nov 2009 18:46:01 +0000 (UTC)
commit 9a19717a1b7c184f7a597235ff67832ebea0a770
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 4 03:41:18 2009 +0200
core: Hardcode the upnp_class in MediaContainer
src/rygel/rygel-didl-lite-writer.vala | 2 +-
src/rygel/rygel-media-container.vala | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-didl-lite-writer.vala b/src/rygel/rygel-didl-lite-writer.vala
index 2d3165f..409751a 100644
--- a/src/rygel/rygel-didl-lite-writer.vala
+++ b/src/rygel/rygel-didl-lite-writer.vala
@@ -105,8 +105,8 @@ internal class Rygel.DIDLLiteWriter : GUPnP.DIDLLiteWriter {
didl_container.id = container.id;
didl_container.title = container.title;
didl_container.child_count = container.child_count;
+ didl_container.upnp_class = container.upnp_class;
didl_container.restricted = false;
didl_container.searchable = false;
- didl_container.upnp_class = "object.container.storageFolder";
}
}
diff --git a/src/rygel/rygel-media-container.vala b/src/rygel/rygel-media-container.vala
index 342350b..0a840a6 100644
--- a/src/rygel/rygel-media-container.vala
+++ b/src/rygel/rygel-media-container.vala
@@ -49,6 +49,7 @@ public abstract class Rygel.MediaContainer : MediaObject {
this.title = title;
this.child_count = child_count;
this.update_id = 0;
+ this.upnp_class = "object.container.storageFolder";
this.container_updated += on_container_updated;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]