mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-09-27 10:22:09 +08:00
Fixed frame memory management bug. Added worker thread sleep.
This commit is contained in:
@@ -309,6 +309,7 @@ void processingThread(void* arg)
|
||||
|
||||
writeToQueue(response);
|
||||
}
|
||||
usleep(10000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -343,7 +344,7 @@ void streamRecognitionThread(void* arg)
|
||||
|
||||
if (response != -1) {
|
||||
if (framesQueue.empty()) {
|
||||
framesQueue.push(frame);
|
||||
framesQueue.push(frame.clone());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user