[MPlayer-dev-eng] [PATCH] Fix return values of WaitForSingleObject when checking an event

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


Subject says it all. Should be a pretty obvious fix.

--- 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 14:54:50.856147000 +0100
@@ -817,8 +821,8 @@
     switch(ml->type) {
     case 0: /* Event */
        if (duration == 0) { /* Check Only */
-           if (ml->state == 1) ret = WAIT_FAILED;
-           else                   ret = WAIT_OBJECT_0;
+           if (ml->state == 1) ret = WAIT_OBJECT_0;
+           else                   ret = WAIT_FAILED;
        }
        if (duration == -1) { /* INFINITE */
            if (ml->state == 0)

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



More information about the MPlayer-dev-eng mailing list