mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +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=774641
This commit is contained in:
parent
f203c01af2
commit
3319ed17d8
1 changed files with 2 additions and 2 deletions
|
@ -438,14 +438,14 @@ gst_frame_positioner_get_info (void)
|
|||
{
|
||||
static const GstMetaInfo *meta_info = NULL;
|
||||
|
||||
if (g_once_init_enter (&meta_info)) {
|
||||
if (g_once_init_enter ((GstMetaInfo **) & meta_info)) {
|
||||
const GstMetaInfo *meta =
|
||||
gst_meta_register (gst_frame_positioner_meta_api_get_type (),
|
||||
"GstFramePositionerMeta",
|
||||
sizeof (GstFramePositionerMeta), gst_frame_positioner_meta_init,
|
||||
NULL,
|
||||
gst_frame_positioner_meta_transform);
|
||||
g_once_init_leave (&meta_info, meta);
|
||||
g_once_init_leave ((GstMetaInfo **) & meta_info, (GstMetaInfo *) meta);
|
||||
}
|
||||
return meta_info;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue