[rygel] server: Always set complete seek range



commit 9c817d244461e949e020430ac276d389a462028a
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

 src/librygel-server/rygel-http-response.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-server/rygel-http-response.vala b/src/librygel-server/rygel-http-response.vala
index 8485b25..2cc5238 100644
--- a/src/librygel-server/rygel-http-response.vala
+++ b/src/librygel-server/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);
@@ -229,7 +229,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
                 }
             }
 
-            if (this.seek != null && this.seek.start > 0) {
+            if (this.seek != null) {
                 if (old_state == State.READY && new_state == State.PAUSED) {
                     if (this.perform_seek ()) {
                         this.pipeline.set_state (State.PLAYING);



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