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,12 +3157,10 @@ int Monitor::PrimeCapture() {
if (!decoder_it) decoder_it = packetqueue.get_video_it(false); if (!decoder_it) decoder_it = packetqueue.get_video_it(false);
if (!decoder) decoder = new DecoderThread(this); if (!decoder) decoder = new DecoderThread(this);
} }
if (function != MONITOR) { if (!analysis_it) analysis_it = packetqueue.get_video_it(false);
if (!analysis_it) analysis_it = packetqueue.get_video_it(false); if (!analysis_thread) {
if (!analysis_thread) { Debug(1, "Starting an analysis thread for monitor (%d)", id);
Debug(1, "Starting an analysis thread for monitor (%d)", id); analysis_thread = new AnalysisThread(this);
analysis_thread = new AnalysisThread(this);
}
} }
} else { } else {