mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-31 01:22:08 -05:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user