Try and fix the worker.

This commit is contained in:
ArsenArsen 2017-07-15 13:28:04 +02:00
parent 0d58d67a3c
commit 55669aabe4

View File

@ -13,6 +13,7 @@ QMutex Worker::lock;
// 1. Convert the image to the right format // 1. Convert the image to the right format
// 2. Consume the image. // 2. Consume the image.
void Worker::queue(WorkerContext *context) { void Worker::queue(WorkerContext *context) {
init();
QMutexLocker ml(&lock); QMutexLocker ml(&lock);
_WorkerContext *c = new _WorkerContext; _WorkerContext *c = new _WorkerContext;
c->image = context->pixmap.toImage(); c->image = context->pixmap.toImage();