[vlc-devel] [PATCH 1/4] audiotrack: move variable in good scope

Thomas Guillem thomas at gllm.fr
Thu Mar 5 19:03:30 CET 2015


---
 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 7ac723a..8b19dfe 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -475,12 +475,12 @@ JNIThread_TimeGet( JNIEnv *env, audio_output_t *p_aout, mtime_t *p_delay )
     aout_sys_t *p_sys = p_aout->sys;
     jlong i_frame_pos;
     uint32_t i_audiotrack_delay = 0;
-    mtime_t i_current_time = mdate();
 
     if( p_sys->i_samples_queued == 0 )
         return -1;
     if( p_sys->p_audioTimestamp )
     {
+        mtime_t i_current_time = mdate();
         /* Android doc:
          * getTimestamp: Poll for a timestamp on demand.
          *
-- 
2.1.3




More information about the vlc-devel mailing list