[vlc-commits] core: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()

Steve Lhomme git at videolan.org
Tue Jul 3 07:55:08 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 07:41:49 2018 +0200| [40da7713a0ee791bca39c1219dd79762d30a10e6] | committer: Steve Lhomme

core: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40da7713a0ee791bca39c1219dd79762d30a10e6
---

 src/clock/input_clock.c    | 2 +-
 src/input/input_internal.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/clock/input_clock.c b/src/clock/input_clock.c
index f61d7b79fb..5adf4f5c4c 100644
--- a/src/clock/input_clock.c
+++ b/src/clock/input_clock.c
@@ -80,7 +80,7 @@
  *****************************************************************************/
 
 /* Maximum gap allowed between two CRs. */
-#define CR_MAX_GAP (60 * CLOCK_FREQ)
+#define CR_MAX_GAP VLC_TICK_FROM_SEC(60)
 
 /* Latency introduced on DVDs with CR == 0 on chapter change - this is from
  * my dice --Meuuh */
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index 15526db6b7..99f59790fa 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -255,7 +255,7 @@ static inline void input_ControlPushHelper( input_thread_t *p_input, int i_type,
 bool input_Stopped( input_thread_t * );
 
 /* Bound pts_delay */
-#define INPUT_PTS_DELAY_MAX (CLOCK_FREQ*60)
+#define INPUT_PTS_DELAY_MAX VLC_TICK_FROM_SEC(60)
 
 /**********************************************************************
  * Item metadata



More information about the vlc-commits mailing list