[vlc-devel] commit: Initialize threading code in libxml2 (Geoffroy Couprie )
git version control
git at videolan.org
Tue Sep 9 23:40:27 CEST 2008
vlc | branch: 0.9-bugfix | Geoffroy Couprie <geo.couprie at gmail.com> | Mon Sep 8 21:30:51 2008 +0200| [a271ee17dab009684f948c3ca08e18b3d32a673a] | committer: Jean-Baptiste Kempf
Initialize threading code in libxml2
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 432e45db4a193bb01408cc8edbe64cccea30e750)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a271ee17dab009684f948c3ca08e18b3d32a673a
---
modules/misc/xml/libxml.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/misc/xml/libxml.c b/modules/misc/xml/libxml.c
index 14f868a..cc46ab4 100644
--- a/modules/misc/xml/libxml.c
+++ b/modules/misc/xml/libxml.c
@@ -74,6 +74,8 @@ static int Open( vlc_object_t *p_this )
{
xml_t *p_xml = (xml_t *)p_this;
+ xmlInitParser();
+
p_xml->pf_reader_create = ReaderCreate;
p_xml->pf_reader_delete = ReaderDelete;
@@ -88,6 +90,7 @@ static int Open( vlc_object_t *p_this )
*****************************************************************************/
static void Close( vlc_object_t *p_this )
{
+ xmlCleanupParser();
VLC_UNUSED(p_this);
return;
}
More information about the vlc-devel
mailing list