Fix previous scene not working for some sequences

If a duration for a transition is used that is longer than the scene
switcher check interval it could happen that the "incorrect" previous
scene could be chosen for uninterruptible scene sequences, as at the
time the sequence check was preformed the "previous scene" variable
was not yet updated as the transition was still ongoing.
This commit is contained in:
WarmUpTill
2021-04-24 23:57:45 +02:00
committed by WarmUpTill
parent 1310d0b3f3
commit d9dfc1913d
3 changed files with 20 additions and 7 deletions

View File

@@ -188,9 +188,9 @@ struct SwitcherData {
void writeToStatusFile(QString status);
bool checkForMatch(OBSWeakSource &scene, OBSWeakSource &transition,
int &linger);
int &linger, bool &setPreviousSceneAsMatch);
bool checkSceneSequence(OBSWeakSource &scene, OBSWeakSource &transition,
int &linger);
int &linger, bool &setPrevSceneAfterLinger);
bool checkIdleSwitch(OBSWeakSource &scene, OBSWeakSource &transition);
bool checkWindowTitleSwitch(OBSWeakSource &scene,
OBSWeakSource &transition);