mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
decodebin: During pre-rolling always use the auto-preroll limits on multiqueues
Even if we're buffering in the multiqueues.
This commit is contained in:
parent
2d2aa02b77
commit
41117606dd
1 changed files with 3 additions and 3 deletions
|
@ -3174,11 +3174,11 @@ decodebin_set_queue_size (GstDecodeBin * dbin, GstElement * multiqueue,
|
|||
if (preroll || use_buffering) {
|
||||
/* takes queue limits, initially we only queue up up to the max bytes limit,
|
||||
* with a default of 2MB. we use the same values for buffering mode. */
|
||||
if ((max_bytes = dbin->max_size_bytes) == 0)
|
||||
if (preroll || (max_bytes = dbin->max_size_bytes) == 0)
|
||||
max_bytes = AUTO_PREROLL_SIZE_BYTES;
|
||||
if ((max_buffers = dbin->max_size_buffers) == 0)
|
||||
if (preroll || (max_buffers = dbin->max_size_buffers) == 0)
|
||||
max_buffers = AUTO_PREROLL_SIZE_BUFFERS;
|
||||
if ((max_time = dbin->max_size_time) == 0)
|
||||
if (preroll || (max_time = dbin->max_size_time) == 0)
|
||||
max_time = seekable ? AUTO_PREROLL_SEEKABLE_SIZE_TIME :
|
||||
AUTO_PREROLL_NOT_SEEKABLE_SIZE_TIME;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue