mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-18 04:39:59 +01:00
if no filter selected run at correct speed
This commit is contained in:
@@ -49,6 +49,9 @@ void Playback::setDisplayed(bool shown) {
|
||||
}
|
||||
|
||||
void Playback::run() {
|
||||
|
||||
int duration = 1000/ac::fps;
|
||||
|
||||
while(!stop) {
|
||||
mutex.lock();
|
||||
if(!capture.read(frame)) {
|
||||
@@ -78,6 +81,8 @@ void Playback::run() {
|
||||
draw_plugin(frame, cur[i].second);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
msleep(duration);
|
||||
}
|
||||
mutex.lock();
|
||||
if(recording && writer.isOpened()) {
|
||||
|
||||
Reference in New Issue
Block a user