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:
Thibault Saunier 2015-04-21 11:24:38 +02:00
parent 8dfac3c94f
commit 27c016a300

View file

@ -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);
} }
} }