[vlc-commits] audiounit_ios: don't try to handle passthrough

Thomas Guillem git at videolan.org
Wed Mar 1 17:49:53 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar  1 17:19:37 2017 +0100| [c40022f3fbcaf7428e193951951bd680a58b090b] | committer: Thomas Guillem

audiounit_ios: don't try to handle passthrough

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

 modules/audio_output/audiounit_ios.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m
index 459a263..8f66257 100644
--- a/modules/audio_output/audiounit_ios.m
+++ b/modules/audio_output/audiounit_ios.m
@@ -200,7 +200,8 @@ Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
     struct aout_sys_t *p_sys = p_aout->sys;
     OSStatus err;
 
-    if (aout_FormatNbChannels(fmt) == 0)
+    if (aout_FormatNbChannels(fmt) == 0
+     || aout_BitsPerSample(fmt->i_format) == 0 /* No Passthrough support */)
         return VLC_EGENERIC;
 
     aout_FormatPrint(p_aout, "VLC is looking for:", fmt);



More information about the vlc-commits mailing list