Fix for file and curl camera sources (#2545)
This commit is contained in:
parent
7cee8356bd
commit
0bf001be3c
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue