mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
queue2: set buffering mode correctly
This commit is contained in:
parent
cb6d9b071e
commit
7de963c0e0
1 changed files with 5 additions and 1 deletions
|
@ -798,7 +798,11 @@ update_buffering (GstQueue2 * queue)
|
|||
GstFormat fmt = GST_FORMAT_BYTES;
|
||||
gint64 duration;
|
||||
|
||||
mode = GST_BUFFERING_DOWNLOAD;
|
||||
if (QUEUE_IS_USING_RING_BUFFER (queue))
|
||||
mode = GST_BUFFERING_TIMESHIFT;
|
||||
else
|
||||
mode = GST_BUFFERING_DOWNLOAD;
|
||||
|
||||
if (queue->byte_in_rate > 0) {
|
||||
if (gst_pad_query_peer_duration (queue->sinkpad, &fmt, &duration))
|
||||
buffering_left =
|
||||
|
|
Loading…
Reference in a new issue