mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-04 23:12:48 +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);
|
writeToQueue(response);
|
||||||
}
|
}
|
||||||
|
usleep(10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,7 +344,7 @@ void streamRecognitionThread(void* arg)
|
|||||||
|
|
||||||
if (response != -1) {
|
if (response != -1) {
|
||||||
if (framesQueue.empty()) {
|
if (framesQueue.empty()) {
|
||||||
framesQueue.push(frame);
|
framesQueue.push(frame.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user