mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-23 02:14:55 -05:00
Merge branch 'master' of https://github.com/WarmUpTill/SceneSwitcher
This commit is contained in:
commit
2ae97cd90e
|
|
@ -330,7 +330,6 @@ void SwitcherData::Thread()
|
|||
int sleep = 0;
|
||||
|
||||
while (true) {
|
||||
startLoop:
|
||||
std::unique_lock<std::mutex> lock(m);
|
||||
bool match = false;
|
||||
OBSWeakSource scene;
|
||||
|
|
@ -393,10 +392,6 @@ void SwitcherData::Thread()
|
|||
case round_trip_func:
|
||||
checkSceneSequence(match, scene, transition,
|
||||
lock);
|
||||
if (sceneChangedDuringWait()) //scene might have changed during the sleep
|
||||
{
|
||||
goto startLoop;
|
||||
}
|
||||
break;
|
||||
case media_func:
|
||||
checkMediaSwitch(match, scene, transition);
|
||||
|
|
@ -515,7 +510,6 @@ extern "C" void FreeSceneSwitcher()
|
|||
|
||||
void handleSceneChange(SwitcherData *s)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(s->m);
|
||||
//stop waiting if scene was manually changed
|
||||
if (s->sceneChangedDuringWait())
|
||||
s->cv.notify_one();
|
||||
|
|
|
|||
|
|
@ -183,7 +183,10 @@ void SwitcherData::checkSceneSequence(bool &match, OBSWeakSource &scene,
|
|||
transition = s.transition;
|
||||
if (verbose)
|
||||
s.logMatch();
|
||||
} else if (verbose) {
|
||||
blog(LOG_INFO, "sequence canceled");
|
||||
}
|
||||
|
||||
obs_source_release(currentSource2);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user