Include image_count in debug line

This commit is contained in:
Isaac Connor 2021-04-11 13:22:37 -04:00
parent 7278119468
commit 939a0f40e6
1 changed files with 2 additions and 2 deletions

View File

@ -2569,8 +2569,8 @@ int Monitor::Capture() {
shared_data->last_write_index = index; shared_data->last_write_index = index;
shared_data->last_write_time = packet->timestamp->tv_sec; shared_data->last_write_time = packet->timestamp->tv_sec;
} }
Debug(2, "Have packet stream_index:%d ?= videostream_id:(%d) q.vpktcount(%d) event?(%d) ", Debug(2, "Have packet stream_index:%d ?= videostream_id: %d q.vpktcount %d event? %d image_count %d",
packet->packet.stream_index, video_stream_id, packetqueue.packet_count(video_stream_id), ( event ? 1 : 0 ) ); packet->packet.stream_index, video_stream_id, packetqueue.packet_count(video_stream_id), ( event ? 1 : 0 ), image_count );
if (packet->codec_type == AVMEDIA_TYPE_VIDEO) { if (packet->codec_type == AVMEDIA_TYPE_VIDEO) {
packet->packet.stream_index = video_stream_id; // Convert to packetQueue's index packet->packet.stream_index = video_stream_id; // Convert to packetQueue's index