Skip to content

Commit

Permalink
Update outputsettingsdialog.cpp
Browse files Browse the repository at this point in the history
Change some format names.
  • Loading branch information
rodlie committed Aug 15, 2024
1 parent 4e89d83 commit 55b2e71
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/GUI/RenderWidgets/outputsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "outputsettingsdialog.h"
#include "GUI/mainwindow.h"
#include "GUI/global.h"
#include "appsupport.h"

OutputSettingsDialog::OutputSettingsDialog(const OutputSettings &settings,
QWidget *parent) :
Expand Down Expand Up @@ -428,8 +429,8 @@ void OutputSettingsDialog::updateAvailableOutputFormats() {
// if(supportedCodecs == 0) continue;
//if(currentFormat->query_codec == nullptr) continue;
mOutputFormatsList << currentFormat;
QString formatName = QString(currentFormat->long_name);
mOutputFormatsComboBox->addItem(formatName);
QString formatName = AppSupport::filterFormatsName(QString(currentFormat->long_name));
mOutputFormatsComboBox->addItem(QIcon::fromTheme("file_movie"), formatName);
if(formatName == currentFormatName) {
mOutputFormatsComboBox->setCurrentText(formatName);
}
Expand All @@ -453,8 +454,8 @@ void OutputSettingsDialog::updateAvailableOutputFormats() {
// if(supportedCodecs == 0) continue;
//if(currentFormat->query_codec == nullptr) continue;
mOutputFormatsList << currentFormat;
QString formatName = QString(currentFormat->long_name);
mOutputFormatsComboBox->addItem(formatName);
QString formatName = AppSupport::filterFormatsName(QString(currentFormat->long_name));
mOutputFormatsComboBox->addItem(QIcon::fromTheme("file_movie"), formatName);
if(formatName == currentFormatName) {
mOutputFormatsComboBox->setCurrentText(formatName);
}
Expand Down Expand Up @@ -651,7 +652,7 @@ void OutputSettingsDialog::restoreInitialSettings() {
if(!currentOutputFormat) {
mOutputFormatsComboBox->setCurrentIndex(0);
} else {
QString currentOutputFormatName = QString(currentOutputFormat->long_name);
QString currentOutputFormatName = AppSupport::filterFormatsName(QString(currentOutputFormat->long_name));
mOutputFormatsComboBox->setCurrentText(currentOutputFormatName);
}
const AVCodec *currentVideoCodec = mInitialSettings.fVideoCodec;
Expand Down

0 comments on commit 55b2e71

Please sign in to comment.