add linger variable instead of sleeping inside sequence match (#105)

This solves issues with the busy loop detection and adds the possibility of other switching methods to delay the scene switch
This commit is contained in:
WarmUpTill
2021-01-23 20:32:32 +01:00
committed by GitHub
parent d989c2b570
commit fe9457427f
4 changed files with 35 additions and 36 deletions

View File

@@ -173,8 +173,7 @@ struct SwitcherData {
OBSWeakSource &transition);
void setCurrentDefTransition(OBSWeakSource &transition);
void checkSceneSequence(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition,
std::unique_lock<std::mutex> &lock);
OBSWeakSource &transition, int &linger);
void checkIdleSwitch(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition);
void checkWindowTitleSwitch(bool &match, OBSWeakSource &scene,