From 427bc02c182be110ff255affa1fec265d769788c Mon Sep 17 00:00:00 2001 From: Roland Ernst Date: Tue, 22 Nov 2022 22:03:11 +0100 Subject: [PATCH] Additional fix to fileinfo.xml generation in mytharchivehelper. Commit 99a6e07 missed one item to cleanup this buffer by removing '\0' characters. This commit adds - hopefully - the last item to check. Refs #609 --- mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.cpp b/mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.cpp index 2a899b53502..a2e5614b945 100644 --- a/mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.cpp +++ b/mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.cpp @@ -2147,7 +2147,7 @@ static int getFileInfo(const QString& inFile, const QString& outFile, int lenMet #else QStringList param = QString::fromStdString(buf).split(',', Qt::SkipEmptyParts); #endif - QString codec = param[0].remove("Subtitle:", Qt::CaseInsensitive); + QString codec = param[0].remove("Subtitle:", Qt::CaseInsensitive).remove(QChar::Null); QDomElement stream = doc.createElement("subtitle"); stream.setAttribute("streamindex", i);