[MPlayer-dev-eng] [PATCH] 64-bit get time 2nd try
Dan Oscarsson
Dan.Oscarsson at tieto.com
Mon Oct 11 08:11:59 CEST 2010
sön 2010-10-10 klockan 22:55 +0200 skrev Reimar Döffinger:
>
> I don't believe that using av_gettime will require any less thought.
> Unless of course you're happy with an implementation that breaks whenever
> something unexpect happens.
As the code currently is written to use non-wrapping timestamps changubg
to GetTimer which wraps needsthought to avoid making misstakes due to
wrapping time.
>
> > One I can think of, is that in my code vo
> > reports the time of last vsync it has seen. After a pause, which could
> > take many hours, some vo do not update the last vsync time so after the
> > pause a 32-bit value may have wrapped several times.This case I can fix
> > - the vo have to, when requested to resume after a pause, wait for a
> > vsync so it can report a current vsync timstamp.
>
> Why do you think this needs any different handling than just starting playback?
At start, vsync interval length is calculated, this is not needed after
pause (unless you want to handle that people pause and then change
display refresh speed - that is not implemented yet).
Dan
More information about the MPlayer-dev-eng
mailing list