All audio decoders support the *pp_block == NULL case, and return NULL.
This enables audio decoders to drain cleanly.
int i_lost = 0;
int i_played = 0;
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 ) )
while( (p_aout_buf = p_dec->pf_decode_audio( p_dec, &p_block )) )
{
if( DecoderIsFlushing( p_dec ) )