[vlc-devel] commit: Use highres clock with TDT timebase ( Marian Ďurkovič )
    Marian Ďurkovič 
    md at bts.sk
       
    Wed Nov 11 13:21:20 CET 2009
    
    
  
On Wed, Nov 11, 2009 at 12:54:23PM +0100, Rémi Denis-Courmont wrote:
> 
> On Wed, 11 Nov 2009 12:09:26 +0100 (CET), git at videolan.org (git version
> control) wrote:
> > -        const time_t t = time (NULL) + p_sys->i_tdt_delta;
> > +#ifdef TS_USE_TDT
> > +        const int64_t t = mdate() + p_sys->i_tdt_delta;
> > +#else
> > +        const int64_t t = CLOCK_FREQ * time ( NULL );
> > +#endif
> 
> Why do you need an ifdef here? mdate() is available regardless of
> TS_USE_TDT...
Yes, but mdate() is not the UTC clock. So unless we have a valid
i_tdt_delta (computed in TDTCallback), we must use time() instead.
  With kind regards,
       M. 
    
    
More information about the vlc-devel
mailing list