add log on start / stop of switcher thread

This commit is contained in:
WarmUpTill 2020-06-02 20:53:26 +02:00
parent e6a3f98ab7
commit 5ab8199e03

View File

@ -1392,6 +1392,7 @@ static void SaveSceneSwitcher(obs_data_t *save_data, bool saving, void *)
********************************************************************************/
void SwitcherData::Thread()
{
blog(LOG_INFO, "Advanced Scene Switcher started");
//to avoid scene duplication when rapidly switching scene collection
this_thread::sleep_for(chrono::seconds(2));
@ -1483,7 +1484,8 @@ void SwitcherData::Thread()
switchScene(scene, transition, lock);
}
}
endLoop:;
endLoop:
blog(LOG_INFO, "Advanced Scene Switcher stopped");
}
void switchScene(OBSWeakSource &scene, OBSWeakSource &transition,