fix crash on exit when on autoStart scene (#47)

This commit is contained in:
WarmUpTill 2020-10-10 01:56:08 +02:00 committed by GitHub
parent 787b664d29
commit fb1eac5268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,12 +209,12 @@ void SceneSwitcher::UpdateAutoStartScene(const QString &name)
void SwitcherData::autoStartStreamRecording()
{
obs_source_t *currentSource = obs_frontend_get_current_scene();
obs_weak_source_t *ws = obs_source_get_weak_source(currentSource);
if (autoStartedRecently)
return;
obs_source_t *currentSource = obs_frontend_get_current_scene();
obs_weak_source_t *ws = obs_source_get_weak_source(currentSource);
if (ws && autoStartScene == ws) {
if ((switcher->autoStartType == STREAMING ||
switcher->autoStartType == RECORINDGSTREAMING) &&