rtpjitterbuffer: Fix build warning in rtp_jitter_buffer_append_query()

This is to fix build warnings when using [-Wmaybe-uninitialized]
../gst/rtpmanager/rtpjitterbuffer.c:1237:10: warning: 'head' may be used uninitialized [-Wmaybe-uninitialized]
 1237 |   return head;

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5907>
This commit is contained in:
Hou Qi 2024-01-11 14:29:49 +09:00 committed by GStreamer Marge Bot
parent 991e0aaf3a
commit 2539bb0b1d

View file

@ -1312,7 +1312,7 @@ rtp_jitter_buffer_append_query (RTPJitterBuffer * jbuf, GstQuery * query)
RTPJitterBufferItem *item = RTPJitterBufferItem *item =
rtp_jitter_buffer_alloc_item (query, ITEM_TYPE_QUERY, -1, -1, -1, 0, -1, rtp_jitter_buffer_alloc_item (query, ITEM_TYPE_QUERY, -1, -1, -1, 0, -1,
NULL); NULL);
gboolean head; gboolean head = FALSE;
rtp_jitter_buffer_insert (jbuf, item, &head, NULL); rtp_jitter_buffer_insert (jbuf, item, &head, NULL);
return head; return head;
} }