[rygel/rygel-0-12] core: Set correct stop-type for byte-seek as well



commit f2c8b2c0a4e8ff384481630476813491ab98e97c
Author: Jens Georg <mail jensge org>
Date:   Thu Oct 20 18:28:30 2011 +0200

    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 files 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]