summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <jensg@openismus.com>2012-09-06 17:57:54 +0200
committerJens Georg <mail@jensge.org>2012-09-13 10:22:10 +0200
commit6afee764be64d0239d426f48cc7754aa6ad97ef9 (patch)
tree095e0d9561d63be175f5f618af80f1803507cff4
parentbf0d8b578d1e64b4fedd8a44bf14619ab544a2fc (diff)
downloadrygel-6afee764be64d0239d426f48cc7754aa6ad97ef9.tar.gz
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
-rw-r--r--src/rygel/rygel-http-response.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala
index bbcf6550..1617547b 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;