[MPlayer-cvslog] r30913 - trunk/loader/win32.c

sesse subversion at mplayerhq.hu
Tue Mar 16 23:08:56 CET 2010


Author: sesse
Date: Tue Mar 16 23:08:56 2010
New Revision: 30913

Log:
Fix return value of InitializeCriticalSectionAndSpinCount.

InitializeCriticalSectionAndSpinCount returns a nonzero value on success,
and some codecs (notably VP7) seemingly got confused when it didn't, if and
only if we tried to emulate NT or newer.

Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	Tue Mar 16 15:35:43 2010	(r30912)
+++ trunk/loader/win32.c	Tue Mar 16 23:08:56 2010	(r30913)
@@ -1412,9 +1412,10 @@ static void WINAPI expInitializeCritical
     return;
 }
 
-static void WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
+static WIN_BOOL WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
 {
     expInitializeCriticalSection(c);
+    return 1;
 }
 
 static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c)


More information about the MPlayer-cvslog mailing list