Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>
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,
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