Commit 8d6d383a authored by Thomas Guillem's avatar Thomas Guillem

audiotrack: reset and play after a DEAD_OBJECT error

parent 57fa6824
......@@ -1314,7 +1314,12 @@ AudioTrack_Play( JNIEnv *env, audio_output_t *p_aout,
{
msg_Warn( p_aout, "ERROR_DEAD_OBJECT: "
"try recreating AudioTrack" );
i_ret = AudioTrack_Recreate( env, p_aout );
if( ( i_ret = AudioTrack_Recreate( env, p_aout ) ) == 0 )
{
AudioTrack_Reset( env, p_aout );
JNI_AT_CALL_VOID( play );
CHECK_AT_EXCEPTION( "play" );
}
} else
{
const char *str;
......
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