mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 04:10:01 +01:00
properly releases video file on controls_Stop()
This commit is contained in:
@@ -141,6 +141,11 @@ void Playback::Stop() {
|
||||
|
||||
void Playback::Release() {
|
||||
|
||||
mutex.lock();
|
||||
stop = true;
|
||||
if(capture.isOpened()) capture.release();
|
||||
if(writer.isOpened()) writer.release();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void Playback::msleep(int ms) {
|
||||
|
||||
Reference in New Issue
Block a user