mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-26 00:01:13 -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()
|
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)
|
if (autoStartedRecently)
|
||||||
return;
|
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 (ws && autoStartScene == ws) {
|
||||||
if ((switcher->autoStartType == STREAMING ||
|
if ((switcher->autoStartType == STREAMING ||
|
||||||
switcher->autoStartType == RECORINDGSTREAMING) &&
|
switcher->autoStartType == RECORINDGSTREAMING) &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user