[vlc-devel] [PATCH 11/15] core: replace hardcoded CLOCK_FREQ multiples by VTICK_FROM_SEC()

Steve Lhomme robux4 at ycbcr.xyz
Fri Jun 15 17:09:22 CEST 2018


---
 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 a69ed53e324..a2405c80f6e 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 VTICK_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 c0b8ae47560..84e4aac918e 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -229,7 +229,7 @@ void input_ControlPush( input_thread_t *, int i_type, vlc_value_t * );
 bool input_Stopped( input_thread_t * );
 
 /* Bound pts_delay */
-#define INPUT_PTS_DELAY_MAX (CLOCK_FREQ*60)
+#define INPUT_PTS_DELAY_MAX VTICK_FROM_SEC(60)
 
 /**********************************************************************
  * Item metadata
-- 
2.17.0



More information about the vlc-devel mailing list