mirror of
https://github.com/videolan/vlc.git
synced 2025-01-27 01:56:19 +08:00
* ./include/aout_internal.h: fixed a breakage I just introduced.
This commit is contained in:
parent
5d02f37fe0
commit
b628123009
@ -2,7 +2,7 @@
|
||||
* aout_internal.h : internal defines for audio output
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2002 VideoLAN
|
||||
* $Id: aout_internal.h,v 1.28 2002/11/09 16:34:52 sam Exp $
|
||||
* $Id: aout_internal.h,v 1.29 2002/11/09 18:28:36 sam Exp $
|
||||
*
|
||||
* Authors: Christophe Massiot <massiot@via.ecp.fr>
|
||||
*
|
||||
@ -35,14 +35,14 @@ typedef struct aout_alloc_t
|
||||
#define AOUT_ALLOC_HEAP 2
|
||||
|
||||
#ifdef HAVE_ALLOCA
|
||||
# define ALLOCA_TEST \
|
||||
# define ALLOCA_TEST( p_alloc, p_new_buffer ) \
|
||||
if ( (p_alloc)->i_alloc_type == AOUT_ALLOC_STACK ) \
|
||||
{ \
|
||||
(p_new_buffer) = alloca( i_alloc_size + sizeof(aout_buffer_t) );\
|
||||
} \
|
||||
else
|
||||
#else
|
||||
# define ALLOCA_TEST
|
||||
# define ALLOCA_TEST( p_alloc, p_new_buffer )
|
||||
#endif
|
||||
|
||||
#define aout_BufferAlloc( p_alloc, i_nb_usec, p_previous_buffer, \
|
||||
@ -56,7 +56,7 @@ typedef struct aout_alloc_t
|
||||
int i_alloc_size; \
|
||||
i_alloc_size = (u64)(p_alloc)->i_bytes_per_sec \
|
||||
* (i_nb_usec) / 1000000 + 1; \
|
||||
ALLOCA_TEST \
|
||||
ALLOCA_TEST( p_alloc, p_new_buffer ) \
|
||||
{ \
|
||||
(p_new_buffer) = malloc( i_alloc_size + sizeof(aout_buffer_t) );\
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user