validate: Fix criticals around NULL structure usage

This commit is contained in:
Thibault Saunier 2020-04-23 20:10:48 -04:00
parent 7d3ada4f4e
commit 9aff82d6bb

View file

@ -650,13 +650,14 @@ _file_get_structures (GFile * file, gchar ** err)
g_string_free (l, TRUE);
goto failed;
}
} else {
gst_structure_set (structure,
"__lineno__", G_TYPE_INT, current_lineno,
"__filename__", G_TYPE_STRING, filename, NULL);
structures = g_list_append (structures, structure);
}
g_string_free (l, TRUE);
gst_structure_set (structure,
"__lineno__", G_TYPE_INT, current_lineno,
"__filename__", G_TYPE_STRING, filename, NULL);
structures = g_list_append (structures, structure);
g_string_free (l, TRUE);
lineno++;
if (*tmp)
tmp++;