comparison mplayer.c @ 15584:b5f111039c16

keep vo_fps and vo_mouse_timer_const in sync with sh_video->fps, otherwise mouse pointer autohide and the volume OSD from the gui break (with e.g. asf).
author reimar
date Sat, 28 May 2005 21:28:40 +0000
parents cec4a515061f
children 2d1ad16b6021
comparison
equal deleted inserted replaced
15583:7490b7904417 15584:b5f111039c16
2316 if(in_size<0){ eof=1; break; } 2316 if(in_size<0){ eof=1; break; }
2317 if(in_size>max_framesize) max_framesize=in_size; // stats 2317 if(in_size>max_framesize) max_framesize=in_size; // stats
2318 sh_video->timer+=frame_time; 2318 sh_video->timer+=frame_time;
2319 if(sh_audio) sh_audio->delay-=frame_time; 2319 if(sh_audio) sh_audio->delay-=frame_time;
2320 time_frame+=frame_time; // for nosound 2320 time_frame+=frame_time; // for nosound
2321 // video_read_frame can change fps (e.g. for asf video)
2322 vo_fps = sh_video->fps;
2323 #ifdef HAVE_X11
2324 vo_mouse_timer_const = (int)sh_video->fps;
2325 #endif
2321 // check for frame-drop: 2326 // check for frame-drop:
2322 current_module="check_framedrop"; 2327 current_module="check_framedrop";
2323 if(sh_audio && !d_audio->eof){ 2328 if(sh_audio && !d_audio->eof){
2324 float delay=playback_speed*audio_out->get_delay(); 2329 float delay=playback_speed*audio_out->get_delay();
2325 float d=delay-sh_audio->delay; 2330 float d=delay-sh_audio->delay;