Commit 31268f2d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

decoder: remove unnecessary special case

All audio decoders support the *pp_block == NULL case, and return NULL.
This enables audio decoders to drain cleanly.
parent 498f442c
......@@ -1136,9 +1136,6 @@ static void DecoderDecodeAudio( decoder_t *p_dec, block_t *p_block )
int i_lost = 0;
int i_played = 0;
if( p_block == NULL )
return; /* TODO: remove this check, drain audio decoders properly */
while( (p_aout_buf = p_dec->pf_decode_audio( p_dec, &p_block )) )
{
if( DecoderIsFlushing( p_dec ) )
......
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