[rygel/rygel-0-16] server: Ignore full-range seeks



commit 3b0cdc5d489a5d32b68e2e75a794a8e9841f7fcb
Author: Jens Georg <jensg openismus com>
Date:   Sun Oct 28 17:42:18 2012 +0100

    server: Ignore full-range seeks

 src/librygel-server/rygel-http-response.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-server/rygel-http-response.vala b/src/librygel-server/rygel-http-response.vala
index 2cc5238..072d813 100644
--- a/src/librygel-server/rygel-http-response.vala
+++ b/src/librygel-server/rygel-http-response.vala
@@ -271,6 +271,13 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
     }
 
     private bool perform_seek () {
+        // Just ignore full-range seeks
+        if (this.seek != null &&
+            this.seek.length >= this.seek.total_length) {
+            debug ("Seek is full-range seek, ignoring");
+            return true;
+        }
+
         var stop_type = Gst.SeekType.NONE;
         Format format;
 



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