From 49a4b801ac8490731afbfbc176f8bf2adb0f1954 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 10 Apr 2012 11:16:14 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.7.4