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

es_out: assert single block on es_out_Send()

The handling code ostensibly assumes that the block is single. So this
adds an assertion to ensure it.

Alternatively, should we force p_next to NULL ?
parent d5a0c83c
......@@ -2039,6 +2039,8 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
es_out_sys_t *p_sys = out->p_sys;
input_thread_t *p_input = p_sys->p_input;
assert( p_block->p_next == NULL );
if( libvlc_stats( p_input ) )
uint64_t i_total;
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