[rygel] core: Fix album art



commit 68ed557960675061d8fd4e42618bf93bf163cc0a
Author: Jens Georg <mail jensge org>
Date:   Sat Apr 23 14:16:01 2011 +0300

    core: Fix album art
    
    Add album art as upnp:albumArtURI, not thumbnail. Was somehow lost.

 src/rygel/rygel-music-item.vala |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/rygel/rygel-music-item.vala b/src/rygel/rygel-music-item.vala
index 97d6949..2a8b621 100644
--- a/src/rygel/rygel-music-item.vala
+++ b/src/rygel/rygel-music-item.vala
@@ -132,13 +132,10 @@ public class Rygel.MusicItem : AudioItem {
         if (!this.place_holder &&
             this.album_art != null &&
             server.need_proxy (this.album_art.uri)) {
-            var uri = album_art.uri; // Save the original URI
-
-            album_art.uri = server.create_uri_for_item (this, 0, -1, null);
-            album_art.add_resource (didl_item, server.get_protocol ());
-
-            // Now restore the original URI
-            album_art.uri = uri;
+            didl_item.album_art = server.create_uri_for_item (this,
+                                                              0,
+                                                              -1,
+                                                              null);
         }
     }
 }



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