mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 20:12:28 +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,7 +877,8 @@ update_buffering (GstQueue2 * queue)
|
|||
gboolean post = FALSE;
|
||||
|
||||
/* Ensure the variables used to calculate buffering state are up-to-date. */
|
||||
update_cur_level (queue, queue->current);
|
||||
if (queue->current)
|
||||
update_cur_level (queue, queue->current);
|
||||
update_in_rates (queue);
|
||||
|
||||
if (!get_buffering_percent (queue, NULL, &percent))
|
||||
|
|
Loading…
Reference in a new issue