mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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.
This commit is contained in:
parent
829eafad0e
commit
49a4b801ac
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue