Skip to content

Commit

Permalink
Fix video encoder index visible at start
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jul 29, 2024
1 parent c2850d1 commit a175a15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@ void OBSBasicSettings::AddServer(QFormLayout *outputsLayout, obs_data_t *setting
});
videoPageLayout->addRow(QString::fromUtf8(obs_module_text("VideoEncoderIndex")), videoEncoderIndex);

auto videoEncoderGroup = new QGroupBox(QString::fromUtf8(obs_module_text("VideoEncoder")));
if (videoEncoderIndex->currentIndex() != 0 ||
!config_get_bool(obs_frontend_get_profile_config(), "Stream1", "EnableMultitrackVideo"))
videoPageLayout->setRowVisible(videoEncoderIndex, false);

auto videoEncoderGroup = new QWidget();
videoEncoderGroup->setProperty("altColor", QVariant(true));
auto videoEncoderGroupLayout = new QFormLayout();
videoEncoderGroup->setLayout(videoEncoderGroupLayout);
Expand Down Expand Up @@ -731,7 +735,7 @@ void OBSBasicSettings::AddServer(QFormLayout *outputsLayout, obs_data_t *setting
});
audioPageLayout->addRow(QString::fromUtf8(obs_module_text("AudioEncoderIndex")), audioEncoderIndex);

auto audioEncoderGroup = new QGroupBox(QString::fromUtf8(obs_module_text("AudioEncoder")));
auto audioEncoderGroup = new QWidget();
audioEncoderGroup->setProperty("altColor", QVariant(true));
auto audioEncoderGroupLayout = new QFormLayout();
audioEncoderGroup->setLayout(audioEncoderGroupLayout);
Expand Down

0 comments on commit a175a15

Please sign in to comment.