mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
991e0aaf3a
commit
2539bb0b1d
1 changed files with 1 additions and 1 deletions
|
@ -1312,7 +1312,7 @@ rtp_jitter_buffer_append_query (RTPJitterBuffer * jbuf, GstQuery * query)
|
|||
RTPJitterBufferItem *item =
|
||||
rtp_jitter_buffer_alloc_item (query, ITEM_TYPE_QUERY, -1, -1, -1, 0, -1,
|
||||
NULL);
|
||||
gboolean head;
|
||||
gboolean head = FALSE;
|
||||
rtp_jitter_buffer_insert (jbuf, item, &head, NULL);
|
||||
return head;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue