mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 14:40:43 +00:00
Fix manual reset behavior of Win32 events.
Events have a “reset” member that specify if they flag is automatically set back on read/wait. However, this was populated by bManualReset, so the flag was inverted and once an event was set, it would forever be counted as so. Fixed by inverting the flag. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30831 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
84bcc5642a
commit
c6fb73d6b1
@ -736,7 +736,7 @@ static void* WINAPI expCreateEventA(void* pSecAttr, char bManualReset,
|
||||
mlist->pm=pm;
|
||||
mlist->pc=pc;
|
||||
mlist->state=bInitialState;
|
||||
mlist->reset=bManualReset;
|
||||
mlist->reset=!bManualReset;
|
||||
if(name)
|
||||
strncpy(mlist->name, name, 127);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user