Add option to select OSB' main video output

This commit is contained in:
WarmUpTill
2022-03-28 21:52:38 +02:00
committed by WarmUpTill
parent 102b93d3b5
commit 123d308a0d
9 changed files with 206 additions and 31 deletions

View File

@@ -600,7 +600,8 @@ void populateAudioSelection(QComboBox *sel, bool addSelect)
sel->setCurrentIndex(0);
}
void populateVideoSelection(QComboBox *sel, bool addScenes, bool addSelect)
void populateVideoSelection(QComboBox *sel, bool addMainOutput, bool addScenes,
bool addSelect)
{
auto sourceEnum = [](void *data, obs_source_t *source) -> bool /* -- */
@@ -628,6 +629,10 @@ void populateVideoSelection(QComboBox *sel, bool addScenes, bool addSelect)
}
sel->model()->sort(0);
if (addMainOutput) {
sel->insertItem(
0, obs_module_text("AdvSceneSwitcher.OBSVideoOutput"));
}
if (addSelect) {
addSelectionEntry(
sel,