{
static const GstMetaInfo *meta_test_info = NULL;
- if (g_once_init_enter (&meta_test_info)) {
+ if (g_once_init_enter ((GstMetaInfo **) & meta_test_info)) {
const GstMetaInfo *mi = gst_meta_register (GST_META_TEST_API_TYPE,
"GstMetaTest",
sizeof (GstMetaTest),
test_init_func, test_free_func, test_transform_func);
- g_once_init_leave (&meta_test_info, mi);
+ g_once_init_leave ((GstMetaInfo **) & meta_test_info, (GstMetaInfo *) mi);
}
return meta_test_info;
}
{
static const GstMetaInfo *meta_foo_info = NULL;
- if (g_once_init_enter (&meta_foo_info)) {
+ if (g_once_init_enter ((GstMetaInfo **) & meta_foo_info)) {
const GstMetaInfo *mi = gst_meta_register (GST_META_FOO_API_TYPE,
"GstMetaFoo",
sizeof (GstMetaFoo),
foo_init_func, foo_free_func, foo_transform_func);
- g_once_init_leave (&meta_foo_info, mi);
+ g_once_init_leave ((GstMetaInfo **) & meta_foo_info, (GstMetaInfo *) mi);
}
return meta_foo_info;
}