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

stream_Demux: allocating an empty block is legal, do not hack around

parent 619cdda9
...@@ -118,7 +118,7 @@ static void DStreamDelete( stream_t *s ) ...@@ -118,7 +118,7 @@ static void DStreamDelete( stream_t *s )
block_t *p_empty; block_t *p_empty;
vlc_object_kill( s ); vlc_object_kill( s );
p_empty = block_New( s, 1 ); p_empty->i_buffer = 0; p_empty = block_Alloc( 0 );
block_FifoPut( p_sys->p_fifo, p_empty ); block_FifoPut( p_sys->p_fifo, p_empty );
vlc_join( p_sys->thread, NULL ); vlc_join( p_sys->thread, NULL );
......
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