1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

protect Camera::getLastVPXImage()

This commit is contained in:
krepa098 2014-10-08 16:57:30 +02:00
parent 88ece1b213
commit e29865bf3f

View File

@ -78,6 +78,7 @@ cv::Mat Camera::getLastFrame()
vpx_image Camera::getLastVPXImage()
{
mutex.lock();
cv::Mat3b frame = getLastFrame();
vpx_image img;
int w = frame.size().width, h = frame.size().height;
@ -121,6 +122,7 @@ vpx_image Camera::getLastVPXImage()
}
}
}
mutex.unlock();
return img;
}