{
static const GstMetaInfo *meta_info = NULL;
- if (g_once_init_enter (&meta_info)) {
+ if (g_once_init_enter ((GstMetaInfo **) & meta_info)) {
const GstMetaInfo *meta =
gst_meta_register (gst_parent_buffer_meta_api_get_type (),
"GstParentBufferMeta",
(GstMetaInitFunction) _gst_parent_buffer_meta_init,
(GstMetaFreeFunction) _gst_parent_buffer_meta_free,
_gst_parent_buffer_meta_transform);
- g_once_init_leave (&meta_info, meta);
+ g_once_init_leave ((GstMetaInfo **) & meta_info, (GstMetaInfo *) meta);
}
return meta_info;
{
static const GstMetaInfo *protection_meta_info = NULL;
- if (g_once_init_enter (&protection_meta_info)) {
+ if (g_once_init_enter ((GstMetaInfo **) & protection_meta_info)) {
const GstMetaInfo *meta =
gst_meta_register (GST_PROTECTION_META_API_TYPE, "GstProtectionMeta",
sizeof (GstProtectionMeta), gst_protection_meta_init,
gst_protection_meta_free, gst_protection_meta_transform);
- g_once_init_leave (&protection_meta_info, meta);
+ g_once_init_leave ((GstMetaInfo **) & protection_meta_info,
+ (GstMetaInfo *) meta);
}
return protection_meta_info;
}
{
static const GstMetaInfo *meta_info = NULL;
- if (g_once_init_enter (&meta_info)) {
+ if (g_once_init_enter ((GstMetaInfo **) & meta_info)) {
const GstMetaInfo *mi = gst_meta_register (GST_NET_ADDRESS_META_API_TYPE,
"GstNetAddressMeta",
sizeof (GstNetAddressMeta),
net_address_meta_init,
net_address_meta_free, net_address_meta_transform);
- g_once_init_leave (&meta_info, mi);
+ g_once_init_leave ((GstMetaInfo **) & meta_info, (GstMetaInfo *) mi);
}
return meta_info;
}
{
static const GstMetaInfo *meta_info = NULL;
- if (g_once_init_enter (&meta_info)) {
+ if (g_once_init_enter ((GstMetaInfo **) & meta_info)) {
const GstMetaInfo *mi =
gst_meta_register (GST_NET_CONTROL_MESSAGE_META_API_TYPE,
"GstNetControlMessageMeta",
net_control_message_meta_init,
net_control_message_meta_free,
net_control_message_meta_transform);
- g_once_init_leave (&meta_info, mi);
+ g_once_init_leave ((GstMetaInfo **) & meta_info, (GstMetaInfo *) mi);
}
return meta_info;
}