ges: launcher: fix compiler warning with MSVC 2022

tools/ges-launcher.c(315): warning C4133: 'function':
incompatible types - from 'GESTrackType *' to 'guint *'

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5312>
This commit is contained in:
Tim-Philipp Müller 2023-09-11 00:24:03 +01:00 committed by GStreamer Marge Bot
parent 1eaa671feb
commit 4a857fbf87

View file

@ -312,9 +312,12 @@ static gboolean
_parse_track_type (const gchar * option_name, const gchar * value,
GESLauncherParsedOptions * opts, GError ** error)
{
if (!get_flags_from_string (GES_TYPE_TRACK_TYPE, value, &opts->track_types))
guint flags = 0;
if (!get_flags_from_string (GES_TYPE_TRACK_TYPE, value, &flags))
return FALSE;
opts->track_types = (GESTrackType) flags;
return TRUE;
}