[vlc-devel] [PATCH 2/3] audiotrack: fix error when writing buffer of size 0

Thomas Guillem thomas at gllm.fr
Wed Mar 11 15:51:06 CET 2015


It happens when time streching is enabled
---
 modules/audio_output/audiotrack.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 1efe271..fc3d77b 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1336,6 +1336,8 @@ JNIThread( void *data )
                     break;
                 if( p_buffer == NULL )
                 {
+                    if( !p_cmd->in.play.p_buffer->i_buffer )
+                        break;
                     p_buffer = p_cmd->in.play.p_buffer;
                     i_buffer_offset = 0;
                     b_error = JNIThread_PreparePlay( env, p_aout, p_buffer )
-- 
2.1.3




More information about the vlc-devel mailing list