ffmpeg: ensure duration detection responds to cancel action

This commit is contained in:
itsmattkc
2022-11-19 17:36:16 -08:00
parent 42a7cc10c8
commit 5bcb426488
3 changed files with 15 additions and 5 deletions
+6 -1
View File
@@ -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);