Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
db8219ed
Commit
db8219ed
authored
Mar 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow libxml 2.7. Leak memory.
parent
5aa35524
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
configure.ac
configure.ac
+2
-2
modules/misc/xml/libxml.c
modules/misc/xml/libxml.c
+4
-10
No files found.
configure.ac
View file @
db8219ed
...
...
@@ -4311,13 +4311,13 @@ dnl
AC_ARG_ENABLE(libxml2,
[ --enable-libxml2 libxml2 support (default enabled)])
AS_IF([test "${enable_libxml2}" != "no"], [
PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.5
libxml-2.0 < 2.7
], [
PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.5], [
VLC_ADD_CPPFLAGS([xml],[${XML2_CFLAGS}])
VLC_ADD_LIBS([xml],[${XML2_LIBS}])
VLC_ADD_PLUGIN([xml])
], [
AS_IF([test "x${enable_xml2}" != "x"], [
AC_MSG_ERROR([Could not find libxml version 2.5 or
2.6
])
AC_MSG_ERROR([Could not find libxml version 2.5 or
higher
])
])
])
])
...
...
modules/misc/xml/libxml.c
View file @
db8219ed
...
...
@@ -35,10 +35,6 @@
#include <libxml/xmlreader.h>
#include <libxml/catalog.h>
#if !defined (LIBXML_VERSION) || (LIBXML_VERSION > 20700)
# error Stale config.cache detected. Erase it and re-run configure.
#endif
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -71,7 +67,6 @@ static void CatalogLoad( xml_t *, const char * );
static
void
CatalogAdd
(
xml_t
*
,
const
char
*
,
const
char
*
,
const
char
*
);
static
int
StreamRead
(
void
*
p_context
,
char
*
p_buffer
,
int
i_buffer
);
static
unsigned
refs
=
0
;
static
vlc_mutex_t
lock
=
VLC_STATIC_MUTEX
;
/*****************************************************************************
...
...
@@ -85,7 +80,6 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
vlc_mutex_lock
(
&
lock
);
if
(
refs
++
==
0
)
xmlInitParser
();
vlc_mutex_unlock
(
&
lock
);
...
...
@@ -103,11 +97,11 @@ static int Open( vlc_object_t *p_this )
*****************************************************************************/
static
void
Close
(
vlc_object_t
*
p_this
)
{
#ifdef LIBXML_GETS_A_CLUE_ABOUT_REENTRANCY_AND_MEMORY_LEAKS
vlc_mutex_lock
(
&
lock
);
if
(
--
refs
==
0
)
xmlCleanupParser
();
vlc_mutex_unlock
(
&
lock
);
#endif
VLC_UNUSED
(
p_this
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment