[vlc-commits] audiotrack: move variable in good scope
Thomas Guillem
git at videolan.org
Thu Mar 5 19:05:55 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 5 19:03:30 2015 +0100| [c65d83da3936d86cd8baae478b0688975946d93a] | committer: Jean-Baptiste Kempf
audiotrack: move variable in good scope
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c65d83da3936d86cd8baae478b0688975946d93a
---
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.
*
More information about the vlc-commits
mailing list