[rygel] core: Set correct stop-type for byte-seek as well
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Set correct stop-type for byte-seek as well
- Date: Thu, 20 Oct 2011 17:07:49 +0000 (UTC)
commit a5635bb8a9ab341e3bf4669b888cbc1d417771ac
Author: Jens Georg <mail jensge org>
Date: Thu Oct 20 18:28:30 2011 +0200
core: Set correct stop-type for byte-seek as well
https://bugzilla.gnome.org/show_bug.cgi?id=662125
src/rygel/rygel-http-response.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala
index 61df33b..bbecb61 100644
--- a/src/rygel/rygel-http-response.vala
+++ b/src/rygel/rygel-http-response.vala
@@ -278,13 +278,14 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
if (this.seek is HTTPTimeSeek) {
format = Format.TIME;
- if (this.seek.stop > 0) {
- stop_type = Gst.SeekType.SET;
- }
} else {
format = Format.BYTES;
}
+ if (this.seek.stop > 0) {
+ stop_type = Gst.SeekType.SET;
+ }
+
if (!this.pipeline.seek (1.0,
format,
SeekFlags.FLUSH | SeekFlags.ACCURATE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]