[MPlayer-dev-eng] [PATCH] X11 vo_wm_detect() correction and fs mode under wmaker
Sergey Pinaev
dfo at antex.ru
Sun Nov 10 10:59:21 CET 2002
hi.
On Wed, 6 Nov 2002 23:08:59 +0100
Arpi <arpi at thot.banki.hu> wrote:
A> Hi,
>> if ( wm != vo_wm_Unknown ) break;
>> XFree( name ); name=NULL;
>> }
>> - } while( c++ < 25 );
>> + } while( ( c += rval ? 1 : 0) < 25 );
>> if ( name ) XFree( name );
A> dunno.
A> what will happen if there are no 25 events ? hangup?
yes. possible "solution" is something like
timeout = 2;
starttime = time(NULL);
do {
....
} while( ( c += rval ? 1 : 0) < 25 && time(NULL) - starttime < timeout );
-------------------------------------------------
Sergey Pinaev, dfo at antex.ru, http://dfo.antex.ru/
More information about the MPlayer-dev-eng
mailing list