core: Set correct stop-type for byte-seek as well
authorJens Georg <mail@jensge.org>
Thu, 20 Oct 2011 16:28:30 +0000 (18:28 +0200)
committerJens Georg <mail@jensge.org>
Thu, 20 Oct 2011 16:45:22 +0000 (18:45 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=662125

src/rygel/rygel-http-response.vala

index 61df33b..bbecb61 100644 (file)
@@ -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,