mac-capture: Add deprecated flag to traditional captures if SCK exists
Marking a source as deprecated will make it harder for users to find when creating a new source. We don't currently plan on removing traditional display and window capture, however ScreenCaptureKit will be the preferred capture method going forward.
This commit is contained in:
parent
33a48a6e9c
commit
22baff138b
@ -18,13 +18,15 @@ bool obs_module_load(void)
|
||||
{
|
||||
obs_register_source(&coreaudio_input_capture_info);
|
||||
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 >= 120500 // __MAC_12_6
|
||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 120500 // __MAC_12_5
|
||||
if (is_screen_capture_available()) {
|
||||
extern struct obs_source_info screen_capture_info;
|
||||
obs_register_source(&screen_capture_info);
|
||||
display_capture_info.output_flags |= OBS_SOURCE_DEPRECATED;
|
||||
window_capture_info.output_flags |= OBS_SOURCE_DEPRECATED;
|
||||
}
|
||||
#endif
|
||||
obs_register_source(&display_capture_info);
|
||||
obs_register_source(&window_capture_info);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user