mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-04 08:15:38 -05:00
fix crash on exit when on autoStart scene (#47)
This commit is contained in:
parent
787b664d29
commit
fb1eac5268
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user