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:
parent
88ece1b213
commit
e29865bf3f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user