mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 21:29:59 +01:00
fixed a bug on Linux when exiting while recording
This commit is contained in:
@@ -109,6 +109,10 @@ void Playback::run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(stop == false && recording && writer.isOpened()) {
|
||||||
|
writer.write(frame);
|
||||||
|
}
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
|
||||||
if(frame.channels()==3) {
|
if(frame.channels()==3) {
|
||||||
@@ -118,9 +122,7 @@ void Playback::run() {
|
|||||||
img = QImage((const unsigned char*)(frame.data), frame.cols, frame.rows, QImage::Format_Indexed8);
|
img = QImage((const unsigned char*)(frame.data), frame.cols, frame.rows, QImage::Format_Indexed8);
|
||||||
|
|
||||||
}
|
}
|
||||||
if(recording && writer.isOpened()) {
|
|
||||||
writer.write(frame);
|
|
||||||
}
|
|
||||||
emit procImage(img);
|
emit procImage(img);
|
||||||
this->msleep(delay);
|
this->msleep(delay);
|
||||||
if(isStep == true) {
|
if(isStep == true) {
|
||||||
|
|||||||
BIN
src/plugins/.DS_Store
vendored
BIN
src/plugins/.DS_Store
vendored
Binary file not shown.
BIN
src/plugins/basic/.DS_Store
vendored
BIN
src/plugins/basic/.DS_Store
vendored
Binary file not shown.
BIN
src/plugins/basic/BasicFilter/.DS_Store
vendored
BIN
src/plugins/basic/BasicFilter/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user