Commit b6281230 authored by Sam Hocevar's avatar Sam Hocevar

* ./include/aout_internal.h: fixed a breakage I just introduced.

parent 5d02f37f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aout_internal.h : internal defines for audio output * aout_internal.h : internal defines for audio output
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * 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> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -35,14 +35,14 @@ typedef struct aout_alloc_t ...@@ -35,14 +35,14 @@ typedef struct aout_alloc_t
#define AOUT_ALLOC_HEAP 2 #define AOUT_ALLOC_HEAP 2
#ifdef HAVE_ALLOCA #ifdef HAVE_ALLOCA
# define ALLOCA_TEST \ # define ALLOCA_TEST( p_alloc, p_new_buffer ) \
if ( (p_alloc)->i_alloc_type == AOUT_ALLOC_STACK ) \ if ( (p_alloc)->i_alloc_type == AOUT_ALLOC_STACK ) \
{ \ { \
(p_new_buffer) = alloca( i_alloc_size + sizeof(aout_buffer_t) );\ (p_new_buffer) = alloca( i_alloc_size + sizeof(aout_buffer_t) );\
} \ } \
else else
#else #else
# define ALLOCA_TEST # define ALLOCA_TEST( p_alloc, p_new_buffer )
#endif #endif
#define aout_BufferAlloc( p_alloc, i_nb_usec, p_previous_buffer, \ #define aout_BufferAlloc( p_alloc, i_nb_usec, p_previous_buffer, \
...@@ -56,7 +56,7 @@ typedef struct aout_alloc_t ...@@ -56,7 +56,7 @@ typedef struct aout_alloc_t
int i_alloc_size; \ int i_alloc_size; \
i_alloc_size = (u64)(p_alloc)->i_bytes_per_sec \ i_alloc_size = (u64)(p_alloc)->i_bytes_per_sec \
* (i_nb_usec) / 1000000 + 1; \ * (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) );\ (p_new_buffer) = malloc( i_alloc_size + sizeof(aout_buffer_t) );\
} \ } \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment