core: Port to new DIDL-Lite contributor APIs
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 2 Aug 2010 14:24:24 +0000 (17:24 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 2 Aug 2010 14:24:24 +0000 (17:24 +0300)
src/rygel/rygel-didl-lite-writer.vala

index 12a1071..f2e73a2 100644 (file)
@@ -64,12 +64,15 @@ internal class Rygel.DIDLLiteWriter : GUPnP.DIDLLiteWriter {
         didl_item.title = item.title;
         didl_item.upnp_class = item.upnp_class;
         if (item.author != null && item.author != "") {
-            didl_item.creator = item.author;
+            var contributor = didl_item.add_creator ();
+            contributor.name = item.author;
 
             if (item.upnp_class.has_prefix (MediaItem.VIDEO_CLASS)) {
-                didl_item.author = item.author;
+                contributor = didl_item.add_author ();
+                contributor.name = item.author;
             } else if (item.upnp_class.has_prefix (MediaItem.MUSIC_CLASS)) {
-                didl_item.artist = item.author;
+                contributor = didl_item.add_artist ();
+                contributor.name = item.author;
             }
         }