If decoding disabled, set signal and last_write_time in the Capture thread. So that zm_watch knows we are alive

pull/3195/head
Isaac Connor 2021-03-17 10:11:06 -04:00
parent 6a2e237902
commit 657a5edda4
1 changed files with 5 additions and 1 deletions

View File

@ -2567,7 +2567,11 @@ int Monitor::Capture() {
return -1;
} else if ( captureResult > 0 ) {
// If we captured, let's assume signal, ::Decode will detect further
shared_data->signal = true;
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 ) );