OBS Studio - Free and open source software for live streaming and screen recording
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.
G
gxalpha committed
23bfb625ceb596c60334a282e9cb89efed743fd4
Parent: 857c42a
Committed by Ryan Foster <ryan@obsproject.com>
on 9/28/2023, 6:25:55 PM