Commit c65d83da authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

audiotrack: move variable in good scope

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d693e502
...@@ -475,12 +475,12 @@ JNIThread_TimeGet( JNIEnv *env, audio_output_t *p_aout, mtime_t *p_delay ) ...@@ -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; aout_sys_t *p_sys = p_aout->sys;
jlong i_frame_pos; jlong i_frame_pos;
uint32_t i_audiotrack_delay = 0; uint32_t i_audiotrack_delay = 0;
mtime_t i_current_time = mdate();
if( p_sys->i_samples_queued == 0 ) if( p_sys->i_samples_queued == 0 )
return -1; return -1;
if( p_sys->p_audioTimestamp ) if( p_sys->p_audioTimestamp )
{ {
mtime_t i_current_time = mdate();
/* Android doc: /* Android doc:
* getTimestamp: Poll for a timestamp on demand. * getTimestamp: Poll for a timestamp on demand.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment