diff --git a/advanced-scene-switcher.cpp b/advanced-scene-switcher.cpp index 83121c81..800b688d 100644 --- a/advanced-scene-switcher.cpp +++ b/advanced-scene-switcher.cpp @@ -140,8 +140,6 @@ struct SwitcherData if (!WeakSourceValid(idleData.scene) || !WeakSourceValid(idleData.transition)) { - idleData.scene = NULL; - idleData.transition = NULL; idleData.idleEnable = false; } } @@ -2383,8 +2381,9 @@ void SwitcherData::Thread() bool pause = false; bool sceneRoundTripActive = false; + switcher->Prune(); + // Files - // TODO add transitions to output file / read them in the input file obs_source_t* currentSource = obs_frontend_get_current_scene(); if (fileIO.writeEnabled) @@ -2606,8 +2605,6 @@ void SwitcherData::Thread() // End Ignore Windows - switcher->Prune(); - // Idle switch if (!match && idleData.idleEnable)