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

block_FifoPut() accepts/ignores NULL block

parent 13f0c6d0
...@@ -111,8 +111,7 @@ stream_t *stream_DemuxNew( demux_t *p_demux, const char *psz_demux, es_out_t *ou ...@@ -111,8 +111,7 @@ stream_t *stream_DemuxNew( demux_t *p_demux, const char *psz_demux, es_out_t *ou
void stream_DemuxSend( stream_t *s, block_t *p_block ) void stream_DemuxSend( stream_t *s, block_t *p_block )
{ {
stream_sys_t *p_sys = s->p_sys; stream_sys_t *p_sys = s->p_sys;
if( p_block ) block_FifoPut( p_sys->p_fifo, p_block );
block_FifoPut( p_sys->p_fifo, p_block );
} }
static void DStreamDelete( stream_t *s ) static void DStreamDelete( stream_t *s )
......
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