[rygel] core: Port to new DIDL-Lite contributor APIs



commit 625f99823ce9869ca933f12cbaa3400037def5d0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Aug 2 17:24:24 2010 +0300

    core: Port to new DIDL-Lite contributor APIs

 src/rygel/rygel-didl-lite-writer.vala |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-didl-lite-writer.vala b/src/rygel/rygel-didl-lite-writer.vala
index 12a1071..f2e73a2 100644
--- a/src/rygel/rygel-didl-lite-writer.vala
+++ b/src/rygel/rygel-didl-lite-writer.vala
@@ -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;
             }
         }
 



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