[0.10] gstreamer: queue2: make range on newsegment for ringbuffer

Wim Taymans wtay at kemper.freedesktop.org
Tue Apr 10 03:47:29 PDT 2012


Module: gstreamer
Branch: 0.10
Commit: 49a4b801ac8490731afbfbc176f8bf2adb0f1954
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=49a4b801ac8490731afbfbc176f8bf2adb0f1954

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Apr 10 11:16:14 2012 +0200

queue2: make range on newsegment for ringbuffer

When using the ringbuffer, handle the newsegment event like we handle it when
using the temp-file mode: create a new range for the new byte segment. The new
segment should normally already be created when we do a seek.

---

 plugins/elements/gstqueue2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c
index 77f68d9..548d99a 100644
--- a/plugins/elements/gstqueue2.c
+++ b/plugins/elements/gstqueue2.c
@@ -740,7 +740,7 @@ apply_segment (GstQueue2 * queue, GstEvent * event, GstSegment * segment,
       G_GINT64_FORMAT, update, rate, arate, format, start, stop, time);
 
   if (format == GST_FORMAT_BYTES) {
-    if (QUEUE_IS_USING_TEMP_FILE (queue)) {
+    if (!QUEUE_IS_USING_QUEUE (queue)) {
       /* start is where we'll be getting from and as such writing next */
       queue->current = add_range (queue, start);
       /* update the stats for this range */



More information about the gstreamer-commits mailing list