Fix never allowing the queue to fill when pre_event_count=0

This commit is contained in:
Isaac Connor committed 2021-02-01 16:01:30 -05:00
1 parent a5417cfe6c
commit b71aa4bd97
1 file changed
+2
+2
View File
@@ -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;