rygel r88 - in trunk: . src



Author: zeeshanak
Date: Tue Oct 28 20:59:59 2008
New Revision: 88
URL: http://svn.gnome.org/viewvc/rygel?rev=88&view=rev

Log:
Provide the 'creator' tag in DIDL xml for all items.

The same value is provided in 'author' and 'artist' tags for music and video
items respectively.

Modified:
   trunk/ChangeLog
   trunk/src/gupnp-media-tracker.vala

Modified: trunk/src/gupnp-media-tracker.vala
==============================================================================
--- trunk/src/gupnp-media-tracker.vala	(original)
+++ trunk/src/gupnp-media-tracker.vala	Tue Oct 28 20:59:59 2008
@@ -572,23 +572,22 @@
                                      upnp_class);
 
         if (author != "") {
-            string prop_name, prop_namespace;
+            this.didl_writer.add_string ("creator",
+                                         DIDLLiteWriter.NAMESPACE_DC,
+                                         null,
+                                         author);
 
             if (upnp_class == VIDEO_CLASS) {
-                prop_name = "author";
-                prop_namespace = DIDLLiteWriter.NAMESPACE_UPNP;
-            } else if (upnp_class == IMAGE_CLASS) {
-                prop_name = "creator";
-                prop_namespace = DIDLLiteWriter.NAMESPACE_DC;
+                this.didl_writer.add_string ("author",
+                                             DIDLLiteWriter.NAMESPACE_UPNP,
+                                             null,
+                                             author);
             } else if (upnp_class == MUSIC_CLASS) {
-                prop_name = "artist";
-                prop_namespace = DIDLLiteWriter.NAMESPACE_UPNP;
+                this.didl_writer.add_string ("artist",
+                                             DIDLLiteWriter.NAMESPACE_UPNP,
+                                             null,
+                                             author);
             }
-
-            this.didl_writer.add_string (prop_name,
-                                         prop_namespace,
-                                         null,
-                                         author);
         }
 
         if (track_number >= 0) {



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