From a5635bb8a9ab341e3bf4669b888cbc1d417771ac Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Thu, 20 Oct 2011 18:28:30 +0200 Subject: [PATCH] core: Set correct stop-type for byte-seek as well https://bugzilla.gnome.org/show_bug.cgi?id=662125 --- src/rygel/rygel-http-response.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala index 61df33b..bbecb61 100644 --- a/src/rygel/rygel-http-response.vala +++ b/src/rygel/rygel-http-response.vala @@ -278,13 +278,14 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine { if (this.seek is HTTPTimeSeek) { format = Format.TIME; - if (this.seek.stop > 0) { - stop_type = Gst.SeekType.SET; - } } else { format = Format.BYTES; } + if (this.seek.stop > 0) { + stop_type = Gst.SeekType.SET; + } + if (!this.pipeline.seek (1.0, format, SeekFlags.FLUSH | SeekFlags.ACCURATE, -- 2.7.4