Try and fix the worker.
This commit is contained in:
parent
0d58d67a3c
commit
55669aabe4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user