mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
queue2: add range only on sinkpad
Only add the range when we receive a segment event on the sinkpad. The add_range method will modify the write position, which only makes sense to do on the sinkpad.
This commit is contained in:
parent
e3ca88ea7b
commit
463a8d9abf
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_QUEUE (queue)) {
|
||||
if (!QUEUE_IS_USING_QUEUE (queue) && is_sink) {
|
||||
/* start is where we'll be getting from and as such writing next */
|
||||
queue->current = add_range (queue, start);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue