mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 09:11:17 +00:00
avdevice/audiotoolbox: Fix availability macro check
Since OSX 10.10 the availability macros expand into a 6 digit number instead of a 4 digit number. Fixes compilation for OSX version [10.0, 12.0[.
This commit is contained in:
parent
7cc4b306eb
commit
03ac6aa627
@ -85,7 +85,7 @@ static av_cold int at_write_header(AVFormatContext *avctx)
|
|||||||
AudioObjectPropertyAddress prop;
|
AudioObjectPropertyAddress prop;
|
||||||
prop.mSelector = kAudioHardwarePropertyDevices;
|
prop.mSelector = kAudioHardwarePropertyDevices;
|
||||||
prop.mScope = kAudioObjectPropertyScopeGlobal;
|
prop.mScope = kAudioObjectPropertyScopeGlobal;
|
||||||
#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1200
|
#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
|
||||||
prop.mElement = kAudioObjectPropertyElementMain;
|
prop.mElement = kAudioObjectPropertyElementMain;
|
||||||
#else
|
#else
|
||||||
prop.mElement = kAudioObjectPropertyElementMaster;
|
prop.mElement = kAudioObjectPropertyElementMaster;
|
||||||
|
Loading…
Reference in New Issue
Block a user