mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 23:59:55 +00:00
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:
parent
5a759011a0
commit
8d835ec400
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue