We always need an analysis thread.
This commit is contained in:
parent
1b876f24f9
commit
f4506a8f35
|
@ -3157,13 +3157,11 @@ 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 {
|
||||||
Debug(2, "Failed to prime %d", ret);
|
Debug(2, "Failed to prime %d", ret);
|
||||||
|
|
Loading…
Reference in New Issue