mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-12 18:00:01 +01:00
updated threading code, fixed segmentation fault
This commit is contained in:
@@ -272,9 +272,9 @@ void Playback::run() {
|
||||
continue;
|
||||
}
|
||||
stop = true;
|
||||
ac::release_all_objects();
|
||||
mutex.unlock();
|
||||
emit stopRecording();
|
||||
ac::release_all_objects();
|
||||
return;
|
||||
}
|
||||
cv::Mat temp_frame;
|
||||
@@ -394,7 +394,9 @@ void Playback::run() {
|
||||
emit frameIncrement();
|
||||
}
|
||||
}
|
||||
mutex.lock();
|
||||
ac::release_all_objects();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user