mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-22 05:08:37 -05:00
UI: Replace FFmpeg encoder alias with long name
The alias is not really helpful and sometimes confusing, e.g. for HEVC (without libx265) it ends up being "hevc_nvenc (hevc_amf)" since it just contains the name of the default encoder. So instead of using the name of the default encoder, show the full name of the encoder instead.
This commit is contained in:
@@ -1136,9 +1136,11 @@ void OBSBasicSettings::LoadFormats()
|
||||
|
||||
static void AddCodec(QComboBox *combo, const FFmpegCodec &codec)
|
||||
{
|
||||
QString itemText(codec.name);
|
||||
if (codec.alias)
|
||||
itemText += QString(" (%1)").arg(codec.base_name);
|
||||
QString itemText;
|
||||
if (codec.long_name)
|
||||
itemText = QString("%1 - %2").arg(codec.name, codec.long_name);
|
||||
else
|
||||
itemText = codec.name;
|
||||
|
||||
combo->addItem(itemText, QVariant::fromValue(codec));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user