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

decoder: remove legacy flush call

parent c94f68fe
...@@ -210,19 +210,6 @@ static void DecoderUpdateFormatLocked( decoder_t *p_dec ) ...@@ -210,19 +210,6 @@ static void DecoderUpdateFormatLocked( decoder_t *p_dec )
p_owner->b_fmt_description = true; p_owner->b_fmt_description = true;
} }
static block_t *DecoderBlockFlushNew()
{
block_t *p_null = block_Alloc( 128 );
if( !p_null )
return NULL;
p_null->i_flags |= BLOCK_FLAG_DISCONTINUITY |
BLOCK_FLAG_CORRUPTED;
memset( p_null->p_buffer, 0, p_null->i_buffer );
return p_null;
}
/***************************************************************************** /*****************************************************************************
* Buffers allocation callbacks for the decoders * Buffers allocation callbacks for the decoders
*****************************************************************************/ *****************************************************************************/
...@@ -1280,17 +1267,6 @@ static void DecoderProcessFlush( decoder_t *p_dec ) ...@@ -1280,17 +1267,6 @@ static void DecoderProcessFlush( decoder_t *p_dec )
if ( p_dec->pf_flush != NULL ) if ( p_dec->pf_flush != NULL )
p_dec->pf_flush( p_dec ); p_dec->pf_flush( p_dec );
else
{
/* legacy call, pass a CORRUPTED + DISCONTINUITY block */
block_t *p_flush = DecoderBlockFlushNew();
if( unlikely( p_flush == NULL ) )
{
msg_Err( p_dec, "cannot flush" );
return;
}
DecoderProcess( p_dec, p_flush );
}
if( p_dec->fmt_out.i_cat == AUDIO_ES ) if( p_dec->fmt_out.i_cat == AUDIO_ES )
{ {
......
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