From 24286dbe9dc869a2456cdd80138738e10a15972d Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 14 Oct 2020 22:49:37 +0200 Subject: [PATCH] Use QtConcurrent::run directly --- src/engine/gstenginepipeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gstenginepipeline.cpp b/src/engine/gstenginepipeline.cpp index cd908d275..60e6890da 100644 --- a/src/engine/gstenginepipeline.cpp +++ b/src/engine/gstenginepipeline.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -45,7 +46,6 @@ #include #include -#include "core/concurrentrun.h" #include "core/logging.h" #include "core/signalchecker.h" #include "core/timeconstants.h" @@ -1077,7 +1077,7 @@ GstState GstEnginePipeline::state() const { } QFuture GstEnginePipeline::SetState(const GstState state) { - return ConcurrentRun::Run(&set_state_threadpool_, &gst_element_set_state, pipeline_, state); + return QtConcurrent::run(&set_state_threadpool_, &gst_element_set_state, pipeline_, state); } bool GstEnginePipeline::Seek(const qint64 nanosec) {