[MPlayer-dev-eng] [PATCH] Fix manual reset behavior of Win32 events

Steinar H. Gunderson sgunderson at bigfoot.com
Mon Mar 1 15:07:42 CET 2010


Split out from the CineForm patch I posted a while ago, for easier reviewing:

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.

--- orig/mplayer-export-2010-02-28/loader/win32.c       2010-02-26 16:01:37.000000000 +0100
+++ mplayer-export-2010-02-28/loader/win32.c    2010-03-01 15:06:28.838753000 +0100
@@ -736,7 +739,7 @@
     mlist->pm=pm;
     mlist->pc=pc;
     mlist->state=bInitialState;
-    mlist->reset=bManualReset;
+    mlist->reset=!bManualReset;
     if(name)
        strncpy(mlist->name, name, 127);
     else

/* Steinar */
-- 
Homepage: http://www.sesse.net/



More information about the MPlayer-dev-eng mailing list