summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2015-04-25 08:33:21 +0200
committerJens Georg <mail@jensge.org>2015-04-25 08:36:28 +0200
commit0fc9d47feb38143712fec5f202256d93c512e650 (patch)
treecb25a315587b84cbd0b522c60a9c31a8553928fc /src
parent2e44039a26f2243b35da153df51dd945ddaf18ce (diff)
downloadrygel-0fc9d47feb38143712fec5f202256d93c512e650.tar.gz
server: Fix npt=start- seeking
Signed-off-by: Jens Georg <mail@jensge.org> https://bugzilla.gnome.org/show_bug.cgi?id=748410
Diffstat (limited to 'src')
-rw-r--r--src/librygel-server/rygel-http-time-seek-request.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librygel-server/rygel-http-time-seek-request.vala b/src/librygel-server/rygel-http-time-seek-request.vala
index 0633151c..0b4f58d3 100644
--- a/src/librygel-server/rygel-http-time-seek-request.vala
+++ b/src/librygel-server/rygel-http-time-seek-request.vala
@@ -178,8 +178,10 @@ public class Rygel.HTTPTimeSeekRequest : Rygel.HTTPSeekRequest {
this.range_duration = UNSPECIFIED;
} else {
if (positive_rate) {
+ this.end_time = this.total_duration - TimeSpan.MILLISECOND;
this.range_duration = this.total_duration - this.start_time;
} else {
+ this.end_time = 0;
// Going backward from start to 0
this.range_duration = this.start_time;
}