Skip to content
Snippets Groups Projects
Commit ad27229d authored by Thibault Saunier's avatar Thibault Saunier :cactus:
Browse files

element: Rework set_child_property_by_pspec

It was making no sense to loose the information about the pspec itself
to retrieve the child associated to it and was failling when we were
forcing the AssociateType::prop synthax
parent b6b640d0
No related branches found
No related tags found
No related merge requests found
......@@ -1316,16 +1316,16 @@ void
ges_timeline_element_set_child_property_by_pspec (GESTimelineElement * self,
GParamSpec * pspec, GValue * value)
{
GObject *child;
ChildPropHandler *handler;
g_return_if_fail (GES_IS_TRACK_ELEMENT (self));
if (!ges_timeline_element_lookup_child (self, pspec->name, &child, &pspec))
handler = g_hash_table_lookup (self->priv->children_props, pspec);
if (!handler)
goto not_found;
g_object_set_property (child, pspec->name, value);
gst_object_unref (child);
g_param_spec_unref (pspec);
g_object_set_property (handler->child, pspec->name, value);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment