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:
Thiago Santos 2014-11-23 05:42:51 -03:00
parent a7f3571d02
commit 5a759011a0

View file

@ -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;