Fix never allowing the queue to fill when pre_event_count=0

This commit is contained in:
Isaac Connor
2021-02-01 16:01:30 -05:00
parent a5417cfe6c
commit b71aa4bd97

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;