From aca477e73790be120cac81021bba487340b9655e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 28 Sep 2021 10:30:51 -0400 Subject: [PATCH] Add warning when MaxImageBufferCount is less than keyframe interval --- src/zm_packetqueue.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_packetqueue.cpp b/src/zm_packetqueue.cpp index cef7e8e2f..ad9bb3ef1 100644 --- a/src/zm_packetqueue.cpp +++ b/src/zm_packetqueue.cpp @@ -195,6 +195,7 @@ void PacketQueue::clearPackets(const std::shared_ptr &add_packet) { add_packet->packet.stream_index, video_stream_id, add_packet->keyframe, keep_keyframes, packet_counts[video_stream_id], pre_event_video_packet_count, ( *(pktQueue.begin()) != add_packet ) ); + Warning("Keyframe interval may be larger than MaxImageBufferCount and PreEventCount. Please increase MaxImageBufferCount"); return; } std::unique_lock lck(mutex);