Remove error message if terminated and can't send.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2916 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-06-09 14:15:02 +00:00
parent 54d4cbc4f0
commit 174c82a452
1 changed files with 4 additions and 2 deletions

View File

@ -3229,7 +3229,8 @@ bool MonitorStream::sendFrame( const char *filepath, struct timeval *timestamp )
fprintf( stdout, "Content-Type: image/jpeg\r\n\r\n" );
if ( fwrite( img_buffer, img_buffer_size, 1, stdout ) != 1 )
{
Error( "Unable to send stream frame: %s", strerror(errno) );
if ( !zm_terminate )
Error( "Unable to send stream frame: %s", strerror(errno) );
return( false );
}
fprintf( stdout, "\r\n\r\n" );
@ -3314,7 +3315,8 @@ bool MonitorStream::sendFrame( Image *image, struct timeval *timestamp )
fprintf( stdout, "Content-Length: %d\r\n\r\n", img_buffer_size );
if ( fwrite( img_buffer, img_buffer_size, 1, stdout ) != 1 )
{
Error( "Unable to send stream frame: %s", strerror(errno) );
if ( !zm_terminate )
Error( "Unable to send stream frame: %s", strerror(errno) );
return( false );
}
fprintf( stdout, "\r\n\r\n" );