mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02: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:
parent
c20bf0271c
commit
2f78bb7991
@ -95,9 +95,6 @@ struct FFmpegCodec {
|
||||
const char *long_name;
|
||||
int id;
|
||||
|
||||
bool alias;
|
||||
const char *base_name;
|
||||
|
||||
FFmpegCodecType type;
|
||||
|
||||
FFmpegCodec() = default;
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user