[vlc-commits] kai: use SEC_FROM_VLC_TICK() to convert vlc_tick_t to seconds

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:17 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 13:29:25 2018 +0200| [a298b7d2ec322a9f53775cb301fed668d0a71efe] | committer: Steve Lhomme

kai: use SEC_FROM_VLC_TICK() to convert vlc_tick_t to seconds

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

 modules/audio_output/kai.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/kai.c b/modules/audio_output/kai.c
index b3b64c8432..6f26b49173 100644
--- a/modules/audio_output/kai.c
+++ b/modules/audio_output/kai.c
@@ -37,7 +37,7 @@
 
 #define FRAME_SIZE 2048
 
-#define AUDIO_BUFFER_SIZE_IN_SECONDS ( AOUT_MAX_ADVANCE_TIME / CLOCK_FREQ )
+#define AUDIO_BUFFER_SIZE_IN_SECONDS  SEC_FROM_VLC_TICK( AOUT_MAX_ADVANCE_TIME )
 
 struct audio_buffer_t
 {



More information about the vlc-commits mailing list