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