mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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:
parent
7e9a2ef6c0
commit
af3fd19637
1 changed files with 4 additions and 2 deletions
|
@ -479,20 +479,22 @@ _loading_done_cb (GESFormatter * self)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
_set_child_property (GQuark field_id, const GValue * value,
|
_set_child_property (GQuark field_id, const GValue * value,
|
||||||
GESTrackElement * effect)
|
GESTrackElement * effect)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
|
|
||||||
|
/* FIXME: error handling? */
|
||||||
if (!ges_track_element_lookup_child (effect,
|
if (!ges_track_element_lookup_child (effect,
|
||||||
g_quark_to_string (field_id), &element, &pspec))
|
g_quark_to_string (field_id), &element, &pspec))
|
||||||
return;
|
return TRUE;
|
||||||
|
|
||||||
g_object_set_property (G_OBJECT (element), pspec->name, value);
|
g_object_set_property (G_OBJECT (element), pspec->name, value);
|
||||||
g_param_spec_unref (pspec);
|
g_param_spec_unref (pspec);
|
||||||
gst_object_unref (element);
|
gst_object_unref (element);
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue