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) &&