queue2: percentage is relative to high-percent

When comparing percentage values, compare with 0-100 scale as it
has already been made relative to 0-high_percent, otherwise we mark
the queue as not buffering and report a 50% to the user. This leads to
a buffering stall as the user assumes the queue is still buffering but
it thinks it isn't.

https://bugzilla.gnome.org/show_bug.cgi?id=736969
This commit is contained in:
Thiago Santos 2014-11-23 05:45:24 -03:00
parent 5a759011a0
commit 8d835ec400

View file

@ -953,7 +953,7 @@ update_buffering (GstQueue2 * queue)
if (queue->is_buffering) {
/* if we were buffering see if we reached the high watermark */
if (percent >= queue->high_percent)
if (percent >= 100)
queue->is_buffering = FALSE;
SET_PERCENT (queue, percent);