mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 16:58:31 -04:00
Revert content_length to be int
This commit is contained in:
1 parent
550040474f
commit
4e1d23669f
1 file changed
+3
-3
@@ -1086,13 +1086,13 @@ int RemoteCameraHttp::PreCapture()
|
||||
|
||||
int RemoteCameraHttp::Capture( Image &image )
|
||||
{
|
||||
unsigned int content_length = GetResponse();
|
||||
int content_length = GetResponse();
|
||||
if ( content_length == 0 )
|
||||
{
|
||||
Warning( "Unable to capture image, retrying" );
|
||||
return( 1 );
|
||||
}
|
||||
if ( (int)content_length < 0 )
|
||||
if ( content_length < 0 )
|
||||
{
|
||||
Error( "Unable to get response" );
|
||||
Disconnect();
|
||||
@@ -1112,7 +1112,7 @@ int RemoteCameraHttp::Capture( Image &image )
|
||||
}
|
||||
case X_RGB :
|
||||
{
|
||||
if ( content_length != image.Size() )
|
||||
if ( (unsigned int)content_length != image.Size() )
|
||||
{
|
||||
Error( "Image length mismatch, expected %d bytes, content length was %d", image.Size(), content_length );
|
||||
Disconnect();
|
||||
|
||||
Reference in new issue
Block a user