mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
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:
parent
e2dbc2affa
commit
3c53da5e09
1 changed files with 3 additions and 2 deletions
|
@ -114,13 +114,14 @@ gst_mpeg_video_meta_get_info (void)
|
||||||
{
|
{
|
||||||
static const GstMetaInfo *mpeg_video_meta_info = NULL;
|
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,
|
const GstMetaInfo *meta = gst_meta_register (GST_MPEG_VIDEO_META_API_TYPE,
|
||||||
"GstMpegVideoMeta", sizeof (GstMpegVideoMeta),
|
"GstMpegVideoMeta", sizeof (GstMpegVideoMeta),
|
||||||
(GstMetaInitFunction) gst_mpeg_video_meta_init,
|
(GstMetaInitFunction) gst_mpeg_video_meta_init,
|
||||||
(GstMetaFreeFunction) gst_mpeg_video_meta_free,
|
(GstMetaFreeFunction) gst_mpeg_video_meta_free,
|
||||||
(GstMetaTransformFunction) gst_mpeg_video_meta_transform);
|
(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;
|
return mpeg_video_meta_info;
|
||||||
|
|
Loading…
Reference in a new issue