Commit 6c3528fb authored by Henry Wilkes's avatar Henry Wilkes Committed by Thibault Saunier
Browse files

xml-formatter: increase xges version to 0.6

Increase minor_version to 6 if a sub-project is saved under an asset or an asset includes a child stream-info element.
parent d3e2cf55
Pipeline #65736 passed with stages
in 41 minutes and 11 seconds
......@@ -35,7 +35,7 @@
#define parent_class ges_xml_formatter_parent_class
#define API_VERSION 0
#define MINOR_VERSION 5
#define MINOR_VERSION 6
#define VERSION 0.5
#define COLLECT_STR_OPT (G_MARKUP_COLLECT_STRING | G_MARKUP_COLLECT_OPTIONAL)
......@@ -1191,6 +1191,7 @@ _save_subproject (GESXmlFormatter * self, GString * str, GESProject * project,
ges_asset_get_id (subproject),
g_type_name (ges_asset_get_extractable_type (subproject)), properties,
metas), depth);
self->priv->min_version = MAX (self->priv->min_version, 6);
depth += 4;
GST_DEBUG_OBJECT (self, "Saving subproject %s (depth: %d)",
......@@ -1249,6 +1250,7 @@ _serialize_streams (GESXmlFormatter * self, GString * str,
(" <stream-info id='%s' extractable-type-name='%s' properties='%s' metadatas='%s' caps='%s'/>\n",
id, g_type_name (ges_asset_get_extractable_type (tmp->data)),
properties, metas, capsstr), depth);
self->priv->min_version = MAX (self->priv->min_version, 6);
g_free (metas);
g_free (properties);
g_free (capsstr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment