From 1558ead9881aacfd8645b74aa66f65a9771f2712 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 4 Feb 2017 00:10:11 +0100 Subject: [PATCH] Fix for idle detection settings resetting --- advanced-scene-switcher.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)