# HG changeset patch # User reimar # Date 1117315720 0 # Node ID b5f111039c16d501b8ef3d50877b4e9e2a271ff4 # Parent 7490b7904417642dfd7a2c693c578bd50e93dbdb 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). diff -r 7490b7904417 -r b5f111039c16 mplayer.c --- a/mplayer.c Sat May 28 21:12:11 2005 +0000 +++ b/mplayer.c Sat May 28 21:28:40 2005 +0000 @@ -2318,6 +2318,11 @@ sh_video->timer+=frame_time; if(sh_audio) sh_audio->delay-=frame_time; time_frame+=frame_time; // for nosound + // video_read_frame can change fps (e.g. for asf video) + vo_fps = sh_video->fps; +#ifdef HAVE_X11 + vo_mouse_timer_const = (int)sh_video->fps; +#endif // check for frame-drop: current_module="check_framedrop"; if(sh_audio && !d_audio->eof){