mirror of https://github.com/mpv-player/mpv
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30913 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e4905ab24f
commit
f414a15b33
|
@ -1412,9 +1412,10 @@ static void WINAPI expInitializeCriticalSection(CRITICAL_SECTION* c)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
|
static WIN_BOOL WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
|
||||||
{
|
{
|
||||||
expInitializeCriticalSection(c);
|
expInitializeCriticalSection(c);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c)
|
static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c)
|
||||||
|
|
Loading…
Reference in New Issue