mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
xml-formatter: Set errno to 0 before g_ascii_strtoll.
This commit is contained in:
parent
31257a260c
commit
0d2256b5bd
1 changed files with 2 additions and 0 deletions
|
@ -391,6 +391,7 @@ _parse_layer (GMarkupParseContext * context, const gchar * element_name,
|
||||||
goto wrong_properties;
|
goto wrong_properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
priority = g_ascii_strtoll (strprio, NULL, 10);
|
priority = g_ascii_strtoll (strprio, NULL, 10);
|
||||||
if (errno)
|
if (errno)
|
||||||
goto convertion_failed;
|
goto convertion_failed;
|
||||||
|
@ -451,6 +452,7 @@ _parse_clip (GMarkupParseContext * context,
|
||||||
if (!g_type_is_a (type, GES_TYPE_CLIP))
|
if (!g_type_is_a (type, GES_TYPE_CLIP))
|
||||||
goto wrong_type;
|
goto wrong_type;
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
track_types = g_ascii_strtoll (strtrack_types, NULL, 10);
|
track_types = g_ascii_strtoll (strtrack_types, NULL, 10);
|
||||||
if (errno)
|
if (errno)
|
||||||
goto convertion_failed;
|
goto convertion_failed;
|
||||||
|
|
Loading…
Reference in a new issue