mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-07-12 22:53:55 -05:00
Fix crash on transition start in studio mode
This commit is contained in:
parent
8727a65513
commit
fd7b25b607
|
|
@ -163,7 +163,7 @@ void MacroConditionTransition::TransitionStarted(void *data, calldata_t *cd)
|
|||
// Look up the original by name to get a comparable reference.
|
||||
const bool studioModeActive =
|
||||
obs_frontend_preview_program_mode_active();
|
||||
if (studioModeActive) {
|
||||
if (studioModeActive && startSource) {
|
||||
OBSSourceAutoRelease startSourceByName = obs_get_source_by_name(
|
||||
obs_source_get_name(startSource));
|
||||
if (startSourceByName) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user