Commit f87d38c1 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

tests: meta: fix msvc compiler warnings

gstmeta.c(167): warning C4090: 'function': different 'const' qualifiers
gstmeta.c(172): warning C4090: 'function': different 'const' qualifiers
gstmeta.c(211): warning C4090: 'function': different 'const' qualifiers
gstmeta.c(216): warning C4090: 'function': different 'const' qualifiers
parent 04deaac7
......@@ -164,12 +164,12 @@ gst_meta_test_get_info (void)
{
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;
}
......@@ -208,12 +208,12 @@ gst_meta_foo_get_info (void)
{
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment