mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Remux mp4/mov to mp4/mov with suffix
This commit is contained in:
parent
624a0da302
commit
8e1cae4f02
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user