X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Faudio_output%2Faout_internal.h;h=d5442fdc198a0757e6da86d5ef42392f2793aa06;hb=1f1e1106101bc913dd3f2f4ef3789a4cad16bf93;hp=ad8e71e2659477c953e6502f86137e42e2c36000;hpb=df61d33b06e2b3cbbe746b2f5a9bea5b370c24ff;p=vlc diff --git a/src/audio_output/aout_internal.h b/src/audio_output/aout_internal.h index ad8e71e265..d5442fdc19 100644 --- a/src/audio_output/aout_internal.h +++ b/src/audio_output/aout_internal.h @@ -64,9 +64,9 @@ { \ (p_new_buffer)->i_alloc_type = i_alloc_type; \ (p_new_buffer)->i_size = i_alloc_size; \ - (p_new_buffer)->p_buffer = (byte_t *)(p_new_buffer) \ + (p_new_buffer)->p_buffer = (uint8_t *)(p_new_buffer) \ + sizeof(aout_buffer_t); \ - (p_new_buffer)->b_discontinuity = false; \ + (p_new_buffer)->b_discontinuity = false; \ if ( (p_previous_buffer) != NULL ) \ { \ (p_new_buffer)->start_date = \ @@ -110,8 +110,8 @@ void aout_OutputDelete( aout_instance_t * p_aout ); /* From common.c : */ #define aout_New(a) __aout_New(VLC_OBJECT(a)) +/* Release with vlc_object_release() */ aout_instance_t * __aout_New ( vlc_object_t * ); -void aout_Delete ( aout_instance_t * ); void aout_FifoInit( aout_instance_t *, aout_fifo_t *, uint32_t ); mtime_t aout_FifoNextStart( aout_instance_t *, aout_fifo_t * );