[vlc-commits] input_clock: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_MS()
Steve Lhomme
git at videolan.org
Fri Jul 6 16:07:35 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 15 06:36:58 2018 +0200| [4d3dcdcb737d2bf660c432854f6f401f769740ba] | committer: Steve Lhomme
input_clock: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_MS()
Easier to read and more explicit.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d3dcdcb737d2bf660c432854f6f401f769740ba
---
src/clock/input_clock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/clock/input_clock.c b/src/clock/input_clock.c
index 1c84e8c17d..cf490622f3 100644
--- a/src/clock/input_clock.c
+++ b/src/clock/input_clock.c
@@ -95,9 +95,9 @@
* It is 60s max, remember as it is limited by the size it takes by es_out.c
* it can be really large.
*/
-//#define CR_BUFFERING_TARGET (60000000)
+//#define CR_BUFFERING_TARGET VLC_TICK_FROM_SEC(60)
/* Due to some problems in es_out, we cannot use a large value yet */
-#define CR_BUFFERING_TARGET (100000)
+#define CR_BUFFERING_TARGET VLC_TICK_FROM_MS(100)
/* */
#define INPUT_CLOCK_LATE_COUNT (3)
More information about the vlc-commits
mailing list