diff --git a/src/daemon.cpp b/src/daemon.cpp index 26a8c2d..09aaa16 100644 --- a/src/daemon.cpp +++ b/src/daemon.cpp @@ -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()); } }