diff options
author | sesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-04 15:28:02 +0000 |
---|---|---|
committer | sesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-04 15:28:02 +0000 |
commit | c6fb73d6b1e9cbcb469b4a98352c6f3c504ba7fc (patch) | |
tree | ee42d83d1c5d44e2a185a146e3757ca8f7af33b2 /loader/win32.c | |
parent | 84bcc5642a5f58807493b776b565c28679870c4e (diff) | |
download | mpv-c6fb73d6b1e9cbcb469b4a98352c6f3c504ba7fc.tar.bz2 mpv-c6fb73d6b1e9cbcb469b4a98352c6f3c504ba7fc.tar.xz |
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
Diffstat (limited to 'loader/win32.c')
-rw-r--r-- | loader/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/win32.c b/loader/win32.c index b69cf103f1..20eda49c01 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -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 |