mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
basexmlformatter: Do not allow empty file loading
This commit is contained in:
parent
602f49f3e1
commit
51403f65be
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ create_parser_context (GESBaseXmlFormatter * self, const gchar * uri,
|
|||
if (!g_file_load_contents (file, NULL, &xmlcontent, &xmlsize, NULL, &err))
|
||||
goto failed;
|
||||
|
||||
if (g_strcmp0 (xmlcontent, "") == 0)
|
||||
goto failed;
|
||||
|
||||
parsecontext = g_markup_parse_context_new (&self_class->content_parser,
|
||||
G_MARKUP_TREAT_CDATA_AS_TEXT, self, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue