[rygel] core: Make use of new gupnp-av 'createClass' API
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Make use of new gupnp-av 'createClass' API
- Date: Mon, 8 Nov 2010 21:34:50 +0000 (UTC)
commit 0441d1b288f5964d02d12422c337fc4364dad6b9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Nov 8 00:42:11 2010 +0200
core: Make use of new gupnp-av 'createClass' API
src/rygel/rygel-media-container.vala | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-media-container.vala b/src/rygel/rygel-media-container.vala
index a0677f2..a1c687f 100644
--- a/src/rygel/rygel-media-container.vala
+++ b/src/rygel/rygel-media-container.vala
@@ -238,12 +238,9 @@ public abstract class Rygel.MediaContainer : MediaObject {
if (!this.restricted) {
didl_container.restricted = false;
- weak Xml.Node node = (Xml.Node) didl_container.xml_node;
- weak Xml.Ns ns = (Xml.Ns) didl_container.upnp_namespace;
-
var writable = this as WritableContainer;
foreach (var create_class in writable.create_classes) {
- node.new_child (ns, "createClass", create_class);
+ didl_container.add_create_class (create_class);
}
} else {
didl_container.restricted = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]