[rygel] core: Fix extension for album art URI



commit d6f83bbe41ecb625aacbb3246b0de60123432612
Author: Jens Georg <mail jensge org>
Date:   Wed Feb 15 23:18:09 2012 +0200

    core: Fix extension for album art URI

 src/rygel/rygel-http-item-uri.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-http-item-uri.vala b/src/rygel/rygel-http-item-uri.vala
index ea06d8e..9f8fa4c 100644
--- a/src/rygel/rygel-http-item-uri.vala
+++ b/src/rygel/rygel-http-item-uri.vala
@@ -65,6 +65,12 @@ internal class Rygel.HTTPItemURI : Object {
                 if (thumbnails.size > thumbnail_index) {
                     this.extension = thumbnails[thumbnail_index].file_extension;
                 }
+            } else if (item is MusicItem) {
+                var album_art = (item as MusicItem).album_art;
+
+                if (album_art != null) {
+                    this.extension = album_art.file_extension;
+                }
             }
         } else if (subtitle_index > -1) {
             if (item is VideoItem) {



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