comparison framework/Align.cpp @ 716:604393795ee5

If no local filename (e.g. when decoded to memory), get the local filename from the file source (e.g. cached version of encoded file)
author Chris Cannam
date Tue, 29 Oct 2019 12:47:44 +0000
parents 162c3f4b870c
children d2e8e9788cd4
comparison
equal deleted inserted replaced
715:ec8f21a20fa7 716:604393795ee5
503 while (!reference->isReady(nullptr) || !other->isReady(nullptr)) { 503 while (!reference->isReady(nullptr) || !other->isReady(nullptr)) {
504 qApp->processEvents(); 504 qApp->processEvents();
505 } 505 }
506 506
507 QString refPath = reference->getLocalFilename(); 507 QString refPath = reference->getLocalFilename();
508 if (refPath == "") {
509 refPath = FileSource(reference->getLocation()).getLocalFilename();
510 }
511
508 QString otherPath = other->getLocalFilename(); 512 QString otherPath = other->getLocalFilename();
513 if (otherPath == "") {
514 otherPath = FileSource(other->getLocation()).getLocalFilename();
515 }
509 516
510 if (refPath == "" || otherPath == "") { 517 if (refPath == "" || otherPath == "") {
511 error = "Failed to find local filepath for wave-file model"; 518 error = "Failed to find local filepath for wave-file model";
512 return false; 519 return false;
513 } 520 }