[vlc-devel] commit: Use highres clock with TDT timebase ( Marian Ďurkovič )

Rémi Denis-Courmont remi at remlab.net
Wed Nov 11 12:54:23 CET 2009


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...

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list