From f61210c91f41ef09f4ac811addb02f0d98f9daad Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 30 Dec 2020 21:23:29 -0500 Subject: [PATCH] remove old code using image_buffer in zm_packets --- src/zm_monitor.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 2a5d7f84f..4b17f5a20 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2441,16 +2441,11 @@ int Monitor::Capture() { unsigned int index = image_count % image_buffer_count; ZMPacket *packet = new ZMPacket(); - //&image_buffer[index]; packet->timestamp = new struct timeval; - gettimeofday(packet->timestamp, NULL); - //image_buffer[index].timestamp; - //packet->image_index = image_count; + gettimeofday(packet->timestamp, nullptr); - //&image_buffer[index]; // Still need to lock it. When we add it to queue other threads can pounce on it packet->lock(); - //packet->reset(); Image* capture_image = image_buffer[index].image; //Debug(1, "capture image: %d x %d linesize: %d", capture_image->Width(), capture_image->Height(), capture_image->LineSize()); int captureResult = 0;