diff --git a/worker/worker.cpp b/worker/worker.cpp index 598ab68..457bdb6 100644 --- a/worker/worker.cpp +++ b/worker/worker.cpp @@ -13,6 +13,7 @@ QMutex Worker::lock; // 1. Convert the image to the right format // 2. Consume the image. void Worker::queue(WorkerContext *context) { + init(); QMutexLocker ml(&lock); _WorkerContext *c = new _WorkerContext; c->image = context->pixmap.toImage();