From c9641063ca4b60befe1155772285c82b48117df3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 7 Jan 2021 09:36:18 -0500 Subject: [PATCH] Don't need to get_ref_image anymore. It will block waiting for a capture packet and the ref image will be set by capture thread --- src/zm_analysis_thread.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/zm_analysis_thread.cpp b/src/zm_analysis_thread.cpp index 7f42ed8c5..675be2986 100644 --- a/src/zm_analysis_thread.cpp +++ b/src/zm_analysis_thread.cpp @@ -7,27 +7,18 @@ AnalysisThread::AnalysisThread(Monitor *p_monitor) { } AnalysisThread::~AnalysisThread() { - Debug(2, "THREAD: deleteing"); + Debug(2, "THREAD: deleteing analysis thread"); } int AnalysisThread::run() { Debug(2, "AnalysisThread::run()"); useconds_t analysis_rate = monitor->GetAnalysisRate(); - Debug(2, "after getanalysisrate rate is %u", analysis_rate); unsigned int analysis_update_delay = monitor->GetAnalysisUpdateDelay(); - Debug(2, "after getanalysisUpdateDelay delay is %u", analysis_update_delay); time_t last_analysis_update_time, cur_time; monitor->UpdateAdaptiveSkip(); - Debug(2, "after UpdateAdaptiveSkip"); last_analysis_update_time = time(0); - if ( monitor->GetFunction() == Monitor::MODECT or monitor->GetFunction() == Monitor::MOCORD ) { - Debug(2, "THREAD: Getting ref image"); - monitor->get_ref_image(); - Debug(2, "THREAD: after Getting ref image"); - } - while ( !(terminate or zm_terminate) ) { // Some periodic updates are required for variable capturing framerate