[vlc-commits] audiotrack: remove useless play_time

Thomas Guillem git at videolan.org
Tue Dec 1 12:16:19 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov 24 15:52:06 2020 +0100| [1172edd04efb22ed74d3d89ef5a7098db6670ad7] | committer: Thomas Guillem

audiotrack: remove useless play_time

This was mainly used for a previous hack.

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

 modules/audio_output/audiotrack.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index a3d56b3ff0..4bc7cac4d4 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -113,7 +113,6 @@ typedef struct
         uint64_t i_frame_wrap_count;
         uint64_t i_frame_pos;
 
-        vlc_tick_t i_play_time; /* time when play was called */
         vlc_tick_t i_last_time;
     } timestamp;
 
@@ -640,7 +639,6 @@ AudioTrack_ResetPositions( JNIEnv *env, audio_output_t *p_aout )
     aout_sys_t *p_sys = p_aout->sys;
     VLC_UNUSED( env );
 
-    p_sys->timestamp.i_play_time = vlc_tick_now();
     p_sys->timestamp.i_last_time = 0;
     p_sys->timestamp.i_frame_us = 0;
     p_sys->timestamp.i_frame_pos = 0;
@@ -777,7 +775,6 @@ AudioTrack_GetTimestampPositionUs( JNIEnv *env, audio_output_t *p_aout )
              * frame time shouldn't be in the future
              * frame time should be less than 10 seconds old */
             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 ) <= VLC_TICK_FROM_SEC(10) )
                 p_sys->timestamp.i_last_time = i_now;



More information about the vlc-commits mailing list