Skip to content

Commit

Permalink
Fixed frame memory management bug. Added worker thread sleep.
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-dieck committed Nov 29, 2017
1 parent b4d3c51 commit 52e9316
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ void processingThread(void* arg)

writeToQueue(response);
}
usleep(10000);
}
}

Expand Down Expand Up @@ -343,7 +344,7 @@ void streamRecognitionThread(void* arg)

if (response != -1) {
if (framesQueue.empty()) {
framesQueue.push(frame);
framesQueue.push(frame.clone());
}
}

Expand Down

0 comments on commit 52e9316

Please sign in to comment.