Fix for file and curl camera sources (#2545)

This commit is contained in:
rpdrewes 2019-03-05 06:59:36 -08:00 committed by Isaac Connor
parent 7cee8356bd
commit 0bf001be3c
2 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ int cURLCamera::Capture( Image &image ) {
if(!frameComplete) if(!frameComplete)
return -1; return -1;
return 0; return 1;
} }
int cURLCamera::PostCapture() { int cURLCamera::PostCapture() {

View File

@ -84,7 +84,7 @@ int FileCamera::PreCapture() {
} }
int FileCamera::Capture( Image &image ) { int FileCamera::Capture( Image &image ) {
return( image.ReadJpeg( path, colours, subpixelorder )?0:-1 ); return( image.ReadJpeg( path, colours, subpixelorder )?1:-1 );
} }
int FileCamera::PostCapture() { int FileCamera::PostCapture() {