[DVDnav-discuss] r1193 - trunk/libdvdnav/src/dvdnav_internal.h

erik subversion at mplayerhq.hu
Thu May 27 17:26:28 CEST 2010


Author: erik
Date: Thu May 27 17:26:27 2010
New Revision: 1193

Log:
Fix pthread_mutex_destroy macro for Win32

Win32 has a DestroyCriticalSection call that is the equivalent
to pthread_mutex_destroy. The macro for the Win32 port should
have this.

The VLC project fixed the Win32 macro for pthread_mutex_destroy
about 3 years ago. So this is a well tested patch according to
them.

Thanks goes to Jean-Baptiste for submitting this patch to the
dvdnav-discuss list.

Patch by Jean-Baptiste Kempf /jb*videolan#org\

Modified:
   trunk/libdvdnav/src/dvdnav_internal.h

Modified: trunk/libdvdnav/src/dvdnav_internal.h
==============================================================================
--- trunk/libdvdnav/src/dvdnav_internal.h	Wed May 26 01:33:59 2010	(r1192)
+++ trunk/libdvdnav/src/dvdnav_internal.h	Thu May 27 17:26:27 2010	(r1193)
@@ -34,7 +34,7 @@ typedef CRITICAL_SECTION pthread_mutex_t
 #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)
 
 #ifndef HAVE_GETTIMEOFDAY
 /* replacement gettimeofday implementation */


More information about the DVDnav-discuss mailing list