mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-18 22:47:04 -04:00
UI: Fix bug where bitrate limits wouldn't be shown
Bitrate limit warnings wouldn't be correctly shown if service settings are changed but not yet saved before modifying the bitrates/settings. It would use the currently active service settings instead of the changed values.
This commit is contained in:
@@ -480,6 +480,8 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
this, SLOT(SimpleRecordingEncoderChanged()));
|
||||
connect(ui->simpleOutEnforce, SIGNAL(toggled(bool)),
|
||||
this, SLOT(SimpleRecordingEncoderChanged()));
|
||||
connect(ui->listWidget, SIGNAL(currentRowChanged(int)),
|
||||
this, SLOT(SimpleRecordingEncoderChanged()));
|
||||
|
||||
LoadSettings(false);
|
||||
|
||||
@@ -3063,7 +3065,17 @@ void OBSBasicSettings::SimpleRecordingEncoderChanged()
|
||||
QString warning;
|
||||
bool advanced = ui->simpleOutAdvanced->isChecked();
|
||||
bool enforceBitrate = ui->simpleOutEnforce->isChecked() || !advanced;
|
||||
obs_service_t *service = main->GetService();
|
||||
OBSService service;
|
||||
|
||||
if (stream1Changed) {
|
||||
QString streamType = GetComboData(ui->streamType);
|
||||
service = obs_service_create_private(
|
||||
QT_TO_UTF8(streamType), nullptr,
|
||||
streamProperties->GetSettings());
|
||||
obs_service_release(service);
|
||||
} else {
|
||||
service = main->GetService();
|
||||
}
|
||||
|
||||
delete simpleOutRecWarning;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user