From: Thibault Saunier Date: Thu, 1 Dec 2016 20:08:43 +0000 (-0300) Subject: element: Rework set_child_property_by_pspec X-Git-Tag: 1.19.3~493^2~880 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad27229dac6c7a122f74722bbd1fba48699d0f23;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/ges/ges-timeline-element.c b/ges/ges-timeline-element.c index 0c4ca46..3a493cd 100644 --- a/ges/ges-timeline-element.c +++ b/ges/ges-timeline-element.c @@ -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;