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

audiotrack: re-init offset after a flush too

fix crash after a flush
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f7dfc8f1
...@@ -1337,6 +1337,7 @@ JNIThread( void *data ) ...@@ -1337,6 +1337,7 @@ JNIThread( void *data )
if( p_buffer == NULL ) if( p_buffer == NULL )
{ {
p_buffer = p_cmd->in.play.p_buffer; p_buffer = p_cmd->in.play.p_buffer;
i_buffer_offset = 0;
b_error = JNIThread_PreparePlay( env, p_aout, p_buffer ) b_error = JNIThread_PreparePlay( env, p_aout, p_buffer )
!= VLC_SUCCESS; != VLC_SUCCESS;
} }
...@@ -1354,7 +1355,6 @@ JNIThread( void *data ) ...@@ -1354,7 +1355,6 @@ JNIThread( void *data )
else else
{ {
p_buffer = NULL; p_buffer = NULL;
i_buffer_offset = 0;
} }
if( i_play_wait > 0 ) if( i_play_wait > 0 )
i_play_deadline = mdate() + i_play_wait; i_play_deadline = mdate() + i_play_wait;
......
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