vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jul 3 07:42:32 2018 +0200| [c2dd9ed868b864b995e7a233d3dcca1cd88de190] | committer: Steve Lhomme
include: replace hardcoded CLOCK_FREQ multiples by VTICK_FROM_SEC() > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2dd9ed868b864b995e7a233d3dcca1cd88de190 --- include/vlc_aout.h | 2 +- include/vlc_threads.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vlc_aout.h b/include/vlc_aout.h index 5020763977..296917f891 100644 --- a/include/vlc_aout.h +++ b/include/vlc_aout.h @@ -39,7 +39,7 @@ /* Buffers which arrive in advance of more than AOUT_MAX_PREPARE_TIME * will cause the calling thread to sleep */ -#define AOUT_MAX_PREPARE_TIME (2 * CLOCK_FREQ) +#define AOUT_MAX_PREPARE_TIME VLC_TICK_FROM_SEC(2) /* Buffers which arrive after pts - AOUT_MIN_PREPARE_TIME will be trashed * to avoid too heavy resampling */ diff --git a/include/vlc_threads.h b/include/vlc_threads.h index b4ce47fdb6..20fd5a24e6 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -865,7 +865,7 @@ VLC_API void vlc_tick_wait(vlc_tick_t deadline); VLC_API void vlc_tick_sleep(vlc_tick_t delay); #define VLC_HARD_MIN_SLEEP (CLOCK_FREQ/100) /* 10 milliseconds = 1 tick at 100Hz */ -#define VLC_SOFT_MIN_SLEEP (9*CLOCK_FREQ) /* 9 seconds */ +#define VLC_SOFT_MIN_SLEEP VLC_TICK_FROM_SEC(9) /* 9 seconds */ #if defined (__GNUC__) && !defined (__clang__) /* Linux has 100, 250, 300 or 1000Hz _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
