mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
queue2: Only update current level if we already downloaded a range
Otherwise queue->level is NULL and dereferencing that is not a good idea in general. https://bugzilla.gnome.org/show_bug.cgi?id=707648
This commit is contained in:
parent
dae27ba3d3
commit
b25b9ad6bd
1 changed files with 2 additions and 1 deletions
|
@ -877,6 +877,7 @@ update_buffering (GstQueue2 * queue)
|
||||||
gboolean post = FALSE;
|
gboolean post = FALSE;
|
||||||
|
|
||||||
/* Ensure the variables used to calculate buffering state are up-to-date. */
|
/* Ensure the variables used to calculate buffering state are up-to-date. */
|
||||||
|
if (queue->current)
|
||||||
update_cur_level (queue, queue->current);
|
update_cur_level (queue, queue->current);
|
||||||
update_in_rates (queue);
|
update_in_rates (queue);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue