Fixed timestamping bug in sent images.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@879 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
7c8dc1808c
commit
542d3ffb40
|
@ -217,7 +217,7 @@ bool Event::WriteFrameImage( Image *image, struct timeval timestamp, const char
|
||||||
{
|
{
|
||||||
Image ts_image( *image );
|
Image ts_image( *image );
|
||||||
monitor->TimestampImage( &ts_image, timestamp.tv_sec );
|
monitor->TimestampImage( &ts_image, timestamp.tv_sec );
|
||||||
if ( !(bool)config.Item( ZM_OPT_FRAME_SERVER ) || !SendFrameImage( image, alarm_frame) )
|
if ( !(bool)config.Item( ZM_OPT_FRAME_SERVER ) || !SendFrameImage( &ts_image, alarm_frame) )
|
||||||
{
|
{
|
||||||
ts_image.WriteJpeg( event_file );
|
ts_image.WriteJpeg( event_file );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue