mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
multiqueue: percentage is an absolute value
multiqueue's queues stored percent value is the percentage from 0 to 100 (max-size-*) and should be compared with the requested limit (high_percentage) set by the user and not with 100% to check if buffering should stop. Otherwise we are only stopping buffering when the queue gets completely full.
This commit is contained in:
parent
a7f3571d02
commit
5a759011a0
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ update_buffering (GstMultiQueue * mq, GstSingleQueue * sq)
|
|||
for (iter = mq->queues; iter; iter = g_list_next (iter)) {
|
||||
GstSingleQueue *oq = (GstSingleQueue *) iter->data;
|
||||
|
||||
if (get_percentage (oq) >= 100) {
|
||||
if (get_percentage (oq) >= mq->high_percent) {
|
||||
is_buffering = FALSE;
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue