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

audiotrack: fix error when writing buffer of size 0

It happens when time streching is enabled
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 64e8b317
......@@ -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 )
......
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