Use QtConcurrent::run directly
This commit is contained in:
parent
2f442dfbe1
commit
24286dbe9d
|
@ -33,6 +33,7 @@
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
#include <QtConcurrent>
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
@ -45,7 +46,6 @@
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
#include "core/concurrentrun.h"
|
|
||||||
#include "core/logging.h"
|
#include "core/logging.h"
|
||||||
#include "core/signalchecker.h"
|
#include "core/signalchecker.h"
|
||||||
#include "core/timeconstants.h"
|
#include "core/timeconstants.h"
|
||||||
|
@ -1077,7 +1077,7 @@ GstState GstEnginePipeline::state() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
QFuture<GstStateChangeReturn> GstEnginePipeline::SetState(const GstState state) {
|
QFuture<GstStateChangeReturn> GstEnginePipeline::SetState(const GstState state) {
|
||||||
return ConcurrentRun::Run<GstStateChangeReturn, GstElement*, GstState>(&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) {
|
bool GstEnginePipeline::Seek(const qint64 nanosec) {
|
||||||
|
|
Loading…
Reference in New Issue