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:
@@ -398,6 +398,7 @@ void Playback::run() {
|
||||
static int frame_count = 0;
|
||||
++frame_count;
|
||||
if(frame_count > frame_num) {
|
||||
mutex.lock();
|
||||
frame_count = 0;
|
||||
switch(cycle_on) {
|
||||
case 0:
|
||||
@@ -425,6 +426,7 @@ void Playback::run() {
|
||||
}
|
||||
if(blend_set == true && cycle_image != 0)
|
||||
blend_image = cycle_image->clone();
|
||||
mutex.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user