From: Sebastian Dröge Date: Tue, 10 Sep 2013 08:15:03 +0000 (+0200) Subject: queue2: Only update current level if we already downloaded a range X-Git-Tag: 1.1.90~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b25b9ad6bda052d013a5531f7fe43f84256117b7;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 6bef04d..2452385 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -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))