From 04795f957fd6fb949cdbdff0a4ae0307754394f5 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 9 Aug 2023 23:26:34 +0200 Subject: [PATCH] Fix setting writing app name after allowing to preserve it --- matroska/matroskacontainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matroska/matroskacontainer.cpp b/matroska/matroskacontainer.cpp index c2c209a..c9189a9 100644 --- a/matroska/matroskacontainer.cpp +++ b/matroska/matroskacontainer.cpp @@ -1648,8 +1648,7 @@ void MatroskaContainer::internalMakeFile(Diagnostics &diag, AbortableProgressFee } // -> write "MuxingApp"- and "WritingApp"-element EbmlElement::makeSimpleElement(outputStream, MatroskaIds::MuxingApp, muxingAppName); - EbmlElement::makeSimpleElement(outputStream, MatroskaIds::WrittingApp, - fileInfo().writingApplication().empty() ? muxingAppName : fileInfo().writingApplication()); + EbmlElement::makeSimpleElement(outputStream, MatroskaIds::WrittingApp, writingAppName); } // write "Tracks"-element