mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
xml-formatter: Properly report error parsing restriction caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>
This commit is contained in:
parent
78f8ae860e
commit
15af1f2baf
1 changed files with 9 additions and 0 deletions
|
@ -434,6 +434,8 @@ _parse_track (GMarkupParseContext * context, const gchar * element_name,
|
|||
|
||||
if (properties) {
|
||||
props = gst_structure_from_string (properties, NULL);
|
||||
if (!props)
|
||||
goto wrong_properties;
|
||||
}
|
||||
|
||||
ges_base_xml_formatter_add_track (GES_BASE_XML_FORMATTER (self), track_type,
|
||||
|
@ -460,6 +462,13 @@ convertion_failed:
|
|||
g_strerror (errno));
|
||||
return;
|
||||
|
||||
wrong_properties:
|
||||
gst_clear_caps (&caps);
|
||||
g_set_error (error, G_MARKUP_ERROR,
|
||||
G_MARKUP_ERROR_INVALID_CONTENT,
|
||||
"element '%s', Can not create properties: %s'", element_name, properties);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
|
Loading…
Reference in a new issue