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