[vlc-commits] audiotrack: convert a hardcoded value in vlc_tick_t

Steve Lhomme git at videolan.org
Tue Jul 3 15:30:55 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 15:25:24 2018 +0200| [2bc30f0061b749f6ac53105ed45246e116f6489b] | committer: Steve Lhomme

audiotrack: convert a hardcoded value in vlc_tick_t

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

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

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index f4922be1fe..b33b2e9581 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -702,7 +702,7 @@ AudioTrack_GetTimestampPositionUs( JNIEnv *env, audio_output_t *p_aout )
     if( p_sys->timestamp.i_frame_us != 0 && p_sys->timestamp.i_frame_pos != 0
      && p_sys->timestamp.i_frame_us > p_sys->timestamp.i_play_time
      && i_now > p_sys->timestamp.i_frame_us
-     && ( i_now - p_sys->timestamp.i_frame_us ) <= INT64_C(10000000) )
+     && ( i_now - p_sys->timestamp.i_frame_us ) <= VLC_TICK_FROM_SEC(10) )
     {
         jlong i_time_diff = i_now - p_sys->timestamp.i_frame_us;
         jlong i_frames_diff = i_time_diff * p_sys->fmt.i_rate / CLOCK_FREQ;



More information about the vlc-commits mailing list