]> git.sesse.net Git - vlc/commitdiff
destroy the critical section in libdvdnav
authorGeoffroy Couprie <geo.couprie@gmail.com>
Thu, 11 Sep 2008 11:33:22 +0000 (13:33 +0200)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Thu, 11 Sep 2008 11:33:22 +0000 (13:33 +0200)
extras/contrib/src/Patches/libdvdnav.patch

index 621da1b59033bd6d97d8bfe38a94399fa63f173e..11a5beab13fe71c4d1cc47a1036c7d02a8ddfce8 100644 (file)
@@ -46,3 +46,16 @@ Index: Makefile.am
  
  EXTRA_DIST = autogen.sh \
             AUTHORS \
+Index: src/dvdnav_internal.h
+===================================================================
+--- src/dvdnav_internal.h      (revision 1136)
++++ src/dvdnav_internal.h      working copy)
+@@ -37,7 +37,7 @@
+ #define pthread_mutex_init(a, b) InitializeCriticalSection(a)
+ #define pthread_mutex_lock(a)    EnterCriticalSection(a)
+ #define pthread_mutex_unlock(a)  LeaveCriticalSection(a)
+-#define pthread_mutex_destroy(a)
++#define pthread_mutex_destroy(a) DeleteCriticalSection(a)
+
+ /* replacement gettimeofday implementation */
+ #include <sys/timeb.h>
\ No newline at end of file