mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
ges-base-xml-formatter: fix property setting
GstStructureForeachFunc has a gboolean return value, and the foreach function will stop unless we return TRUE here. This meant it was potluck whether all properties in the structure got set or not. Fixes setting of text overlay clip text property in particular. https://bugzilla.gnome.org/show_bug.cgi?id=743874
This commit is contained in:
parent
462727d6d8
commit
80909fb99a
2 changed files with 3 additions and 2 deletions
|
@ -495,10 +495,11 @@ _set_child_property (GQuark field_id, const GValue * value,
|
|||
gst_object_unref (element);
|
||||
}
|
||||
|
||||
void
|
||||
gboolean
|
||||
set_property_foreach (GQuark field_id, const GValue * value, GObject * object)
|
||||
{
|
||||
g_object_set_property (object, g_quark_to_string (field_id), value);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static inline GESClip *
|
||||
|
|
|
@ -267,7 +267,7 @@ G_GNUC_INTERNAL void ges_base_xml_formatter_add_control_binding (GESBaseXmlForma
|
|||
const gchar *track_id,
|
||||
GSList * timed_values);
|
||||
|
||||
G_GNUC_INTERNAL void set_property_foreach (GQuark field_id,
|
||||
G_GNUC_INTERNAL gboolean set_property_foreach (GQuark field_id,
|
||||
const GValue * value,
|
||||
GObject * object);;
|
||||
|
||||
|
|
Loading…
Reference in a new issue