[rygel/rygel-0-16] server: Always set complete seek range
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-16] server: Always set complete seek range
- Date: Thu, 13 Sep 2012 06:40:25 +0000 (UTC)
commit c37bb36cf98af39f8874bc06698eb2bd3b13fd66
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]