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

sesse subversion at mplayerhq.hu
Thu Mar 4 16:28:02 CET 2010


Author: sesse
Date: Thu Mar  4 16:28:02 2010
New Revision: 30831

Log:
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.

Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	Thu Mar  4 16:23:52 2010	(r30830)
+++ trunk/loader/win32.c	Thu Mar  4 16:28:02 2010	(r30831)
@@ -736,7 +736,7 @@ static void* WINAPI expCreateEventA(void
     mlist->pm=pm;
     mlist->pc=pc;
     mlist->state=bInitialState;
-    mlist->reset=bManualReset;
+    mlist->reset=!bManualReset;
     if(name)
 	strncpy(mlist->name, name, 127);
     else


More information about the MPlayer-cvslog mailing list