From fb1eac52686caf59638ddda78b375b8f48ec194f Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 10 Oct 2020 01:56:08 +0200 Subject: [PATCH] fix crash on exit when on autoStart scene (#47) --- src/general.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/general.cpp b/src/general.cpp index 6111a74c..b2af8a03 100644 --- a/src/general.cpp +++ b/src/general.cpp @@ -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) &&