[vlc-commits] aout: remove unused aout_DecNew() parameter

Rémi Denis-Courmont git at videolan.org
Fri Jan 18 22:12:56 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 18 21:38:32 2019 +0200| [deaecce717386b550998554066e123dd665d2723] | committer: Rémi Denis-Courmont

aout: remove unused aout_DecNew() parameter

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=deaecce717386b550998554066e123dd665d2723
---

 src/audio_output/aout_internal.h | 2 +-
 src/audio_output/dec.c           | 7 +++----
 src/input/decoder.c              | 3 +--
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/audio_output/aout_internal.h b/src/audio_output/aout_internal.h
index d75b73c5a6..9ceb3a0996 100644
--- a/src/audio_output/aout_internal.h
+++ b/src/audio_output/aout_internal.h
@@ -135,7 +135,7 @@ void aout_FormatsPrint(vlc_object_t *, const char *,
 #define AOUT_DEC_FAILED VLC_EGENERIC
 
 int aout_DecNew(audio_output_t *, const audio_sample_format_t *,
-                const audio_replay_gain_t *, const aout_request_vout_t *);
+                const audio_replay_gain_t *);
 void aout_DecDelete(audio_output_t *);
 int aout_DecPlay(audio_output_t *aout, block_t *block);
 void aout_DecGetResetStats(audio_output_t *, unsigned *, unsigned *);
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 509c325e1a..6feb574792 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -40,10 +40,9 @@
 /**
  * Creates an audio output
  */
-int aout_DecNew( audio_output_t *p_aout,
-                 const audio_sample_format_t *p_format,
-                 const audio_replay_gain_t *p_replay_gain,
-                 const aout_request_vout_t *p_request_vout )
+int aout_DecNew(audio_output_t *p_aout,
+                const audio_sample_format_t *p_format,
+                const audio_replay_gain_t *p_replay_gain)
 {
     if( p_format->i_bitspersample > 0 )
     {
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 1a7a6652a1..ef0d69e52f 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -395,8 +395,7 @@ static int aout_update_format( decoder_t *p_dec )
                 var_SetBool( p_aout, "dtshd", p_dec->fmt_out.i_profile > 0 );
 
             if( aout_DecNew( p_aout, &format,
-                             &p_dec->fmt_out.audio_replay_gain,
-                             &request_vout ) )
+                             &p_dec->fmt_out.audio_replay_gain ) )
             {
                 input_resource_PutAout( p_owner->p_resource, p_aout );
                 p_aout = NULL;



More information about the vlc-commits mailing list