]> git.sesse.net Git - vlc/commitdiff
Looks like we didn't malloc the right size. (If this was some dirty
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 14 Mar 2006 13:08:48 +0000 (13:08 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 14 Mar 2006 13:08:48 +0000 (13:08 +0000)
hack, please revert my commit and add a comment explaining why it's
needed because)

Thanks to http://forum.videolan.org/viewtopic.php?t=18285 for noticing.

src/misc/block.c

index 7374336f8474a45e56ed9fea24e78b61ba583f61..be4e45388deef2a89f325a35009b9893f0287264 100644 (file)
@@ -151,7 +151,7 @@ block_fifo_t *__block_FifoNew( vlc_object_t *p_obj )
 {
     block_fifo_t *p_fifo;
 
-    p_fifo = malloc( sizeof( vlc_object_t ) );
+    p_fifo = malloc( sizeof( block_fifo_t ) );
     vlc_mutex_init( p_obj, &p_fifo->lock );
     vlc_cond_init( p_obj, &p_fifo->wait );
     p_fifo->i_depth = p_fifo->i_size = 0;