diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index c42457f365..63b3bc47bb 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -775,7 +775,7 @@ _save_assets (GString * str, GESProject * project) metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (asset)); append_escaped (str, g_markup_printf_escaped - ("\n", + (" \n", ges_asset_get_id (asset), g_type_name (ges_asset_get_extractable_type (asset)), properties, metas)); @@ -801,7 +801,7 @@ _save_tracks (GString * str, GESTimeline * timeline) metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (track)); append_escaped (str, g_markup_printf_escaped - ("\n", + (" \n", strtmp, track->type, nb_tracks++, metas)); g_free (strtmp); g_free (metas); @@ -837,7 +837,7 @@ _save_keyframes (GString * str, GESTrackElement * trackelement, gint index) append_escaped (str, g_markup_printf_escaped - ("type, track_id, @@ -922,7 +922,7 @@ _save_effect (GString * str, guint clip_id, GESTrackElement * trackelement, _save_keyframes (str, trackelement, -1); - append_escaped (str, g_markup_printf_escaped ("\n")); + append_escaped (str, g_markup_printf_escaped (" \n")); gst_structure_free (structure); } @@ -945,8 +945,8 @@ _save_layers (GString * str, GESTimeline * timeline) metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (layer)); append_escaped (str, g_markup_printf_escaped - ("\n", priority, - properties, metas)); + (" \n", + priority, properties, metas)); g_free (properties); g_free (metas); @@ -965,7 +965,7 @@ _save_layers (GString * str, GESTimeline * timeline) "supported-formats", "rate", "in-point", "start", "duration", "max-duration", "priority", "vtype", "uri", NULL); append_escaped (str, - g_markup_printf_escaped ("\n", nbclips, @@ -996,10 +996,11 @@ _save_layers (GString * str, GESTimeline * timeline) g_list_free_full (tracks, gst_object_unref); - g_string_append (str, "\n"); + g_string_append (str, " \n"); + nbclips++; } - g_string_append (str, "\n"); + g_string_append (str, " \n"); } } @@ -1014,13 +1015,13 @@ _save_timeline (GString * str, GESTimeline * timeline) metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (timeline)); append_escaped (str, - g_markup_printf_escaped ("\n", - properties, metas)); + g_markup_printf_escaped + (" \n", properties, metas)); _save_tracks (str, timeline); _save_layers (str, timeline); - g_string_append (str, "\n"); + g_string_append (str, " \n"); g_free (properties); g_free (metas); @@ -1035,7 +1036,8 @@ _save_stream_profiles (GString * str, GstEncodingProfile * sprof, const gchar *preset, *preset_name, *name, *description; append_escaped (str, - g_markup_printf_escaped ("\n")); + append_escaped (str, + g_markup_printf_escaped (" \n")); } } @@ -1161,18 +1164,18 @@ _save (GESFormatter * formatter, GESTimeline * timeline, GError ** error) properties = _serialize_properties (G_OBJECT (project), NULL); metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (project)); append_escaped (str, - g_markup_printf_escaped ("\n", + g_markup_printf_escaped (" \n", properties, metas)); g_free (properties); g_free (metas); - g_string_append (str, "\n"); + g_string_append (str, " \n"); _save_encoding_profiles (str, project); - g_string_append (str, "\n"); + g_string_append (str, " \n"); - g_string_append (str, "\n"); + g_string_append (str, " \n"); _save_assets (str, project); - g_string_append (str, "\n"); + g_string_append (str, " \n"); _save_timeline (str, timeline); g_string_append (str, "\n");