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:
parent
1eaa671feb
commit
4a857fbf87
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user