From: Zeeshan Ali (Khattak) Date: Mon, 22 Jun 2009 20:32:07 +0000 (+0300) Subject: core: "upnp:class" is mandatory property. X-Git-Tag: RYGEL_0_4~301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe968d202cc5f313b87348fed024d5dd5342d543;p=profile%2Fivi%2Frygel.git core: "upnp:class" is mandatory property. --- 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,