From 4bd490d121cc8f510cbbfb3eec9548b3ce8910f4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 8 Apr 2021 11:37:27 -0400 Subject: [PATCH] Set signal=true if capture succeeds. --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index ff221055c..385098e15 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2559,11 +2559,11 @@ int Monitor::Capture() { // Don't want to do analysis on it, but we won't due to signal return -1; } else if ( captureResult > 0 ) { + shared_data->signal = true; // Assume if getting packets that we are getting something useful. CheckSignalPoints can correct this later. // If we captured, let's assume signal, Decode will detect further if (!decoding_enabled) { shared_data->last_write_index = index; shared_data->last_write_time = packet->timestamp->tv_sec; - shared_data->signal = true; } Debug(2, "Have packet stream_index:%d ?= videostream_id:(%d) q.vpktcount(%d) event?(%d) ", packet->packet.stream_index, video_stream_id, packetqueue.packet_count(video_stream_id), ( event ? 1 : 0 ) );