mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-04 22:14:07 -04:00
If decoding disabled, set signal and last_write_time in the Capture thread. So that zm_watch knows we are alive
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user