[vlc-commits] audiotrack: fix error when writing buffer of size 0
Thomas Guillem
git at videolan.org
Wed Mar 11 16:09:53 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 11 15:51:06 2015 +0100| [b3be062fecda37f02d55aa1233f8cba7ad3c8a29] | committer: Jean-Baptiste Kempf
audiotrack: fix error when writing buffer of size 0
It happens when time streching is enabled
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b3be062fecda37f02d55aa1233f8cba7ad3c8a29
---
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 )
More information about the vlc-commits
mailing list