[vlc-commits] opensles_android: convert hardcoded value using MS_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Thu Sep 20 16:16:00 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 13:32:53 2018 +0200| [3153a2238cd240328bab0abedfbde80fb249f2fd] | committer: Steve Lhomme

opensles_android: convert hardcoded value using MS_FROM_VLC_TICK()

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

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

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index 1a12d1d6f4..d1112b76b2 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -480,7 +480,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
     fmt->i_physical_channels   = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
     fmt->channel_type = AUDIO_CHANNEL_TYPE_BITMAP;
 
-    SetPositionUpdatePeriod(sys->playerPlay, AOUT_MIN_PREPARE_TIME * 1000 / CLOCK_FREQ);
+    SetPositionUpdatePeriod(sys->playerPlay, MS_FROM_VLC_TICK(AOUT_MIN_PREPARE_TIME));
 
     aout_FormatPrepare(fmt);
 



More information about the vlc-commits mailing list