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