ges-base-xml-formatter: fix setting of child properties

Make sure all child properties get set. GstStructureForeachFunc
takes a gboolean return value that decides whether to
continue or not.
This commit is contained in:
Tim-Philipp Müller 2015-02-27 01:26:24 +00:00
parent 7e9a2ef6c0
commit af3fd19637

View file

@ -479,20 +479,22 @@ _loading_done_cb (GESFormatter * self)
return FALSE;
}
static void
static gboolean
_set_child_property (GQuark field_id, const GValue * value,
GESTrackElement * effect)
{
GParamSpec *pspec;
GstElement *element;
/* FIXME: error handling? */
if (!ges_track_element_lookup_child (effect,
g_quark_to_string (field_id), &element, &pspec))
return;
return TRUE;
g_object_set_property (G_OBJECT (element), pspec->name, value);
g_param_spec_unref (pspec);
gst_object_unref (element);
return TRUE;
}
gboolean