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).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15585 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-05-28 21:28:40 +00:00
parent 52cbc5b72f
commit c1bd86b4cd
1 changed files with 5 additions and 0 deletions

View File

@ -2318,6 +2318,11 @@ if(!sh_video) {
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){