[rygel] server: Add PV subtitle to all resources
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: Add PV subtitle to all resources
- Date: Sun, 9 Aug 2015 11:33:37 +0000 (UTC)
commit eede5899ee02e4da1fe9612e64f0bfe484278a00
Author: Jens Georg <mail jensge org>
Date: Sun Aug 9 13:17:42 2015 +0200
server: Add PV subtitle to all resources
Work-around issue with resources without DLNA profile losing its dlna_flags.
Signed-off-by: Jens Georg <mail jensge org>
https://bugzilla.gnome.org/show_bug.cgi?id=753314
src/librygel-server/rygel-video-item.vala | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/librygel-server/rygel-video-item.vala b/src/librygel-server/rygel-video-item.vala
index df06221..01db4a3 100644
--- a/src/librygel-server/rygel-video-item.vala
+++ b/src/librygel-server/rygel-video-item.vala
@@ -186,14 +186,13 @@ public class Rygel.VideoItem : AudioItem, VisualItem {
// Add resource-level subtitle metadata to all streamable
// video resources Note: All resources have already been
// serialized by the base
+
+ // Work-around bgo#753382 - add subtitle to all resources
var resources = didl_item.get_resources ();
foreach (var resource in resources) {
- if ( (resource.protocol_info.dlna_flags
- & DLNAFlags.STREAMING_TRANSFER_MODE) != 0) {
- resource.subtitle_file_type =
- main_subtitle.caption_type.up ();
- resource.subtitle_file_uri = main_subtitle.uri;
- }
+ resource.subtitle_file_type =
+ main_subtitle.caption_type.up ();
+ resource.subtitle_file_uri = main_subtitle.uri;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]