From: Wim Taymans Date: Tue, 10 Apr 2012 09:16:14 +0000 (+0200) Subject: queue2: make range on newsegment for ringbuffer X-Git-Tag: RELEASE-0.11.90~11^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49a4b801ac8490731afbfbc176f8bf2adb0f1954;p=platform%2Fupstream%2Fgstreamer.git 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. --- 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 */