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

aout_DecNew: constify

parent d69ef1f1
......@@ -172,8 +172,9 @@ void aout_FormatsPrint( audio_output_t * p_aout, const char * psz_text, const au
bool aout_ChangeFilterString( vlc_object_t *, audio_output_t *, const char *psz_variable, const char *psz_name, bool b_add );
/* From dec.c */
aout_input_t *aout_DecNew( audio_output_t *, audio_sample_format_t *,
const audio_replay_gain_t *, const aout_request_vout_t * );
aout_input_t *aout_DecNew(audio_output_t *, const audio_sample_format_t *,
const audio_replay_gain_t *,
const aout_request_vout_t *);
void aout_DecDelete ( audio_output_t *, aout_input_t * );
aout_buffer_t * aout_DecNewBuffer( aout_input_t *, size_t );
void aout_DecDeleteBuffer( audio_output_t *, aout_input_t *, aout_buffer_t * );
......
......@@ -43,7 +43,7 @@
* Creates an audio output
*/
aout_input_t *aout_DecNew( audio_output_t *p_aout,
audio_sample_format_t *p_format,
const audio_sample_format_t *p_format,
const audio_replay_gain_t *p_replay_gain,
const aout_request_vout_t *p_request_vout )
{
......@@ -84,8 +84,6 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
p_input->b_error = true;
aout_FormatPrepare( p_format );
memcpy( &p_input->input, p_format,
sizeof(audio_sample_format_t) );
if( p_replay_gain )
......
......@@ -2287,6 +2287,7 @@ static aout_buffer_t *aout_new_buffer( decoder_t *p_dec, int i_samples )
p_aout = input_resource_RequestAout( p_owner->p_resource, NULL );
if( p_aout )
{
aout_FormatPrepare( &format );
p_aout_input = aout_DecNew( p_aout, &format,
&p_dec->fmt_out.audio_replay_gain,
&request_vout );
......
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