mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
xml-formatter: Serialize encoding profiles in reverse order
So they are reloaded in the right order.
This commit is contained in:
parent
2efebc8587
commit
daca7acf96
1 changed files with 4 additions and 1 deletions
|
@ -1399,8 +1399,10 @@ _save_encoding_profiles (GESXmlFormatter * self, GString * str,
|
|||
const gchar *profname, *profdesc, *profpreset, *proftype, *profpresetname;
|
||||
|
||||
const GList *tmp;
|
||||
GList *profiles = g_list_reverse (g_list_copy ((GList *)
|
||||
ges_project_list_encoding_profiles (project)));
|
||||
|
||||
for (tmp = ges_project_list_encoding_profiles (project); tmp; tmp = tmp->next) {
|
||||
for (tmp = profiles; tmp; tmp = tmp->next) {
|
||||
GstEncodingProfile *prof = GST_ENCODING_PROFILE (tmp->data);
|
||||
|
||||
profname = gst_encoding_profile_get_name (prof);
|
||||
|
@ -1447,6 +1449,7 @@ _save_encoding_profiles (GESXmlFormatter * self, GString * str,
|
|||
append_escaped (str,
|
||||
g_markup_printf_escaped (" </encoding-profile>\n"));
|
||||
}
|
||||
g_list_free (profiles);
|
||||
}
|
||||
|
||||
static GString *
|
||||
|
|
Loading…
Reference in a new issue