Fixed bug of mplayer freezing - better

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@702 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-05-05 15:44:07 +00:00
parent 63476915e5
commit 598be4965c
1 changed files with 2 additions and 1 deletions

View File

@ -1645,6 +1645,7 @@ switch(sh_video->codec->driver){
#endif
(!f || getch2(20)<=0) && mplayer_get_key()<=0){
video_out->check_events();
if(!f) usleep(1000); // do not eat the CPU
}
osd_function=OSD_PLAY;
}
@ -1660,7 +1661,7 @@ switch(sh_video->codec->driver){
#ifdef HAVE_LIRC
(c=lirc_mp_getinput())>0 ||
#endif
(!f && (c=getch2(0)))>0 || (c=mplayer_get_key())>0) switch(c){
(f && (c=getch2(0))>0) || (c=mplayer_get_key())>0) switch(c){
// seek 10 sec
case KEY_RIGHT:
osd_function=OSD_FFW;