Fix render crash on Windows (reported as libxml2)

This commit is contained in:
Jean-Baptiste Mardelle
2025-11-28 17:51:12 +01:00
parent 3f71bb1fcf
commit 8d2c215a7d

View File

@@ -48,9 +48,9 @@ RenderJob::RenderJob(const QString &render, const QString &scenelist, const QStr
// Disable VDPAU so that rendering will work even if there is a Kdenlive instance using VDPAU
qputenv("MLT_NO_VDPAU", "1");
if (debugMode) {
m_args = {QStringLiteral("-loglevel"), QStringLiteral("debug"), QStringLiteral("-progress2"), scenelist};
m_args = {QStringLiteral("-loglevel"), QStringLiteral("debug"), QStringLiteral("-progress2"), QUrl::toPercentEncoding(scenelist)};
} else {
m_args = {QStringLiteral("-loglevel"), QStringLiteral("error"), QStringLiteral("-progress2"), scenelist};
m_args = {QStringLiteral("-loglevel"), QStringLiteral("error"), QStringLiteral("-progress2"), QUrl::toPercentEncoding(scenelist)};
}
// Create a log of every render process.