We always need an analysis thread.

This commit is contained in:
Isaac Connor 2021-03-17 23:41:00 -04:00
parent 1b876f24f9
commit f4506a8f35
1 changed files with 4 additions and 6 deletions

View File

@ -3157,13 +3157,11 @@ int Monitor::PrimeCapture() {
if (!decoder_it) decoder_it = packetqueue.get_video_it(false);
if (!decoder) decoder = new DecoderThread(this);
}
if (function != MONITOR) {
if (!analysis_it) analysis_it = packetqueue.get_video_it(false);
if (!analysis_thread) {
Debug(1, "Starting an analysis thread for monitor (%d)", id);
analysis_thread = new AnalysisThread(this);
}
}
} else {
Debug(2, "Failed to prime %d", ret);