From b71aa4bd9737254ec6d0fc7294c1eac901af3017 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 1 Feb 2021 16:01:30 -0500 Subject: [PATCH] Fix never allowing the queue to fill when pre_event_count=0 --- src/zm_packetqueue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_packetqueue.cpp b/src/zm_packetqueue.cpp index ed9006c7c..bb3c0697a 100644 --- a/src/zm_packetqueue.cpp +++ b/src/zm_packetqueue.cpp @@ -104,6 +104,8 @@ bool PacketQueue::queuePacket(ZMPacket* add_packet) { add_packet->keyframe and (packet_counts[video_stream_id] > max_video_packet_count) + and + *(pktQueue.begin()) != add_packet ) { packetqueue_iterator it = pktQueue.begin(); int video_stream_packets = 0;