multiqueue: fix warning: ‘is_query’ may be used uninitialized in this function
authorJames Hilliard <james.hilliard1@gmail.com>
Tue, 14 Jun 2022 09:29:41 +0000 (03:29 -0600)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 14 Jun 2022 12:54:35 +0000 (12:54 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2593>

subprojects/gstreamer/plugins/elements/gstmultiqueue.c

index ee12bd4..a4bd1ed 100644 (file)
@@ -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;