mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01: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:
parent
541720dbbf
commit
53113c0a7e
@ -645,13 +645,13 @@ while(wsTrue){
|
|||||||
// handle pending events
|
// handle pending events
|
||||||
while ( XPending(wsDisplay) ){
|
while ( XPending(wsDisplay) ){
|
||||||
XNextEvent( wsDisplay,&wsEvent );
|
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 );
|
wsEvents( wsDisplay,&wsEvent,NULL );
|
||||||
delay=20;
|
delay=0;
|
||||||
}
|
}
|
||||||
mplTimerHandler(0); // handle timer event
|
mplTimerHandler(0); // handle timer event
|
||||||
usleep(delay*1000); // FIXME!
|
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
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user