Commit e2b439cf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Replace remaining instances of aout_buffer_t with block_t

parent 8fbafffc
......@@ -53,7 +53,7 @@ function VlcSyntax()
syn keyword cType es_format_t video_palette_t
" Aout
syn keyword cType audio_output_t aout_sys_t
syn keyword cType aout_fifo_t aout_input_t aout_buffer_t audio_sample_format_t
syn keyword cType aout_fifo_t aout_input_t audio_sample_format_t
syn keyword cType aout_mixer_sys_t aout_filter_sys_t audio_volume_t
syn keyword cType aout_mixer_t aout_output_t audio_date_t
syn keyword cType aout_filter_t
......
......@@ -231,9 +231,9 @@ VLC_API vout_thread_t * aout_filter_RequestVout( filter_t *, vout_thread_t *p_vo
/** Audio output buffer FIFO */
struct aout_fifo_t
{
aout_buffer_t * p_first;
aout_buffer_t ** pp_last;
date_t end_date;
block_t *p_first;
block_t **pp_last;
date_t end_date;
};
/* Legacy packet-oriented audio output helpers */
......
......@@ -71,7 +71,7 @@ struct decoder_t
/* */
picture_t * ( * pf_decode_video )( decoder_t *, block_t ** );
aout_buffer_t * ( * pf_decode_audio )( decoder_t *, block_t ** );
block_t * ( * pf_decode_audio )( decoder_t *, block_t ** );
subpicture_t * ( * pf_decode_sub) ( decoder_t *, block_t ** );
block_t * ( * pf_packetize ) ( decoder_t *, block_t ** );
......@@ -110,7 +110,7 @@ struct decoder_t
/* Audio output callbacks
* XXX use decoder_NewAudioBuffer/decoder_DeleteAudioBuffer */
aout_buffer_t *(*pf_aout_buffer_new)( decoder_t *, int );
block_t *(*pf_aout_buffer_new)( decoder_t *, int );
/* SPU output callbacks
* XXX use decoder_NewSubpicture and decoder_DeleteSubpicture */
......@@ -162,7 +162,7 @@ struct encoder_t
es_format_t fmt_out;
block_t * ( * pf_encode_video )( encoder_t *, picture_t * );
block_t * ( * pf_encode_audio )( encoder_t *, aout_buffer_t * );
block_t * ( * pf_encode_audio )( encoder_t *, block_t * );
block_t * ( * pf_encode_sub )( encoder_t *, subpicture_t * );
/* Common encoder options */
......@@ -209,7 +209,7 @@ VLC_API void decoder_UnlinkPicture( decoder_t *, picture_t * );
* output buffer. You have to release it using decoder_DeleteAudioBuffer
* or by returning it to the caller as a pf_decode_audio return value.
*/
VLC_API aout_buffer_t * decoder_NewAudioBuffer( decoder_t *, int i_size ) VLC_USED;
VLC_API block_t * decoder_NewAudioBuffer( decoder_t *, int i_size ) VLC_USED;
/**
* This function will return a new subpicture usable by a decoder as an output
......
......@@ -273,7 +273,6 @@ typedef struct audio_output audio_output_t;
typedef struct aout_sys_t aout_sys_t;
typedef struct aout_fifo_t aout_fifo_t;
typedef struct aout_input_t aout_input_t;
typedef struct block_t aout_buffer_t;
typedef audio_format_t audio_sample_format_t;
/* Video */
......
......@@ -330,7 +330,7 @@ static int Init( vlc_object_t *p_this, struct filter_sys_t * p_data
* DoWork: convert a buffer
*****************************************************************************/
static void DoWork( filter_t * p_filter,
aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
block_t * p_in_buf, block_t * p_out_buf )
{
filter_sys_t *p_sys = p_filter->p_sys;
int i_input_nb = aout_FormatNbChannels( &p_filter->fmt_in.audio );
......
......@@ -49,11 +49,9 @@ static void CloseFilter ( vlc_object_t * );
static block_t *Convert( filter_t *p_filter, block_t *p_block );
static unsigned int stereo_to_mono( filter_t *, aout_buffer_t *,
aout_buffer_t * );
static unsigned int mono( filter_t *, aout_buffer_t *, aout_buffer_t * );
static void stereo2mono_downmix( filter_t *, aout_buffer_t *,
aout_buffer_t * );
static unsigned int stereo_to_mono( filter_t *, block_t *, block_t * );
static unsigned int mono( filter_t *, block_t *, block_t * );
static void stereo2mono_downmix( filter_t *, block_t *, block_t * );
/*****************************************************************************
* Local structures
......@@ -504,7 +502,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
* Written by Boris Dorès <babal@via.ecp.fr>
*/
static void stereo2mono_downmix( filter_t * p_filter,
aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
block_t * p_in_buf, block_t * p_out_buf )
{
filter_sys_t *p_sys = (filter_sys_t *)p_filter->p_sys;
......@@ -607,7 +605,7 @@ static void stereo2mono_downmix( filter_t * p_filter,
/* Simple stereo to mono mixing. */
static unsigned int mono( filter_t *p_filter,
aout_buffer_t *p_output, aout_buffer_t *p_input )
block_t *p_output, block_t *p_input )
{
filter_sys_t *p_sys = (filter_sys_t *)p_filter->p_sys;
int16_t *p_in, *p_out;
......@@ -627,7 +625,7 @@ static unsigned int mono( filter_t *p_filter,
/* Simple stereo to mono mixing. */
static unsigned int stereo_to_mono( filter_t *p_filter,
aout_buffer_t *p_output, aout_buffer_t *p_input )
block_t *p_output, block_t *p_input )
{
filter_sys_t *p_sys = (filter_sys_t *)p_filter->p_sys;
int16_t *p_in, *p_out;
......
......@@ -59,7 +59,7 @@ static block_t *Filter( filter_t *, block_t * );
* DoWork: convert a buffer
*****************************************************************************/
static void DoWork( filter_t * p_filter,
aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
block_t * p_in_buf, block_t * p_out_buf )
{
const unsigned i_input_physical = p_filter->fmt_in.audio.i_physical_channels;
......
......@@ -74,7 +74,7 @@ vlc_module_end ()
* DoWork: decode an MPEG audio frame.
*****************************************************************************/
static void DoWork( filter_t * p_filter,
aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
block_t * p_in_buf, block_t * p_out_buf )
{
filter_sys_t *p_sys = p_filter->p_sys;
......
......@@ -39,7 +39,7 @@
* Local prototypes
*****************************************************************************/
static int Create( vlc_object_t * );
static void DoWork( audio_mixer_t *, aout_buffer_t *, float );
static void DoWork( audio_mixer_t *, block_t *, float );
/*****************************************************************************
* Module descriptor
......@@ -69,7 +69,7 @@ static int Create( vlc_object_t *p_this )
/**
* Mixes a new output buffer
*/
static void DoWork( audio_mixer_t * p_mixer, aout_buffer_t *p_buffer,
static void DoWork( audio_mixer_t * p_mixer, block_t *p_buffer,
float f_multiplier )
{
if( f_multiplier == 1.0 )
......
......@@ -136,9 +136,9 @@ static int Open ( vlc_object_t *p_this )
/*****************************************************************************
* aout_FifoPop : get the next buffer out of the FIFO
*****************************************************************************/
static aout_buffer_t *aout_FifoPop2( aout_fifo_t * p_fifo )
static block_t *aout_FifoPop2( aout_fifo_t * p_fifo )
{
aout_buffer_t *p_buffer = p_fifo->p_first;
block_t *p_buffer = p_fifo->p_first;
if( p_buffer != NULL )
{
p_fifo->p_first = p_buffer->p_next;
......@@ -167,7 +167,7 @@ static void Close ( vlc_object_t *p_this )
void AudioQueueCallback(void * inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer) {
audio_output_t * p_aout = (audio_output_t *)inUserData;
aout_buffer_t * p_buffer = NULL;
block_t * p_buffer = NULL;
if (p_aout) {
struct aout_sys_t * p_sys = p_aout->sys;
......
......@@ -1304,7 +1304,7 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
while( i_mData_bytes < ioData->mBuffers[0].mDataByteSize )
{
/* We don't have enough data yet */
aout_buffer_t * p_buffer;
block_t * p_buffer;
p_buffer = aout_PacketNext( p_aout, current_date );
if( p_buffer != NULL )
......@@ -1353,7 +1353,7 @@ static OSStatus RenderCallbackSPDIF( AudioDeviceID inDevice,
const AudioTimeStamp * inOutputTime,
void * threadGlobals )
{
aout_buffer_t * p_buffer;
block_t * p_buffer;
mtime_t current_date;
audio_output_t * p_aout = (audio_output_t *)threadGlobals;
......
......@@ -105,7 +105,7 @@ static int CreateDSBuffer ( audio_output_t *, int, int, int, int, int, bool
static int CreateDSBufferPCM ( audio_output_t *, vlc_fourcc_t*, int, int, int, bool );
static void DestroyDSBuffer ( audio_output_t * );
static void* DirectSoundThread( void * );
static int FillBuffer ( audio_output_t *, int, aout_buffer_t * );
static int FillBuffer ( audio_output_t *, int, block_t * );
static int ReloadDirectXDevices( vlc_object_t *, char const *,
vlc_value_t, vlc_value_t, void * );
......@@ -949,8 +949,7 @@ static void DestroyDSBuffer( audio_output_t *p_aout )
*****************************************************************************
* Returns VLC_SUCCESS on success.
*****************************************************************************/
static int FillBuffer( audio_output_t *p_aout, int i_frame,
aout_buffer_t *p_buffer )
static int FillBuffer( audio_output_t *p_aout, int i_frame, block_t *p_buffer )
{
aout_sys_t *p_sys = p_aout->sys;
notification_thread_t *p_notif = &p_sys->notif;
......@@ -1099,7 +1098,7 @@ static void* DirectSoundThread( void *data )
for( i = 0; i < l_free_slots; i++ )
{
aout_buffer_t *p_buffer = aout_PacketNext( p_aout,
block_t *p_buffer = aout_PacketNext( p_aout,
mtime + INT64_C(1000000) * (i * i_frame_siz + l_queued) /
p_aout->format.i_rate );
......
......@@ -263,7 +263,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
mtime_t play_date = mdate() + (mtime_t) ( dtime );
/* Get the next audio data buffer */
aout_buffer_t *p_buffer = aout_PacketNext( p_aout, play_date );
block_t *p_buffer = aout_PacketNext( p_aout, play_date );
if( p_buffer != NULL )
{
......
......@@ -284,7 +284,7 @@ static ULONG APIENTRY KaiCallback( PVOID p_cb_data,
ULONG i_buf_size )
{
audio_output_t *p_aout = (audio_output_t *)p_cb_data;
aout_buffer_t *p_aout_buffer;
block_t *p_aout_buffer;
mtime_t current_date, next_date;
ULONG i_len;
......
......@@ -550,7 +550,7 @@ static mtime_t BufferDuration( audio_output_t * p_aout )
typedef struct
{
aout_buffer_t *p_buffer;
block_t *p_buffer;
void *p_bytes;
} oss_thread_ctx_t;
......@@ -574,7 +574,7 @@ static void* OSSThread( void *obj )
for( ;; )
{
aout_buffer_t * p_buffer = NULL;
block_t * p_buffer = NULL;
int canc = vlc_savecancel ();
if ( p_aout->format.i_format != VLC_CODEC_SPDIFL )
......
......@@ -41,7 +41,7 @@ static void aout_FifoInit( aout_fifo_t *p_fifo, uint32_t i_rate )
/**
* Pushes a packet into the FIFO.
*/
static void aout_FifoPush( aout_fifo_t * p_fifo, aout_buffer_t * p_buffer )
static void aout_FifoPush( aout_fifo_t * p_fifo, block_t * p_buffer )
{
*p_fifo->pp_last = p_buffer;
p_fifo->pp_last = &p_buffer->p_next;
......@@ -65,13 +65,13 @@ static void aout_FifoPush( aout_fifo_t * p_fifo, aout_buffer_t * p_buffer )
*/
static void aout_FifoReset( aout_fifo_t * p_fifo )
{
aout_buffer_t * p_buffer;
block_t * p_buffer;
date_Set( &p_fifo->end_date, VLC_TS_INVALID );
p_buffer = p_fifo->p_first;
while ( p_buffer != NULL )
{
aout_buffer_t * p_next = p_buffer->p_next;
block_t * p_next = p_buffer->p_next;
block_Release( p_buffer );
p_buffer = p_next;
}
......@@ -98,9 +98,9 @@ static void aout_FifoMoveDates( aout_fifo_t *fifo, mtime_t difference )
/**
* Gets the next buffer out of the FIFO
*/
static aout_buffer_t *aout_FifoPop( aout_fifo_t * p_fifo )
static block_t *aout_FifoPop( aout_fifo_t * p_fifo )
{
aout_buffer_t *p_buffer = p_fifo->p_first;
block_t *p_buffer = p_fifo->p_first;
if( p_buffer != NULL )
{
p_fifo->p_first = p_buffer->p_next;
......@@ -115,12 +115,12 @@ static aout_buffer_t *aout_FifoPop( aout_fifo_t * p_fifo )
*/
static void aout_FifoDestroy( aout_fifo_t * p_fifo )
{
aout_buffer_t * p_buffer;
block_t * p_buffer;
p_buffer = p_fifo->p_first;
while ( p_buffer != NULL )
{
aout_buffer_t * p_next = p_buffer->p_next;
block_t * p_next = p_buffer->p_next;
block_Release( p_buffer );
p_buffer = p_next;
}
......@@ -229,7 +229,7 @@ static block_t *aout_OutputSlice (audio_output_t *p_aout)
mtime_t start_date = date_Get( &exact_start_date );
/* Check if there is enough data to slice a new buffer. */
aout_buffer_t *p_buffer = p_fifo->p_first;
block_t *p_buffer = p_fifo->p_first;
if( p_buffer == NULL )
return NULL;
......@@ -266,7 +266,7 @@ static block_t *aout_OutputSlice (audio_output_t *p_aout)
for( uint8_t *p_out = p_buffer->p_buffer; needed > 0; )
{
aout_buffer_t *p_inbuf = p_fifo->p_first;
block_t *p_inbuf = p_fifo->p_first;
if( unlikely(p_inbuf == NULL) )
{
msg_Err( p_aout, "packetization error" );
......
......@@ -63,7 +63,7 @@ static int OpenWaveOut ( audio_output_t *, uint32_t,
static int OpenWaveOutPCM( audio_output_t *, uint32_t,
vlc_fourcc_t*, int, int, int, bool );
static int PlayWaveOut ( audio_output_t *, HWAVEOUT, WAVEHDR *,
aout_buffer_t *, bool );
block_t *, bool );
static void CALLBACK WaveOutCallback ( HWAVEOUT, UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR );
static void* WaveOutThread( void * );
......@@ -738,8 +738,7 @@ static int OpenWaveOutPCM( audio_output_t *p_aout, uint32_t i_device_id,
* PlayWaveOut: play a buffer through the WaveOut device
*****************************************************************************/
static int PlayWaveOut( audio_output_t *p_aout, HWAVEOUT h_waveout,
WAVEHDR *p_waveheader, aout_buffer_t *p_buffer,
bool b_spdif)
WAVEHDR *p_waveheader, block_t *p_buffer, bool b_spdif)
{
MMRESULT result;
......@@ -842,8 +841,8 @@ static int WaveOutClearDoneBuffers(aout_sys_t *p_sys)
if( (p_waveheader[i].dwFlags & WHDR_DONE) &&
p_waveheader[i].dwUser )
{
aout_buffer_t *p_buffer =
(aout_buffer_t *)(p_waveheader[i].dwUser);
block_t *p_buffer =
(block_t *)(p_waveheader[i].dwUser);
/* Unprepare and free the buffers which has just been played */
waveOutUnprepareHeader( p_sys->h_waveout, &p_waveheader[i],
sizeof(WAVEHDR) );
......@@ -874,7 +873,7 @@ static void* WaveOutThread( void *data )
{
audio_output_t *p_aout = data;
aout_sys_t *p_sys = p_aout->sys;
aout_buffer_t *p_buffer = NULL;
block_t *p_buffer = NULL;
WAVEHDR *p_waveheader = p_sys->waveheader;
int i, i_queued_frames;
bool b_sleek;
......
......@@ -91,9 +91,9 @@ struct decoder_sys_t
****************************************************************************/
static block_t *DecodeBlock ( decoder_t *, block_t ** );
static uint8_t *GetOutBuffer ( decoder_t *, block_t ** );
static aout_buffer_t *GetAoutBuffer( decoder_t * );
static block_t *GetSoutBuffer( decoder_t * );
static uint8_t *GetOutBuffer ( decoder_t *, block_t ** );
static block_t *GetAoutBuffer( decoder_t * );
static block_t *GetSoutBuffer( decoder_t * );
/*****************************************************************************
* OpenCommon: probe the decoder/packetizer and return score
......@@ -367,7 +367,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
}
else
{
aout_buffer_t *p_aout_buffer = GetAoutBuffer( p_dec );
block_t *p_aout_buffer = GetAoutBuffer( p_dec );
p_buf = p_aout_buffer ? p_aout_buffer->p_buffer : NULL;
*pp_out_buffer = p_aout_buffer;
}
......@@ -378,11 +378,11 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
/*****************************************************************************
* GetAoutBuffer:
*****************************************************************************/
static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
static block_t *GetAoutBuffer( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
aout_buffer_t *p_buf = decoder_NewAudioBuffer( p_dec, p_sys->frame.i_samples );
block_t *p_buf = decoder_NewAudioBuffer( p_dec, p_sys->frame.i_samples );
if( p_buf )
{
p_buf->i_pts = date_Get( &p_sys->end_date );
......
......@@ -41,7 +41,7 @@
static int OpenDecoder( vlc_object_t * );
static void CloseDecoder( vlc_object_t * );
static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** );
static block_t *DecodeBlock( decoder_t *, block_t ** );
vlc_module_begin ()
set_description( N_("ADPCM audio decoder") )
......@@ -264,7 +264,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/*****************************************************************************
* DecodeBlock:
*****************************************************************************/
static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
block_t *p_block;
......@@ -290,7 +290,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_block->i_buffer >= p_sys->i_block )
{
aout_buffer_t *p_out;
block_t *p_out;
p_out = decoder_NewAudioBuffer( p_dec, p_sys->i_samplesperblock );
if( p_out == NULL )
......
......@@ -118,11 +118,11 @@ static void Close( vlc_object_t *p_this )
****************************************************************************
* Beware, this function must be fed with complete frames (PES packet).
*****************************************************************************/
static aout_buffer_t *Decode( decoder_t *p_dec, block_t **pp_block )
static block_t *Decode( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
block_t *p_block;
aout_buffer_t *p_aout_buffer;
block_t *p_aout_buffer;
int i_frame_length, i_bits;
p_block = Parse( p_dec, &i_frame_length, &i_bits, pp_block, false );
......
......@@ -63,9 +63,9 @@ vlc_module_end ()
/*****************************************************************************
* Local prototypes
*****************************************************************************/
static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** );
static block_t *DecodeBlock( decoder_t *, block_t ** );
#ifdef ENABLE_SOUT
static block_t *EncoderEncode( encoder_t *, aout_buffer_t * );
static block_t *EncoderEncode( encoder_t *, block_t * );
#endif
struct decoder_sys_t
......@@ -342,7 +342,7 @@ static int DecoderOpen( vlc_object_t *p_this )
****************************************************************************
* This function must be fed with whole samples (see nBlockAlign).
****************************************************************************/
static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
......@@ -1440,7 +1440,7 @@ static void EncoderClose ( vlc_object_t *p_this )
/*****************************************************************************
* EncoderEncode:
*****************************************************************************/
static block_t *EncoderEncode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
static block_t *EncoderEncode( encoder_t *p_enc, block_t *p_aout_buf )
{
encoder_sys_t *p_sys = p_enc->p_sys;
block_t *p_block = NULL;
......
......@@ -225,11 +225,11 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
* SplitBuffer: Needed because aout really doesn't like big audio chunk and
* wma produces easily > 30000 samples...
*****************************************************************************/
static aout_buffer_t *SplitBuffer( decoder_t *p_dec )
static block_t *SplitBuffer( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
int i_samples = __MIN( p_sys->i_samples, 4096 );
aout_buffer_t *p_buffer;
block_t *p_buffer;
if( i_samples == 0 ) return NULL;
......@@ -256,11 +256,11 @@ static aout_buffer_t *SplitBuffer( decoder_t *p_dec )
/*****************************************************************************
* DecodeAudio: Called to decode one frame
*****************************************************************************/
aout_buffer_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
block_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
int i_used, i_output;
aout_buffer_t *p_buffer;
block_t *p_buffer;
block_t *p_block;
AVPacket pkt;
......
......@@ -29,8 +29,8 @@ int GetVlcFourcc( int i_ffmpeg_codec, int *pi_cat,
vlc_fourcc_t *pi_fourcc, const char **ppsz_name );
void GetVlcAudioFormat( vlc_fourcc_t *, unsigned *pi_bits, int i_sample_fmt );
picture_t * DecodeVideo ( decoder_t *, block_t ** );
aout_buffer_t * DecodeAudio( decoder_t *, block_t ** );
picture_t * DecodeVideo( decoder_t *, block_t ** );
block_t * DecodeAudio( decoder_t *, block_t ** );
subpicture_t *DecodeSubtitle( decoder_t *p_dec, block_t ** );
/* Video encoder module */
......
......@@ -66,7 +66,7 @@ int OpenEncoder ( vlc_object_t * );
void CloseEncoder( vlc_object_t * );
static block_t *EncodeVideo( encoder_t *, picture_t * );
static block_t *EncodeAudio( encoder_t *, aout_buffer_t * );
static block_t *EncodeAudio( encoder_t *, block_t * );
struct thread_context_t;
......@@ -1065,7 +1065,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/****************************************************************************
* EncodeAudio: the whole thing
****************************************************************************/
static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf )
{
encoder_sys_t *p_sys = p_enc->p_sys;
......
......@@ -95,7 +95,7 @@ static int OpenDecoderCommon( vlc_object_t *p_this, bool b_force_dump )
/* Set callbacks */
p_dec->pf_decode_video = (picture_t *(*)(decoder_t *, block_t **))
DecodeBlock;
p_dec->pf_decode_audio = (aout_buffer_t *(*)(decoder_t *, block_t **))
p_dec->pf_decode_audio = (block_t *(*)(decoder_t *, block_t **))
DecodeBlock;
p_dec->pf_decode_sub = (subpicture_t *(*)(decoder_t *, block_t **))
DecodeBlock;
......
......@@ -274,7 +274,7 @@ found:
/* Set callbacks */
p_dec->pf_decode_video = (picture_t *(*)(decoder_t *, block_t **))
DecodeBlock;
p_dec->pf_decode_audio = (aout_buffer_t *(*)(decoder_t *, block_t **))
p_dec->pf_decode_audio = (block_t *(*)(decoder_t *, block_t **))
DecodeBlock;
vlc_mutex_init( &p_sys->lock );
......@@ -979,7 +979,7 @@ static void *DecBlock( decoder_t *p_dec, block_t **pp_block )
}
else
{
aout_buffer_t *p_aout_buffer;
block_t *p_aout_buffer;
int i_samples = block_out.i_buffer /
( p_dec->fmt_out.audio.i_bitspersample *
p_dec->fmt_out.audio.i_channels / 8 );
......@@ -1094,7 +1094,7 @@ static int EncoderOpen( vlc_object_t *p_this )
/* Set callbacks */
p_enc->pf_encode_video = (block_t *(*)(encoder_t *, picture_t *))
EncodeBlock;
p_enc->pf_encode_audio = (block_t *(*)(encoder_t *, aout_buffer_t *))
p_enc->pf_encode_audio = (block_t *(*)(encoder_t *, block_t *))
EncodeBlock;
return VLC_SUCCESS;
......@@ -1543,7 +1543,7 @@ static block_t *EncodeBlock( encoder_t *p_enc, void *p_data )
}
else
{
aout_buffer_t *p_aout_buffer = (aout_buffer_t *)p_data;
block_t *p_aout_buffer = (block_t *)p_data;
p_block_in = block_New( p_enc, p_aout_buffer->i_buffer );
memcpy( p_block_in->p_buffer, p_aout_buffer->p_buffer,
p_block_in->i_buffer );
......
......@@ -102,9 +102,9 @@ static inline int SyncCode( const uint8_t * );
static int SyncInfo( const uint8_t *, bool *, unsigned int *, unsigned int *,
unsigned int *, unsigned int *, unsigned int * );
static uint8_t *GetOutBuffer ( decoder_t *, block_t ** );
static aout_buffer_t *GetAoutBuffer( decoder_t * );
static block_t *GetSoutBuffer( decoder_t * );
static uint8_t *GetOutBuffer ( decoder_t *, block_t ** );
static block_t *GetAoutBuffer( decoder_t * );
static block_t *GetSoutBuffer( decoder_t * );
/*****************************************************************************
* OpenDecoder: probe the decoder
......@@ -388,7 +388,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
}
else
{
aout_buffer_t *p_aout_buffer = GetAoutBuffer( p_dec );
block_t *p_aout_buffer = GetAoutBuffer( p_dec );
p_buf = p_aout_buffer ? p_aout_buffer->p_buffer : NULL;
*pp_out_buffer = p_aout_buffer;
}
......@@ -399,10 +399,10 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
/*****************************************************************************
* GetAoutBuffer:
*****************************************************************************/
static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
static block_t *GetAoutBuffer( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
aout_buffer_t *p_buf;
block_t *p_buf;
/* Hack for DTS S/PDIF filter which needs to send 3 frames at a time
* (plus a few header bytes) */
......
......@@ -48,7 +48,7 @@ vlc_module_end ()
* Local prototypes
*****************************************************************************/
static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict );
static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf );
static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_buf );
/*****************************************************************************
* OpenDecoder: open the dummy encoder.
......@@ -75,7 +75,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/****************************************************************************
* EncodeAudio: the whole thing
****************************************************************************/
static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf )
static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_buf )
{
VLC_UNUSED(p_enc); VLC_UNUSED(p_buf);
return NULL;
......
......@@ -51,7 +51,7 @@ vlc_module_end ()
/****************************************************************************
* Local prototypes
****************************************************************************/
static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** );
static block_t *DecodeBlock( decoder_t *, block_t ** );
static void DoReordering( uint32_t *, uint32_t *, int, int, uint32_t * );
#define MAX_CHANNEL_POSITIONS 9
......@@ -199,7 +199,7 @@ static int Open( vlc_object_t *p_this )
/*****************************************************************************
* DecodeBlock:
*****************************************************************************/
static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
block_t *p_block;
......@@ -314,7 +314,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
void *samples;
faacDecFrameInfo frame;
aout_buffer_t *p_out;
block_t *p_out;
int i, j;
samples = faacDecDecode( p_sys->hfaad, &frame,
......
......@@ -56,8 +56,8 @@ struct decoder_sys_t
* Input/Output properties
*/
block_t *p_block;
aout_buffer_t *p_aout_buffer;
date_t end_date;
block_t *p_aout_buffer;
date_t end_date;
/*
* FLAC properties
......@@ -96,7 +96,7 @@ static void CloseDecoder ( vlc_object_t * );
static int OpenEncoder ( vlc_object_t * );
static void CloseEncoder ( vlc_object_t * );
static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** );
static block_t *DecodeBlock( decoder_t *, block_t ** );
/*****************************************************************************
* Module descriptor
......@@ -523,7 +523,7 @@ static void decoder_state_error( decoder_t *p_dec,
/****************************************************************************
* DecodeBlock: the whole thing
****************************************************************************/
static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
decoder_sys_t *p_sys = p_dec->p_sys;
......@@ -599,7 +599,7 @@ struct encoder_sys_t
#define STREAMINFO_SIZE 38
static block_t *Encode( encoder_t *, aout_buffer_t * );
static block_t *Encode( encoder_t *, block_t * );
/*****************************************************************************
* EncoderWriteCallback: called by libflac to output encoded samples
......@@ -743,7 +743,7 @@ static int OpenEncoder( vlc_object_t *p_this )
****************************************************************************
* This function spits out ogg packets.
****************************************************************************/
static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
{
encoder_sys_t *p_sys = p_enc->p_sys;
block_t *p_chain;
......
......@@ -95,7 +95,7 @@ struct decoder_sys_t
};
static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block);
static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block);
static int Open (vlc_object_t *p_this)
......@@ -195,11 +195,11 @@ static void Close (vlc_object_t *p_this)
}