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
This commit is contained in:
Tim-Philipp Müller 2018-08-26 00:45:45 +02:00
parent 04deaac7a4
commit f87d38c186

View file

@ -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;
}