From e4d4e0df1eb8bb8cf27535ca661f2067cf758a9a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sun, 29 Jul 2018 16:20:50 -0400 Subject: [PATCH] formatter: Fix mixup in variable check --- ges/ges-base-xml-formatter.c | 2 +- ges/ges-xml-formatter.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ges/ges-base-xml-formatter.c b/ges/ges-base-xml-formatter.c index 22986ba..0943085 100644 --- a/ges/ges-base-xml-formatter.c +++ b/ges/ges-base-xml-formatter.c @@ -1006,7 +1006,7 @@ ges_base_xml_formatter_add_clip (GESBaseXmlFormatter * self, pclip->properties = properties ? gst_structure_copy (properties) : NULL; pclip->children_properties = - properties ? gst_structure_copy (children_properties) : NULL; + children_properties ? gst_structure_copy (children_properties) : NULL; pclip->metadatas = g_strdup (metadatas); /* Add the new pending object to the hashtable */ diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index 13f7c6b..38a1537 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -1223,8 +1223,10 @@ _save_layers (GESXmlFormatter * self, GString * str, GESTimeline * timeline) ges_clip_get_supported_formats (clip), _START (clip), _DURATION (clip), _INPOINT (clip), 0, properties)); - if (GES_IS_TRANSITION_CLIP (clip)) + if (GES_IS_TRANSITION_CLIP (clip)) { _save_children_properties (str, GES_TIMELINE_ELEMENT (clip)); + self->priv->min_version = MAX (self->priv->min_version, 4); + } g_string_append (str, ">\n"); g_free (extractable_id); -- 2.7.4