summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-05-06 15:44:28 -0300
committerSebastian Dröge <sebastian@centricular.com>2016-08-19 11:25:37 +0300
commite3f2499ce735f25d0b25e182fd4774c7c22f485c (patch)
treec9177060c9a5eb56578db50f8ba0d8027fb8f0a7
parentcea51f1e5ae475fce220ff91dae078a32810a48f (diff)
formatter: Prefix all children properties in the XML formatter
Otherwise it will fail on properties that are mandatorily prefixed like the newly added deinterlacing properties
-rw-r--r--ges/ges-xml-formatter.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c
index b040d778..2ac6c6a7 100644
--- a/ges/ges-xml-formatter.c
+++ b/ges/ges-xml-formatter.c
@@ -994,9 +994,15 @@ _save_children_properties (GString * str, GESTrackElement * trackelement)
spec = pspecs[i];
if (_can_serialize_spec (spec)) {
+ gchar *spec_name =
+ g_strdup_printf ("%s::%s", g_type_name (spec->owner_type),
+ spec->name);
+
_init_value_from_spec_for_serialization (&val, spec);
ges_track_element_get_child_property_by_pspec (trackelement, spec, &val);
- gst_structure_set_value (structure, spec->name, &val);
+ gst_structure_set_value (structure, spec_name, &val);
+
+ g_free (spec_name);
g_value_unset (&val);
}
g_param_spec_unref (spec);