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

es_out: use input_DecoderDrain()

parent 132f872d
......@@ -2684,15 +2684,8 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
{
for (int i = 0; i < p_sys->i_es; i++) {
es_out_id_t *id = p_sys->es[i];
decoder_t *p_dec = id->p_dec;
if (!p_dec)
continue;
block_t *p_block = block_Alloc(0);
if( !p_block )
break;
p_block->i_flags |= BLOCK_FLAG_CORE_EOS;
input_DecoderDecode(p_dec, p_block, false);
if (id->p_dec != NULL)
input_DecoderDrain(id->p_dec);
}
return VLC_SUCCESS;
}
......
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