mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ges:xml-formatter: Call g_markup_parse_context_end_parse
Summary: Otherwise the parser context will never know that is all the XML it will receive and fail out if the XML document is not valid (in that case if it does not end) https://bugzilla.gnome.org/show_bug.cgi?id=746354 Reviewers: Mathieu_Du Reviewed By: Mathieu_Du Differential Revision: http://phabricator.freedesktop.org/D38
This commit is contained in:
parent
8dfac3c94f
commit
27c016a300
1 changed files with 5 additions and 1 deletions
|
@ -184,6 +184,9 @@ create_parser_context (GESBaseXmlFormatter * self, const gchar * uri,
|
||||||
&err) == FALSE)
|
&err) == FALSE)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
|
if (!g_markup_parse_context_end_parse (parsecontext, &err))
|
||||||
|
goto failed;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (xmlcontent)
|
if (xmlcontent)
|
||||||
g_free (xmlcontent);
|
g_free (xmlcontent);
|
||||||
|
@ -446,7 +449,8 @@ _add_all_groups (GESFormatter * self)
|
||||||
GST_DEBUG_OBJECT (tmp->data, "Adding %s child %" GST_PTR_FORMAT " %s",
|
GST_DEBUG_OBJECT (tmp->data, "Adding %s child %" GST_PTR_FORMAT " %s",
|
||||||
(const gchar *) lchild->data, child,
|
(const gchar *) lchild->data, child,
|
||||||
GES_TIMELINE_ELEMENT_NAME (child));
|
GES_TIMELINE_ELEMENT_NAME (child));
|
||||||
ges_timeline_element_set_timeline (GES_TIMELINE_ELEMENT (pgroup->group), self->timeline);
|
ges_timeline_element_set_timeline (GES_TIMELINE_ELEMENT (pgroup->group),
|
||||||
|
self->timeline);
|
||||||
ges_container_add (GES_CONTAINER (pgroup->group), child);
|
ges_container_add (GES_CONTAINER (pgroup->group), child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue