mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
23bfb625ce
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. |
||
---|---|---|
.. | ||
data/locale | ||
audio-device-enum.c | ||
audio-device-enum.h | ||
CGDisplayStream.h | ||
CMakeLists.txt | ||
mac-audio.c | ||
mac-display-capture.m | ||
mac-sck-audio-capture.m | ||
mac-sck-common.h | ||
mac-sck-common.m | ||
mac-sck-video-capture.m | ||
mac-window-capture.m | ||
plugin-main.c | ||
window-utils.h | ||
window-utils.m |