[vlc-devel] commit: Remove unused alloca.h, add an assertion ( Rafaël Carré )

git version control git at videolan.org
Thu Sep 3 16:06:20 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Sep  3 16:05:07 2009 +0200| [0a983612734333cbecd92958674a4f7501d6b62c] | committer: Rafaël Carré 

Remove unused alloca.h, add an assertion

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

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

diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index 7ddbee8..04cb21d 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -29,6 +29,8 @@
 # include "config.h"
 #endif
 
+#include <assert.h>
+
 #include <vlc_common.h>
 
 #include <stdio.h>
@@ -39,9 +41,6 @@
 #include <vlc_input.h>
 #include <vlc_vout.h>                  /* for vout_Request */
 
-#ifdef HAVE_ALLOCA_H
-#   include <alloca.h>
-#endif
 #include <vlc_aout.h>
 #include <libvlc.h>
 
@@ -83,6 +82,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
     p_input->i_nb_resamplers = p_input->i_nb_filters = 0;
 
     /* Prepare FIFO. */
+    assert( p_aout->p_mixer );
     aout_FifoInit( p_aout, &p_input->mixer.fifo, p_aout->p_mixer->fmt.i_rate );
     p_input->mixer.begin = NULL;
 




More information about the vlc-devel mailing list