vlc | branch: master | Thomas Guillem <[email protected]> | 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);

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to