only try auto start streaming/recording once on scene chagne

This commit is contained in:
WarmUpTill
2020-08-24 20:55:54 +02:00
parent 95261ce9bb
commit a5c8d776f3
3 changed files with 14 additions and 1 deletions

View File

@@ -254,7 +254,11 @@ struct TimeSwitch {
typedef enum { NO_SWITCH = 0, SWITCH = 1, RANDOM_SWITCH = 2 } NoMatch;
typedef enum { PERSIST = 0, START = 1, STOP = 2 } StartupBehavior;
typedef enum { RECORDING = 0, STREAMING = 1, RECORINDGSTREAMING = 2 } AutoStartType;
typedef enum {
RECORDING = 0,
STREAMING = 1,
RECORINDGSTREAMING = 2
} AutoStartType;
class SwitcherThread;
@@ -312,6 +316,7 @@ struct SwitcherData {
bool autoStartEnable = false;
AutoStartType autoStartType = RECORDING;
OBSWeakSource autoStartScene;
bool autoStartedRecently = false;
std::vector<SceneTransition> sceneTransitions;
std::vector<DefaultSceneTransition> defaultSceneTransitions;