From 7f530bcc2a9f64ae1e820bb08206bf234a273f9e Mon Sep 17 00:00:00 2001 From: SteveGilvarry Date: Sun, 12 Oct 2014 22:12:54 +1100 Subject: [PATCH] Removed duplicate code and brackets --- src/zm_monitor.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index bc5f2c683..08accf8b1 100755 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1611,23 +1611,19 @@ bool Monitor::Analyse() else if ( state == TAPE ) { //Video Storage: activate only for supported cameras. Event::AddFrame knows whether or not we are recording video and saves frames accordingly - if(config.use_mkv_storage && camera->SupportsNativeVideo()){ + if(config.use_mkv_storage && camera->SupportsNativeVideo()) + { video_store_data->recording = true; } - if ( !(image_count%(frame_skip+1)) ) + if ( !(image_count%(frame_skip+1)) ) + { + if ( config.bulk_frame_interval > 1 ) { - if ( config.bulk_frame_interval > 1 ) - { - event->AddFrame( snap_image, *timestamp, (event->Frames()AddFrame( snap_image, *timestamp ); - } + event->AddFrame( snap_image, *timestamp, (event->Frames()AddFrame( snap_image, *timestamp ); + event->AddFrame( snap_image, *timestamp ); } } }