[MPlayer-dev-eng] [PATCH] 2 lines doing nothing in update_osd_msg() in mplayer.c ?

Uoti Urpala uoti.urpala at pp1.inet.fi
Fri Jul 28 15:46:08 CEST 2006


On Thu, 2006-07-27 at 19:30 +0200, Paul-Francois Fontigny wrote:
> On Thu, 2006-07-27 at 19:58 +0300, Uoti Urpala wrote:
> > declaration means? The lines certainly do something: they prevent the
> > whole-second pts shown in the osd from going back by one second from the
> > previous value. Now why such functionality was added I'm not sure -
> > maybe it was a workaround for some bug causing pts to jump around. I
> > think removing the lines should be OK - if something makes the time jump
> > around there should be a better fix for it.
> 
> I understand the static for last_pts.
> But it is very unlikely that from one call to the function to the next
> the time difference will be one second backward. Even with local pts
> casted to int (sh_video->pts  is a float - or is it a double?)
> Why will this be a special case in this local part of the function?

As I already said above my guess is that it was a workaround for some
problem making pts jump around slightly (which would make the display
change one second back if pts changed from 1.01 to 0.99). I'll remove it
and see if anyone reports weird OSD behavior.




More information about the MPlayer-dev-eng mailing list