From c7a956aede13771848acc8cd097d40976dbfb9b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Fri, 8 May 2020 11:19:24 +0200 Subject: [PATCH] video-anc: init type before g_once_init_enter Part-of: --- gst-libs/gst/video/video-anc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/video/video-anc.c b/gst-libs/gst/video/video-anc.c index 4b0a105..fbded45 100644 --- a/gst-libs/gst/video/video-anc.c +++ b/gst-libs/gst/video/video-anc.c @@ -932,7 +932,7 @@ gst_video_vbi_encoder_write_line (GstVideoVBIEncoder * encoder, guint8 * data) GType gst_video_caption_meta_api_get_type (void) { - static volatile GType type; + static volatile GType type = 0; if (g_once_init_enter (&type)) { static const gchar *tags[] = { NULL }; @@ -1135,7 +1135,7 @@ gst_video_caption_type_to_caps (GstVideoCaptionType type) GType gst_video_afd_meta_api_get_type (void) { - static volatile GType type; + static volatile GType type = 0; if (g_once_init_enter (&type)) { static const gchar *tags[] = { @@ -1227,7 +1227,7 @@ gst_buffer_add_video_afd_meta (GstBuffer * buffer, guint8 field, GType gst_video_bar_meta_api_get_type (void) { - static volatile GType type; + static volatile GType type = 0; if (g_once_init_enter (&type)) { static const gchar *tags[] = { -- 2.7.4