Ask Your Question

Revision history [back]

I was releasing the frame before finishing to process the image, as i'm using a thread to process the image i was doing this:

this->visor->setImage(frame); //image processing
frame.release();

But now, just to solve quickly, I decided to sleep before releasing:

this->visor->setImage(frame);
QThread::msleep(50);//give sometime to process the image
frame.release();

Sure a mutex or some other multithreading mechanism for synchronization would be better than just waiting but this is not a serious work. Regards, AM.