Removed duplicate code and brackets

This commit is contained in:
SteveGilvarry 2014-10-12 22:12:54 +11:00
parent 4245928b35
commit 7f530bcc2a
1 changed files with 7 additions and 11 deletions

View File

@ -1611,7 +1611,8 @@ 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)) )
@ -1625,11 +1626,6 @@ bool Monitor::Analyse()
event->AddFrame( snap_image, *timestamp );
}
}
else
{
event->AddFrame( snap_image, *timestamp );
}
}
}
}
}