[rygel/wip/playlist-item: 7/9] media-export: Treat "application/ogg" as music items.



commit b4da5df9d17e1ab8c693fb33ad10e6f886450b5f
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Mon Nov 26 15:32:14 2012 +0100

    media-export: Treat "application/ogg" as music items.
    
    This is how it used to be - it was caught by using "else" clause. Now
    else is for DIDL_S playlists so "application/ogg" needs to be checked
    explicitly.

 .../media-export/rygel-media-export-item.vala      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index 454fb45..b9e3bd2 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -40,7 +40,7 @@ namespace Rygel.MediaExport.ItemFactory {
             item = new VideoItem (MediaCache.get_id (file), parent, title);
         } else if (mime.has_prefix ("image/")) {
             item = new PhotoItem (MediaCache.get_id (file), parent, title);
-        } else if (mime.has_prefix ("audio/")) {
+        } else if (mime.has_prefix ("audio/") || mime == "application/ogg") {
             item = new MusicItem (MediaCache.get_id (file), parent, title);
         } else { // application/xml
             // DLNA requires that DIDL_S playlist have text/xml MIME type.



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