From 64ad82e00cafdc55293f3bc68ac502604dd2a8d5 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Tue, 14 Jun 2022 03:29:41 -0600 Subject: [PATCH] =?UTF-8?q?multiqueue:=20fix=20warning:=20=E2=80=98is=5Fqu?= =?UTF-8?q?ery=E2=80=99=20may=20be=20used=20uninitialized=20in=20this=20fu?= =?UTF-8?q?nction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: --- subprojects/gstreamer/plugins/elements/gstmultiqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c index ee12bd4a9d..a4bd1eda98 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;