[vlc-commits] include: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros

Steve Lhomme git at videolan.org
Tue Jul 3 11:24:06 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 10:54:50 2018 +0200| [064ed73ff7d93836618f24753d6e3941966f02c9] | committer: Steve Lhomme

include: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros

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

 include/vlc_aout.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index d546ee44a2..968383241f 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -35,7 +35,7 @@
 
 /* Buffers which arrive in advance of more than AOUT_MAX_ADVANCE_TIME
  * will be considered as bogus and be trashed */
-#define AOUT_MAX_ADVANCE_TIME           (AOUT_MAX_PREPARE_TIME + CLOCK_FREQ)
+#define AOUT_MAX_ADVANCE_TIME           (AOUT_MAX_PREPARE_TIME + VLC_TICK_FROM_SEC(1))
 
 /* Buffers which arrive in advance of more than AOUT_MAX_PREPARE_TIME
  * will cause the calling thread to sleep */



More information about the vlc-commits mailing list