[MPlayer-dev-eng] mouse autohide problem with asf (with suggestions)
st darg
stdarg at gmail.com
Tue Dec 28 22:27:52 CET 2004
Hi,
I noticed when I play asf movies, the mouse autohiding doesn't work
correctly on x11. The problem is that libmpdemux/demuxer.c (line 1272)
is:
sh_video->fps=1000.0f; sh_video->frametime=0.001f; // 1ms
Then in video.c, sh_video->fps is updated with the correct average frame rate.
However, vo_mouse_timer_const is only set one time, in mplayer.c, and
the value it gets is 1000! Thus it takes ages for the mouse to hide.
Suggestion 1: add vo_mouse_timer_const = (int) sh_video->fps; to
video.c, and also add int vo_mouse_timer_const; to mencoder (since
otherwise the symbol is not found when linking mencoder)
Suggestion 2: add vo_mouse_timer_const = (int) sh_video->fps; to
x11_common.c in the event handling function (where it's used)
More information about the MPlayer-dev-eng
mailing list