mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate: Fix criticals around NULL structure usage
This commit is contained in:
parent
7d3ada4f4e
commit
9aff82d6bb
1 changed files with 6 additions and 5 deletions
|
@ -650,13 +650,14 @@ _file_get_structures (GFile * file, gchar ** err)
|
||||||
g_string_free (l, TRUE);
|
g_string_free (l, TRUE);
|
||||||
goto failed;
|
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,
|
g_string_free (l, TRUE);
|
||||||
"__lineno__", G_TYPE_INT, current_lineno,
|
|
||||||
"__filename__", G_TYPE_STRING, filename, NULL);
|
|
||||||
structures = g_list_append (structures, structure);
|
|
||||||
lineno++;
|
lineno++;
|
||||||
if (*tmp)
|
if (*tmp)
|
||||||
tmp++;
|
tmp++;
|
||||||
|
|
Loading…
Reference in a new issue