mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 03:39:59 +01:00
added lock
This commit is contained in:
@@ -476,9 +476,11 @@ void Playback::run() {
|
||||
cv::imwrite(stream.str(), frame);
|
||||
}
|
||||
|
||||
mutex.lock();
|
||||
if(recording && writer.isOpened()) {
|
||||
writer.write(frame);
|
||||
}
|
||||
mutex.unlock();
|
||||
if(video_shown == true) {
|
||||
if(frame.channels()==3) {
|
||||
cv::cvtColor(frame, rgb_frame, cv::COLOR_BGR2RGB);
|
||||
|
||||
Reference in New Issue
Block a user