aboutsummaryrefslogtreecommitdiff
path: root/src/aolayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aolayer.cpp')
-rw-r--r--src/aolayer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index badf6351..27ebe48c 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -2,7 +2,6 @@
#include "aoapplication.h"
#include "file_functions.h"
-#include "misc_functions.h"
static QThreadPool *thread_pool;
@@ -336,7 +335,11 @@ void AOLayer::start_playback(QString p_image)
frame = 0;
continuous = false;
}
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
frame_loader = QtConcurrent::run(thread_pool, this, &AOLayer::populate_vectors);
+#else
+ frame_loader = QtConcurrent::run(thread_pool, &AOLayer::populate_vectors, this);
+#endif
last_path = p_image;
while (movie_frames.size() <= frame) // if we haven't loaded the frame we need yet
frameAdded.wait(&mutex); // wait for the frame loader to add another frame, then check again