[MPlayer-dev-eng] mouse autohide problem with asf (with suggestions)

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Jun 7 10:09:58 CEST 2005


Hi,
On Mon, Jun 06, 2005 at 11:54:01PM +0200, Diego Biurrun wrote:
> On Tue, Dec 28, 2004 at 04:27:52PM -0500, st darg wrote:
> > 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)
> 
> I just stumbled across this one while going through my mailbox.  Is it
> still an issue?  I faintly remember that something was done about ASF
> files and hiding the mouse.

Yes, actually it was a fix for the volume OSD of the Gui, but it also
fixes this (unless you manage to activate the OSD/mouse unhiding before
the first frame is decoded, didn't check very well if that is possible).
vo_mouse_timer_const is now set after each video_read_frame in mplayer.c,
since the other suggested files don't have access to both variables.

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list