From: James Hilliard Date: Tue, 14 Jun 2022 09:29:41 +0000 (-0600) Subject: multiqueue: fix warning: ‘is_query’ may be used uninitialized in this function X-Git-Tag: 1.22.0~1459 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64ad82e00cafdc55293f3bc68ac502604dd2a8d5;p=platform%2Fupstream%2Fgstreamer.git multiqueue: fix warning: ‘is_query’ may be used uninitialized in this function Fixes: ../plugins/elements/gstmultiqueue.c: In function ‘gst_multi_queue_loop’: ../plugins/elements/gstmultiqueue.c:2394:19: warning: ‘is_query’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2394 | if (object && !is_query) | ^~~~~~~~~ Part-of: --- diff --git a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c index ee12bd4..a4bd1ed 100644 --- a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c +++ b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c @@ -2118,7 +2118,8 @@ gst_multi_queue_loop (GstPad * pad) guint32 newid; GstFlowReturn result; GstClockTimeDiff next_time; - gboolean is_buffer, is_query; + gboolean is_buffer; + gboolean is_query = FALSE; gboolean do_update_buffering = FALSE; gboolean dropping = FALSE; GstPad *srcpad = NULL;