UI: Show warning if using multiple separate QSV encoders
Warns users that two separate QSV encoders can't be active at the same
time.
This should be considered a temporary solution to two issues:
1.) Encoders need to be able to report these errors themselves
2.) If the QSV encoder is ever changed to allow more than one encoder at
the same time this should be removed
This commit is contained in:
parent
448ae26e64
commit
350855a2e7
2 changed files with 12 additions and 0 deletions
|
|
@ -479,6 +479,8 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
|||
this, SLOT(SimpleRecordingQualityLosslessWarning(int)));
|
||||
connect(ui->simpleOutStrEncoder, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(SimpleStreamingEncoderChanged()));
|
||||
connect(ui->simpleOutStrEncoder, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(SimpleRecordingEncoderChanged()));
|
||||
connect(ui->simpleOutRecEncoder, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(SimpleRecordingEncoderChanged()));
|
||||
connect(ui->simpleOutputVBitrate, SIGNAL(valueChanged(int)),
|
||||
|
|
@ -3267,12 +3269,21 @@ void OBSBasicSettings::SimpleRecordingEncoderChanged()
|
|||
|
||||
} else if (qual != "Stream") {
|
||||
QString enc = ui->simpleOutRecEncoder->currentData().toString();
|
||||
QString streamEnc =
|
||||
ui->simpleOutStrEncoder->currentData().toString();
|
||||
|
||||
if (enc == SIMPLE_ENCODER_X264 ||
|
||||
enc == SIMPLE_ENCODER_X264_LOWCPU) {
|
||||
if (!warning.isEmpty())
|
||||
warning += "\n\n";
|
||||
warning += SIMPLE_OUTPUT_WARNING("Encoder");
|
||||
}
|
||||
|
||||
if (streamEnc == enc && enc == SIMPLE_ENCODER_QSV) {
|
||||
if (!warning.isEmpty())
|
||||
warning += "\n\n";
|
||||
warning += SIMPLE_OUTPUT_WARNING("MultipleQSV");
|
||||
}
|
||||
}
|
||||
|
||||
if (warning.isEmpty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue