Rework handling of fade threads

Previous implementation did not allow ongoing fades to be stopped.
New implementations allows waiting for fade to complete.
This commit is contained in:
WarmUpTill
2022-02-28 20:13:15 +01:00
committed by WarmUpTill
parent a86f7d0fd4
commit ac5b2c3f9e
7 changed files with 84 additions and 34 deletions

View File

@@ -437,13 +437,6 @@ void SwitcherData::Stop()
server.stop();
client.disconnect();
for (auto &t : audioHelperThreads) {
if (t.joinable()) {
t.join();
}
}
audioHelperThreads.clear();
if (showSystemTrayNotifications) {
DisplayTrayMessage(
obs_module_text("AdvSceneSwitcher.pluginName"),