Cast away const from GstMetaInfo in *_get_meta_info() functions

MSVC warns about the const in the implicit argument conversion in the
calls to g_once_init_{enter,leave}. It's OK so explicitly cast it.

https://bugzilla.gnome.org/show_bug.cgi?id=774293
This commit is contained in:
Scott D Phillips 2016-11-14 16:59:48 -08:00 committed by Sebastian Dröge
parent e2dbc2affa
commit 3c53da5e09

View file

@ -114,13 +114,14 @@ gst_mpeg_video_meta_get_info (void)
{
static const GstMetaInfo *mpeg_video_meta_info = NULL;
if (g_once_init_enter (&mpeg_video_meta_info)) {
if (g_once_init_enter ((GstMetaInfo **) & mpeg_video_meta_info)) {
const GstMetaInfo *meta = gst_meta_register (GST_MPEG_VIDEO_META_API_TYPE,
"GstMpegVideoMeta", sizeof (GstMpegVideoMeta),
(GstMetaInitFunction) gst_mpeg_video_meta_init,
(GstMetaFreeFunction) gst_mpeg_video_meta_free,
(GstMetaTransformFunction) gst_mpeg_video_meta_transform);
g_once_init_leave (&mpeg_video_meta_info, meta);
g_once_init_leave ((GstMetaInfo **) & mpeg_video_meta_info,
(GstMetaInfo *) meta);
}
return mpeg_video_meta_info;