#define AOUT_ALLOC_STACK 1
#define AOUT_ALLOC_HEAP 2
+#if defined( __APPLE__ ) || defined( SYS_BSD )
+#undef HAVE_ALLOCA
+#endif
+
#ifdef HAVE_ALLOCA
# define ALLOCA_TEST( p_alloc, p_new_buffer ) \
if ( (p_alloc)->i_alloc_type == AOUT_ALLOC_STACK ) \
}
#define aout_BufferFree( p_buffer ) \
- if ( (p_buffer)->i_alloc_type == AOUT_ALLOC_HEAP ) \
+ if( p_buffer != NULL && (p_buffer)->i_alloc_type == AOUT_ALLOC_HEAP ) \
{ \
free( p_buffer ); \
- }
+ } \
+ p_buffer = NULL;
/*****************************************************************************
* aout_fifo_t : audio output buffer FIFO
* third-party. */
vlc_mutex_t lock;
+ /* The input thread that spawned this input */
+ input_thread_t *p_input_thread;
+
audio_sample_format_t input;
aout_alloc_t input_alloc;