Commit ce465115 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix luma incorrectly flagged as missing on Windows

BUG: 461849
FIXED-IN: 22.12.0
parent 28f51df5
Pipeline #271952 passed with stage
in 10 minutes and 47 seconds
......@@ -174,7 +174,7 @@ bool DocumentChecker::hasErrorInClips()
filePath.prepend(root);
}
if (!QFile::exists(filePath)) {
QString lumaName = filePath.section(QLatin1Char('/'), -1);
QString lumaName = QFileInfo(filePath).fileName();
// MLT 7 now generates lumas on the fly for files named luma01.pgm to luma22.pgm, so don't detect these as missing
if (lumaName.length() == 10 && lumaName.startsWith(QLatin1String("luma")) && lumaName.endsWith(QLatin1String(".pgm"))) {
bool ok;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment