[vlc-commits] audiotrack: local i_time_diff is a vlc_tick_t

Steve Lhomme git at videolan.org
Wed Sep 19 15:46:35 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 19 14:49:06 2018 +0200| [553856eba352bd835b92263f10d83759383860fe] | committer: Steve Lhomme

audiotrack: local i_time_diff is a vlc_tick_t

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

 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 58c08b8e7b..5cce12af49 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -704,7 +704,7 @@ AudioTrack_GetTimestampPositionUs( JNIEnv *env, audio_output_t *p_aout )
      && i_now > p_sys->timestamp.i_frame_us
      && ( 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;
+        vlc_tick_t 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;
         return FRAMES_TO_US( p_sys->timestamp.i_frame_pos + i_frames_diff );
     } else



More information about the vlc-commits mailing list