mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-04 14:04:17 -04:00
Merge pull request #3154 from Carbenium/no-queue
Monitor: Don't push packets into the packet queue when in Monitor mode
This commit is contained in:
@@ -2613,7 +2613,8 @@ int Monitor::Capture() {
|
||||
shared_data->last_write_time = packet->timestamp->tv_sec;
|
||||
image_count++;
|
||||
|
||||
if ( packetqueue.packet_count(video_stream_id) or packet->keyframe or event ) {
|
||||
if (GetFunction() != Function::MONITOR
|
||||
and (packetqueue.packet_count(video_stream_id) or packet->keyframe or event)) {
|
||||
Debug(2, "Have video packet for image index (%d), adding to queue", index);
|
||||
packetqueue.queuePacket(packet);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user