UI: Add MP4 to remuxable extensions

This commit is contained in:
derrod
2023-03-10 17:12:36 -05:00
committed by Ryan Foster
parent 4c9ebc753c
commit 05b1be4f27
+3 -4
View File
@@ -205,8 +205,7 @@ void RemuxEntryPathItemDelegate::paint(QPainter *painter,
void RemuxEntryPathItemDelegate::handleBrowse(QWidget *container)
{
QString OutputPattern = "(*.mp4 *.flv *.mov *.mkv *.ts *.m3u8)";
QString InputPattern = "(*.flv *.mov *.mkv *.ts *.m3u8)";
QString ExtensionPattern = "(*.mp4 *.flv *.mov *.mkv *.ts *.m3u8)";
QLineEdit *text = container->findChild<QLineEdit *>();
@@ -218,7 +217,7 @@ void RemuxEntryPathItemDelegate::handleBrowse(QWidget *container)
if (isOutput) {
QString newPath = SaveFile(container,
QTStr("Remux.SelectTarget"),
currentPath, OutputPattern);
currentPath, ExtensionPattern);
if (!newPath.isEmpty()) {
container->setProperty(PATH_LIST_PROP,
@@ -229,7 +228,7 @@ void RemuxEntryPathItemDelegate::handleBrowse(QWidget *container)
QStringList paths = OpenFiles(
container, QTStr("Remux.SelectRecording"), currentPath,
QTStr("Remux.OBSRecording") + QString(" ") +
InputPattern);
ExtensionPattern);
if (!paths.empty()) {
container->setProperty(PATH_LIST_PROP, paths);