[vlc-commits] auhal: correctly fix channel ordering by setting the correct scope.

David Fuhrmann git at videolan.org
Tue Mar 4 18:35:07 CET 2014


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Feb 27 22:12:34 2014 +0100| [a54d46ff9a2abbe424376e9d31d74b110f74528e] | committer: David Fuhrmann

auhal: correctly fix channel ordering by setting the correct scope.

fixes #10125, #10199

(cherry picked from commit a748266bfbe9d8671db2edd0c454697a6acfbc70)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

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

 modules/audio_output/auhal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index c421fe6..f42f8b2 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -815,7 +815,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
     /* Set the new_layout as the layout VLC will use to feed the AU unit */
     verify_noerr(AudioUnitSetProperty(p_sys->au_unit,
                             kAudioUnitProperty_AudioChannelLayout,
-                            kAudioUnitScope_Output,
+                            kAudioUnitScope_Input, /* yes, it must be the INPUT scope */
                             0, &new_layout, sizeof(new_layout)));
 
     if (new_layout.mNumberChannelDescriptions > 0)



More information about the vlc-commits mailing list