mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +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;
|
||||
}
|
||||
|
||||
errno = 0;
|
||||
priority = g_ascii_strtoll (strprio, NULL, 10);
|
||||
if (errno)
|
||||
goto convertion_failed;
|
||||
|
@ -451,6 +452,7 @@ _parse_clip (GMarkupParseContext * context,
|
|||
if (!g_type_is_a (type, GES_TYPE_CLIP))
|
||||
goto wrong_type;
|
||||
|
||||
errno = 0;
|
||||
track_types = g_ascii_strtoll (strtrack_types, NULL, 10);
|
||||
if (errno)
|
||||
goto convertion_failed;
|
||||
|
|
Loading…
Reference in a new issue