From fe968d202cc5f313b87348fed024d5dd5342d543 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Mon, 22 Jun 2009 23:32:07 +0300 Subject: [PATCH] core: "upnp:class" is mandatory property. --- src/rygel/rygel-didl-lite-writer.vala | 20 ++++++++------------ 1 file 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, -- 2.7.4