[rygel] core: "upnp:class" is mandatory property.



commit fe968d202cc5f313b87348fed024d5dd5342d543
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Jun 22 23:32:07 2009 +0300

    core: "upnp:class" is mandatory property.

 src/rygel/rygel-didl-lite-writer.vala |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/src/rygel/rygel-didl-lite-writer.vala b/src/rygel/rygel-didl-lite-writer.vala
index 4c5f2aa..a497501 100644
--- a/src/rygel/rygel-didl-lite-writer.vala
+++ b/src/rygel/rygel-didl-lite-writer.vala
@@ -65,12 +65,10 @@ internal class Rygel.DIDLLiteWriter : GUPnP.DIDLLiteWriter {
                          null,
                          item.title);
 
-        if (filter.have ("class", NAMESPACE_UPNP)) {
-            this.add_string ("class",
-                             NAMESPACE_UPNP,
-                             null,
-                             item.upnp_class);
-        }
+        this.add_string ("class",
+                         NAMESPACE_UPNP,
+                         null,
+                         item.upnp_class);
 
         if (item.author != null && item.author != "") {
             if (filter.have ("creator", NAMESPACE_UPNP)) {
@@ -151,12 +149,10 @@ internal class Rygel.DIDLLiteWriter : GUPnP.DIDLLiteWriter {
                               (int) container.child_count,
                               false,
                               false);
-        if (filter.have ("class", NAMESPACE_UPNP)) {
-            this.add_string ("class",
-                             NAMESPACE_UPNP,
-                             null,
-                             "object.container.storageFolder");
-        }
+        this.add_string ("class",
+                         NAMESPACE_UPNP,
+                         null,
+                         "object.container.storageFolder");
 
         this.add_string ("title",
                          NAMESPACE_DC,



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