[rygel/rygel-0-14] server: Always set complete seek range



commit 6afee764be64d0239d426f48cc7754aa6ad97ef9
Author: Jens Georg <jensg openismus com>
Date:   Thu Sep 6 17:57:54 2012 +0200

    server: Always set complete seek range
    
    So the pipeline generates EOS when it reaches the end; that prevents
    that for 0-n requests the pipeline is running all the time, spamming
    useless idle callbacks.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=671361
    
    Conflicts:
    	src/rygel/rygel-http-response.vala

 src/rygel/rygel-http-response.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala
index bbcf655..1617547 100644
--- a/src/rygel/rygel-http-response.vala
+++ b/src/rygel/rygel-http-response.vala
@@ -88,7 +88,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
 
     public async void run () {
         // Only bother attempting to seek if the offset is greater than zero.
-        if (this.seek != null && this.seek.start > 0) {
+        if (this.seek != null) {
             this.pipeline.set_state (State.PAUSED);
         } else {
             this.pipeline.set_state (State.PLAYING);
@@ -212,7 +212,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
                 return true;
             }
 
-            if (this.seek != null && this.seek.start > 0) {
+            if (this.seek != null) {
                 State old_state;
                 State new_state;
 



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