]> git.sesse.net Git - vlc/commitdiff
audiotrack: move variable in good scope
authorThomas Guillem <thomas@gllm.fr>
Thu, 5 Mar 2015 18:03:30 +0000 (19:03 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Mar 2015 18:05:36 +0000 (19:05 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/audiotrack.c

index 7ac723a927364a849fbbae27605feadb32dcb21d..8b19dfe628fbefe16a86f6297a8f03714591c987 100644 (file)
@@ -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.
          *