[vlc-devel] [PATCH 3/3] audiotrack: move error check to good scope
Thomas Guillem
thomas at gllm.fr
Wed Mar 11 15:51:07 CET 2015
---
modules/audio_output/audiotrack.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index fc3d77b..11dd08d 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1342,9 +1342,9 @@ JNIThread( void *data )
i_buffer_offset = 0;
b_error = JNIThread_PreparePlay( env, p_aout, p_buffer )
!= VLC_SUCCESS;
+ if( b_error )
+ break;
}
- if( b_error )
- break;
b_error = JNIThread_Play( env, p_aout, p_buffer,
&i_buffer_offset,
&i_play_wait ) != VLC_SUCCESS;
--
2.1.3
More information about the vlc-devel
mailing list