From f08734d18e0a86e3e8246babf48b1c14fd22f673 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 11 Apr 2020 17:36:16 +1000 Subject: [PATCH] index/confirm tasks: these tasks no longer need to open the decoder to perform said tasks --- app/task/conform/conform.cpp | 2 -- app/task/index/index.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/app/task/conform/conform.cpp b/app/task/conform/conform.cpp index 6be547d10..2350f5f19 100644 --- a/app/task/conform/conform.cpp +++ b/app/task/conform/conform.cpp @@ -42,9 +42,7 @@ void ConformTask::Action() connect(decoder.get(), &Decoder::IndexProgress, this, &ConformTask::ProgressChanged); - decoder->Open(); decoder->Conform(params_, &IsCancelled()); - decoder->Close(); emit Succeeded(); } diff --git a/app/task/index/index.cpp b/app/task/index/index.cpp index 248901a73..0fb6393b7 100644 --- a/app/task/index/index.cpp +++ b/app/task/index/index.cpp @@ -42,9 +42,7 @@ void IndexTask::Action() connect(decoder.get(), &Decoder::IndexProgress, this, &IndexTask::ProgressChanged); - decoder->Open(); decoder->Index(&IsCancelled()); - decoder->Close(); emit Succeeded(); }