mac-capture: Increase required macOS version for ScreenCaptureKit

master
PatTheMav 2022-07-20 14:35:50 +02:00 committed by Patrick Heyer
parent 81b631a855
commit ca1a37586f
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ bool is_screen_capture_available(void)
return (NSClassFromString(@"SCStream") != NULL);
}
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 120300 // __MAC_12_3
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 120500 // __MAC_12_5
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunguarded-availability-new"

View File

@ -20,7 +20,7 @@ bool obs_module_load(void)
obs_register_source(&coreaudio_output_capture_info);
obs_register_source(&display_capture_info);
obs_register_source(&window_capture_info);
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 120300 // __MAC_12_3
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 120500 // __MAC_12_6
if (is_screen_capture_available()) {
extern struct obs_source_info screen_capture_info;
obs_register_source(&screen_capture_info);