ffmpeg: ensure duration detection responds to cancel action
This commit is contained in:
@@ -106,10 +106,15 @@ void ProjectImportTask::Import(Folder *folder, QFileInfoList import, int &counte
|
||||
|
||||
} else {
|
||||
|
||||
Footage* footage = new Footage(file_info.absoluteFilePath());
|
||||
Footage* footage = new Footage();
|
||||
|
||||
footage->SetCancelPointer(this->GetCancelAtom());
|
||||
|
||||
footage->set_filename(file_info.absoluteFilePath());
|
||||
footage->SetLabel(file_info.fileName());
|
||||
|
||||
footage->SetCancelPointer(nullptr);
|
||||
|
||||
if (footage->IsValid()) {
|
||||
// See if this footage is an image sequence
|
||||
ValidateImageSequence(footage, import, i);
|
||||
|
||||
Reference in New Issue
Block a user