提交 a090ed57 编写于 作者: K kc5nra

UI: Block signals while populating formats

Avoid unnecessarily triggering signals while populating
the ffmpeg formats combo box.
上级 091a002c
......@@ -416,6 +416,8 @@ void OBSBasicSettings::LoadColorRanges()
void OBSBasicSettings::LoadFormats()
{
ui->advOutFFFormat->blockSignals(true);
formats.reset(ff_format_supported());
const ff_format_desc *format = formats.get();
......@@ -441,6 +443,8 @@ void OBSBasicSettings::LoadFormats()
ui->advOutFFFormat->model()->sort(0);
ui->advOutFFFormat->insertItem(0, AV_FORMAT_DEFAULT_STR);
ui->advOutFFFormat->blockSignals(false);
}
static void AddCodec(QComboBox *combo, const ff_codec_desc *codec_desc)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册