changeset 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 7490b7904417
children 281d155fb37f
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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){