From 0fc9d47feb38143712fec5f202256d93c512e650 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Sat, 25 Apr 2015 08:33:21 +0200 Subject: server: Fix npt=start- seeking Signed-off-by: Jens Georg https://bugzilla.gnome.org/show_bug.cgi?id=748410 --- src/librygel-server/rygel-http-time-seek-request.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.1