Clones annotated images before writing.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@862 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
2452b48239
commit
317873afcc
|
@ -206,13 +206,21 @@ bool Event::SendFrameImage( const Image *image, bool alarm_frame )
|
||||||
|
|
||||||
bool Event::WriteFrameImage( Image *image, struct timeval timestamp, const char *event_file, bool alarm_frame )
|
bool Event::WriteFrameImage( Image *image, struct timeval timestamp, const char *event_file, bool alarm_frame )
|
||||||
{
|
{
|
||||||
if ( !timestamp_on_capture )
|
if ( timestamp_on_capture )
|
||||||
{
|
{
|
||||||
monitor->TimestampImage( image, timestamp.tv_sec );
|
if ( !(bool)config.Item( ZM_OPT_FRAME_SERVER ) || !SendFrameImage( image, alarm_frame) )
|
||||||
|
{
|
||||||
|
image->WriteJpeg( event_file );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( !(bool)config.Item( ZM_OPT_FRAME_SERVER ) || !SendFrameImage( image, alarm_frame) )
|
else
|
||||||
{
|
{
|
||||||
image->WriteJpeg( event_file );
|
Image ts_image( *image );
|
||||||
|
monitor->TimestampImage( &ts_image, timestamp.tv_sec );
|
||||||
|
if ( !(bool)config.Item( ZM_OPT_FRAME_SERVER ) || !SendFrameImage( image, alarm_frame) )
|
||||||
|
{
|
||||||
|
ts_image.WriteJpeg( event_file );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return( true );
|
return( true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue