[rygel] core: Only offer time seeking if duration is known
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Only offer time seeking if duration is known
- Date: Thu, 5 Aug 2010 21:08:21 +0000 (UTC)
commit 232ec312e33c3dc9f4b71eb6aa394af57ac437c7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Aug 6 00:05:43 2010 +0300
core: Only offer time seeking if duration is known
This satisfies DLNA requirement 7.3.26.3.
src/rygel/rygel-transcoder.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-transcoder.vala b/src/rygel/rygel-transcoder.vala
index bc3e13a..fe6c8c2 100644
--- a/src/rygel/rygel-transcoder.vala
+++ b/src/rygel/rygel-transcoder.vala
@@ -79,7 +79,11 @@ internal abstract class Rygel.Transcoder : GLib.Object {
protocol_info.dlna_flags = DLNAFlags.STREAMING_TRANSFER_MODE |
DLNAFlags.SENDER_PACED |
DLNAFlags.DLNA_V15;
- protocol_info.dlna_operation = DLNAOperation.TIMESEEK;
+ if (item.duration > 0) {
+ protocol_info.dlna_operation = DLNAOperation.TIMESEEK;
+ } else {
+ protocol_info.dlna_operation = DLNAOperation.NONE;
+ }
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]