[vlc-commits] include: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
Steve Lhomme
git at videolan.org
Tue Jul 3 07:55:13 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 3 07:52:47 2018 +0200| [ce7515a43d8de9a3334097e8ac1dfb5a86691ef7] | committer: Steve Lhomme
include: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce7515a43d8de9a3334097e8ac1dfb5a86691ef7
---
include/vlc_config.h | 4 ++--
include/vlc_threads.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/vlc_config.h b/include/vlc_config.h
index 3a6f8fad67..a72271d954 100644
--- a/include/vlc_config.h
+++ b/include/vlc_config.h
@@ -50,14 +50,14 @@
*****************************************************************************/
/* Base delay in micro second for interface sleeps */
-#define INTF_IDLE_SLEEP (CLOCK_FREQ/20)
+#define INTF_IDLE_SLEEP VLC_TICK_FROM_MS(50)
/*****************************************************************************
* Input thread configuration
*****************************************************************************/
/* Used in ErrorThread */
-#define INPUT_IDLE_SLEEP (CLOCK_FREQ/10)
+#define INPUT_IDLE_SLEEP VLC_TICK_FROM_MS(100)
/*
* General limitations
diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 20fd5a24e6..f1343868a4 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -864,7 +864,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_HARD_MIN_SLEEP VLC_TICK_FROM_MS(10) /* 10 milliseconds = 1 tick at 100Hz */
#define VLC_SOFT_MIN_SLEEP VLC_TICK_FROM_SEC(9) /* 9 seconds */
#if defined (__GNUC__) && !defined (__clang__)
More information about the vlc-commits
mailing list