[rygel/rygel-0-12] media-export: Support videos without audio



commit c985e19ff8a7abef42527cf105afa264706be83e
Author: Jens Georg <mail jensge org>
Date:   Sun Nov 6 10:46:53 2011 +0100

    media-export: Support videos without audio

 .../media-export/rygel-media-export-item.vala      |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index 9e9ff2f..da2354d 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -83,13 +83,19 @@ namespace Rygel.MediaExport.ItemFactory {
                                     mime,
                                     size,
                                     mtime);
-        } else if (audio_streams != null && video_streams != null) {
+        } else if (video_streams != null) {
             item = new VideoItem (id, parent, "");
+
+            var audio_info = null as DiscovererAudioInfo;
+            if (audio_streams != null) {
+                audio_info = audio_streams.data;
+            }
+
             return fill_video_item (item as VideoItem,
                                     file,
                                     dlna_info,
                                     video_streams.data,
-                                    audio_streams.data,
+                                    audio_info,
                                     mime,
                                     size,
                                     mtime);



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