[vlc-devel] [PATCH 2/2] es_out: assert single block on es_out_Send()
RĂ©mi Denis-Courmont
remi at remlab.net
Mon Nov 27 18:17:52 CET 2017
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 ?
---
src/input/es_out.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 07f118b2ce..c4a848d5e9 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -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;
--
2.15.0
More information about the vlc-devel
mailing list