0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/plugins/mac-capture
gxalpha 23bfb625ce mac-capture: Don't crash when migrating unknown display IDs
The current code assumes that a display UUID can be created with the
stored ID, but that's not always the case, e.g. when the user doesn't
have the display connected. As such, we need to null check this, and
fall back to the invalid ID (0) when the ID cannot be migrated.

The current code also only migrates on source creation, which yields
weird behaviour where if the user opens properties and then cancels it
would still show the first display, but only for the session. This is
why the code was factored out of the creation function and now is always
used when an ID needs to be acquired from OBS Data settings, including
when the source is updated.
2023-09-28 14:25:55 -04:00
..
data/locale Update translations from Crowdin 2023-08-13 14:09:15 +00:00
audio-device-enum.c mac-capture: Simplify coreaudio_get_device_id 2023-04-01 16:13:17 -07:00
audio-device-enum.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
CGDisplayStream.h clang-format: Update formatting of all ObjC and ObjC++ files 2023-06-11 14:56:45 +02:00
CMakeLists.txt mac-capture: Add macOS Audio Capture 2023-06-30 23:59:20 +02:00
mac-audio.c mac-capture: Remove unused macros 2023-01-28 19:03:55 -08:00
mac-display-capture.m mac-capture: Don't crash when migrating unknown display IDs 2023-09-28 14:25:55 -04:00
mac-sck-audio-capture.m mac-capture: Set correct default type for application data 2023-07-16 02:00:39 +02:00
mac-sck-common.h mac-capture: Add button to reactivate stopped capture 2023-07-03 15:35:04 +02:00
mac-sck-common.m mac-capture: Add button to reactivate stopped capture 2023-07-03 15:35:04 +02:00
mac-sck-video-capture.m mac-capture: Don't crash when migrating unknown display IDs 2023-09-28 14:25:55 -04:00
mac-window-capture.m clang-format: Update formatting of all ObjC and ObjC++ files 2023-06-11 14:56:45 +02:00
plugin-main.c mac-capture: Mark CoreAudio output capture source as deprecated 2023-07-01 16:51:28 +02:00
window-utils.h mac-capture: Don't crash when migrating unknown display IDs 2023-09-28 14:25:55 -04:00
window-utils.m mac-capture: Don't crash when migrating unknown display IDs 2023-09-28 14:25:55 -04:00