[vlc-commits] audiounit_ios: remove a write-only variable and related code

Felix Paul Kühne git at videolan.org
Thu Apr 4 19:36:50 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr  1 16:51:10 2013 +0200| [161a58b40032699572f6568e3d5e793cbe30bee3] | committer: Felix Paul Kühne

audiounit_ios: remove a write-only variable and related code

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

 modules/audio_output/audiounit_ios.c |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/modules/audio_output/audiounit_ios.c b/modules/audio_output/audiounit_ios.c
index e4d28cc..24e1266 100644
--- a/modules/audio_output/audiounit_ios.c
+++ b/modules/audio_output/audiounit_ios.c
@@ -58,7 +58,6 @@
  *****************************************************************************/
 struct aout_sys_t
 {
-    uint8_t                     chans_to_reorder;   /* do we need channel reordering */
     uint8_t                     chan_table[AOUT_CHAN_MAX];
 
     UInt32                      i_numberOfChannels;
@@ -163,7 +162,6 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
     UInt32                      i_param_size = 0;
     AudioComponentDescription   desc;
     AURenderCallbackStruct      callback;
-    p_aout->sys->chans_to_reorder = 0;
     OSStatus status;
 
     /* Lets go find our Component */
@@ -314,15 +312,6 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
             p_sys->b_got_first_sample = true;
         }
 
-        /* Do the channel reordering */
-        if (p_sys->chans_to_reorder) {
-           aout_ChannelReorder(p_block->p_buffer,
-                               p_block->i_buffer,
-                               p_sys->chans_to_reorder,
-                               p_sys->chan_table,
-                               VLC_CODEC_FL32);
-        }
-
         /* move data to buffer */
         if (unlikely(!TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_buffer)))
             msg_Warn(p_aout, "Audio buffer was dropped");



More information about the vlc-commits mailing list