Commit f3762035 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

xml-formatter: Print error if an effect can't be set when deserializing

parent 8474ef7b
......@@ -510,8 +510,15 @@ _set_child_property (GQuark field_id, const GValue * value,
/* FIXME: error handling? */
if (!ges_track_element_lookup_child (effect,
g_quark_to_string (field_id), &element, &pspec))
g_quark_to_string (field_id), &element, &pspec)) {
gchar *tmp = gst_value_serialize (value);
GST_ERROR_OBJECT (effect, "Could not set %s=%s",
g_quark_to_string (field_id), tmp);
g_free (tmp);
return TRUE;
g_object_set_property (G_OBJECT (element), pspec->name, value);
g_param_spec_unref (pspec);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment