Add video tab (#131)

This tab will allow switching scenes based on the video output of sources.
This commit is contained in:
WarmUpTill
2021-03-05 14:08:17 +01:00
committed by GitHub
parent 78e14df620
commit e4bb034303
14 changed files with 1142 additions and 31 deletions

View File

@@ -87,6 +87,7 @@ void resetPause()
IdleData::pause = false;
SceneSequenceSwitch::pause = false;
AudioSwitch::pause = false;
VideoSwitch::pause = false;
}
void setPauseTarget(PauseTarget &target, bool &verbose)
@@ -139,6 +140,10 @@ void setPauseTarget(PauseTarget &target, bool &verbose)
vblog(LOG_INFO, "pause audio switching");
AudioSwitch::pause = true;
break;
case PauseTarget::Video:
vblog(LOG_INFO, "pause video switching");
VideoSwitch::pause = true;
break;
}
}
@@ -340,6 +345,7 @@ void populatePauseTargets(QComboBox *list)
list->addItem(
obs_module_text("AdvSceneSwitcher.sceneSequenceTab.title"));
list->addItem(obs_module_text("AdvSceneSwitcher.audioTab.title"));
list->addItem(obs_module_text("AdvSceneSwitcher.VideoTab.title"));
}
PauseEntryWidget::PauseEntryWidget(QWidget *parent, PauseEntry *s)