vlc | branch: master | Marvin Scholz <epira...@gmail.com> | Wed Feb 14 23:42:50 
2018 +0100| [ad17fde5c6753e5ed1b13087db62e3b92561227e] | committer: Marvin 
Scholz

audio_output/coreaudio: Remove check for 10.7

This removes the check if we are running 10.7 or higher and therefore
support 8.0 audio output, as this is always true given the macOS
version we are targeting.

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

 modules/audio_output/coreaudio_common.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/modules/audio_output/coreaudio_common.c 
b/modules/audio_output/coreaudio_common.c
index d113975432..428e042f03 100644
--- a/modules/audio_output/coreaudio_common.c
+++ b/modules/audio_output/coreaudio_common.c
@@ -488,26 +488,6 @@ MapOutputLayout(audio_output_t *p_aout, 
audio_sample_format_t *fmt,
 #endif
         }
 
-        if (aout_FormatNbChannels(fmt) >= 8
-         && fmt->i_physical_channels != AOUT_CHANS_7_1)
-        {
-#if TARGET_OS_IPHONE
-            const bool b_8x_support = true;
-#else
-            SInt32 osx_min_version;
-            if (Gestalt(gestaltSystemVersionMinor, &osx_min_version) != noErr)
-                msg_Err(p_aout, "failed to check OSX version");
-            const bool b_8x_support = osx_min_version >= 7;
-#endif
-
-            if (!b_8x_support)
-            {
-                msg_Warn(p_aout, "8.0 audio output not supported on this "
-                         "device, layout will be incorrect");
-                fmt->i_physical_channels = AOUT_CHANS_7_1;
-            }
-        }
-
     }
 
 end:

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to