[vlc-commits] stream_Demux: allocating an empty block is legal, do not hack around

Rémi Denis-Courmont git at videolan.org
Tue Aug 21 16:38:40 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 21 17:32:51 2012 +0300| [a838292ca5337e18d43e77312df015bf65669a4c] | committer: Rémi Denis-Courmont

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a838292ca5337e18d43e77312df015bf65669a4c
---

 src/input/stream_demux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/stream_demux.c b/src/input/stream_demux.c
index d7bb55d..f2ec7ff 100644
--- a/src/input/stream_demux.c
+++ b/src/input/stream_demux.c
@@ -118,7 +118,7 @@ static void DStreamDelete( stream_t *s )
     block_t *p_empty;
 
     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 );
     vlc_join( p_sys->thread, NULL );
 



More information about the vlc-commits mailing list