mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-18 13:57:48 -04:00
Fix never allowing the queue to fill when pre_event_count=0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user