Commit 769bef87 authored by Laurent Aimar's avatar Laurent Aimar

Fix deadlock when the decoder return an error.

parent b5c81d3d
......@@ -823,13 +823,9 @@ static void *DecoderThread( vlc_object_t *p_this )
if( p_block )
{
if( p_dec->b_error )
{ /* Trash all received PES packets */
block_Release( p_block );
}
else if( DecoderProcess( p_dec, p_block ) != VLC_SUCCESS )
{
break;
}
else
DecoderProcess( p_dec, p_block );
}
}
......
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