1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

removed delay debug printf, better 'active delay'

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1702 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-26 00:35:51 +00:00
parent 541720dbbf
commit 53113c0a7e

View File

@ -645,13 +645,13 @@ while(wsTrue){
// handle pending events
while ( XPending(wsDisplay) ){
XNextEvent( wsDisplay,&wsEvent );
printf("### X event: %d [%d]\n",wsEvent.type,delay);
// printf("### X event: %d [%d]\n",wsEvent.type,delay);
wsEvents( wsDisplay,&wsEvent,NULL );
delay=20;
delay=0;
}
mplTimerHandler(0); // handle timer event
usleep(delay*1000); // FIXME!
if(delay<8*20) delay+=20; // pump up delay up to 0.16 sec (low activity)
if(delay<10*20) delay+=20; // pump up delay up to 0.2 sec (low activity)
}
#else