video-anc: init type before g_once_init_enter

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/675>
This commit is contained in:
Stéphane Cerveau 2020-05-08 11:19:24 +02:00
parent be3745cb92
commit c7a956aede

View file

@ -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[] = {