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

Steinar H. Gunderson sgunderson at bigfoot.com
Tue Mar 2 11:17:45 CET 2010


On Tue, Mar 02, 2010 at 08:00:09AM +0100, Reimar Döffinger wrote:
> Agreed, but there is an issue in the "Timed Wait" case as well,
> pthread_cond_timedwait is not called in a loop and the "ret"
> check only works by chance as long as ETIMEDOUT != WAIT_FAILED

The timed wait cases are generally broken anyway; most of the time they will
simply do nothing and return an undefined value. Fortunately I haven't seen
any codecs use them yet.

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



More information about the MPlayer-dev-eng mailing list