From 8e1cae4f02fe60472e52da46a1b94fa3b6a8b42a Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 29 Mar 2023 07:26:42 +0200 Subject: [PATCH] UI: Remux mp4/mov to mp4/mov with suffix --- UI/window-remux.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/UI/window-remux.cpp b/UI/window-remux.cpp index 28999c948..003369882 100644 --- a/UI/window-remux.cpp +++ b/UI/window-remux.cpp @@ -474,10 +474,18 @@ void RemuxQueueModel::checkInputPath(int row) else entry.state = RemuxEntryState::InvalidPath; + QString newExt = ".mp4"; + QString suffix = fileInfo.suffix(); + + if (suffix.contains("mov", Qt::CaseInsensitive) || + suffix.contains("mp4", Qt::CaseInsensitive)) { + newExt = ".remuxed." + suffix; + } + if (entry.state == RemuxEntryState::Ready) entry.targetPath = QDir::toNativeSeparators( fileInfo.path() + QDir::separator() + - fileInfo.completeBaseName() + ".mp4"); + fileInfo.completeBaseName() + newExt); } if (entry.state == RemuxEntryState::Ready && isProcessing)