0017-audiounit_ios-remove-a-write-only-variable-and-relat.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From ea8f1aaf72fb28e9f979a42b96d761796532e0dd Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Mon, 1 Apr 2013 16:51:10 +0200
  4. Subject: [PATCH 2/4] audiounit_ios: remove a write-only variable and related
  5. code
  6. ---
  7. modules/audio_output/audiounit_ios.c | 11 -----------
  8. 1 file changed, 11 deletions(-)
  9. diff --git a/modules/audio_output/audiounit_ios.c b/modules/audio_output/audiounit_ios.c
  10. index e4d28cc..24e1266 100644
  11. --- a/modules/audio_output/audiounit_ios.c
  12. +++ b/modules/audio_output/audiounit_ios.c
  13. @@ -58,7 +58,6 @@
  14. *****************************************************************************/
  15. struct aout_sys_t
  16. {
  17. - uint8_t chans_to_reorder; /* do we need channel reordering */
  18. uint8_t chan_table[AOUT_CHAN_MAX];
  19. UInt32 i_numberOfChannels;
  20. @@ -163,7 +162,6 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
  21. UInt32 i_param_size = 0;
  22. AudioComponentDescription desc;
  23. AURenderCallbackStruct callback;
  24. - p_aout->sys->chans_to_reorder = 0;
  25. OSStatus status;
  26. /* Lets go find our Component */
  27. @@ -314,15 +312,6 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
  28. p_sys->b_got_first_sample = true;
  29. }
  30. - /* Do the channel reordering */
  31. - if (p_sys->chans_to_reorder) {
  32. - aout_ChannelReorder(p_block->p_buffer,
  33. - p_block->i_buffer,
  34. - p_sys->chans_to_reorder,
  35. - p_sys->chan_table,
  36. - VLC_CODEC_FL32);
  37. - }
  38. -
  39. /* move data to buffer */
  40. if (unlikely(!TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_buffer)))
  41. msg_Warn(p_aout, "Audio buffer was dropped");
  42. --
  43. 1.7.12.4 (Apple Git-37)