[vlc-devel] commit: Initialize demux_meta_t before calling "meta reader". ( Laurent Aimar )

git version control git at videolan.org
Sun Nov 30 19:35:01 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Nov 30 19:28:00 2008 +0100| [42a3a46390b44c8ed7cde4537973359d6bb6ffc3] | committer: Laurent Aimar 

Initialize demux_meta_t before calling "meta reader".

There was a segfault probably due to taglib module changes.

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

 src/input/input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index ba75afa..a69dbf3 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2862,7 +2862,7 @@ static void DemuxMeta( input_thread_t *p_input, vlc_meta_t *p_meta, demux_t *p_d
     if( !b_bool )
         return;
 
-    p_demux->p_private = malloc( sizeof( demux_meta_t ) );
+    p_demux->p_private = calloc( 1, sizeof( demux_meta_t ) );
     if(! p_demux->p_private )
         return;
 




More information about the vlc-devel mailing list