allow selection of target for auto stop of recoding or streaming

This commit is contained in:
WarmUpTill
2021-01-18 01:20:56 +01:00
committed by GitHub
parent 5156c66b26
commit 0950d93828
6 changed files with 56 additions and 15 deletions

View File

@@ -121,6 +121,7 @@ public slots:
void on_sceneSequenceDown_clicked();
void on_autoStopSceneCheckBox_stateChanged(int state);
void on_autoStopType_currentIndexChanged(int index);
void on_autoStopScenes_currentTextChanged(const QString &text);
void on_autoStartSceneCheckBox_stateChanged(int state);

View File

@@ -29,7 +29,7 @@ typedef enum {
RECORDING = 0,
STREAMING = 1,
RECORINDGSTREAMING = 2
} AutoStartType;
} AutoStartStopType;
typedef struct transitionData {
std::string name = "";
@@ -92,10 +92,11 @@ struct SwitcherData {
std::deque<ExecutableSwitch> executableSwitches;
bool autoStopEnable = false;
AutoStartStopType autoStopType = RECORINDGSTREAMING;
OBSWeakSource autoStopScene;
bool autoStartEnable = false;
AutoStartType autoStartType = RECORDING;
AutoStartStopType autoStartType = RECORDING;
OBSWeakSource autoStartScene;
bool autoStartedRecently = false;