<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
git version control wrote:
<blockquote cite="mid:20090222182132.BF5EB2F773@skanda.videolan.org"
type="cite">
<pre wrap="">vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <a class="moz-txt-link-rfc2396E" href="mailto:rdenis@simphalempin.com"><rdenis@simphalempin.com></a> | Fri Feb 20 18:52:47 2009 +0200| [0fc400924a5bd1165ca78803db8989e377d1abd1] | committer: Rémi Denis-Courmont
libxml: ugly fix for plugin re-entrancy - refs #2541
</pre>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fc400924a5bd1165ca78803db8989e377d1abd1">http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fc400924a5bd1165ca78803db8989e377d1abd1</a>
</pre>
</blockquote>
<pre wrap=""><!---->---
modules/misc/xml/libxml.c | 39 +++++++++++++++++++++++++++++++++++++--
1 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/modules/misc/xml/libxml.c b/modules/misc/xml/libxml.c
index 1b25a82..e5de2f1 100644
--- a/modules/misc/xml/libxml.c
+++ b/modules/misc/xml/libxml.c
@@ -67,6 +67,31 @@ 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;
+#if defined (LIBVLC_USE_PTHREAD)
+static vlc_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
+#elif defined (WIN32)
+BOOL WINAPI DllMain (HINSTANCE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
+{
+ (void) hinstDll;
+ (void) lpvReserved;
+
+ switch (fdwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ vlc_mutex_init (&lock);
</pre>
</blockquote>
libxml.c:75: warning: no previous prototype for 'DllMain'<br>
libxml.c: In function `DllMain':<br>
libxml.c:82: error: `lock' undeclared (first use in this function)<br>
libxml.c:82: error: (Each undeclared identifier is reported only once<br>
libxml.c:82: error: for each function it appears in.)<br>
libxml.c: In function `Open':<br>
libxml.c:105: error: `lock' undeclared (first use in this function)<br>
libxml.c: In function `Close':<br>
libxml.c:124: error: `lock' undeclared (first use in this function)<br>
make[7]: *** [libxml_plugin_la-libxml.lo] Error 1<br>
<br>
What's lock? You never defined it in 0.9-bugfix<br>
</body>
</html>