From 0bf001be3c226c7f646a3254bc7e49e34f83322b Mon Sep 17 00:00:00 2001 From: rpdrewes Date: Tue, 5 Mar 2019 06:59:36 -0800 Subject: [PATCH] Fix for file and curl camera sources (#2545) --- src/zm_curl_camera.cpp | 2 +- src/zm_file_camera.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_curl_camera.cpp b/src/zm_curl_camera.cpp index bd9d4fcd6..1f3a6a54b 100644 --- a/src/zm_curl_camera.cpp +++ b/src/zm_curl_camera.cpp @@ -298,7 +298,7 @@ int cURLCamera::Capture( Image &image ) { if(!frameComplete) return -1; - return 0; + return 1; } int cURLCamera::PostCapture() { diff --git a/src/zm_file_camera.cpp b/src/zm_file_camera.cpp index 941e30bda..1bc861b23 100644 --- a/src/zm_file_camera.cpp +++ b/src/zm_file_camera.cpp @@ -84,7 +84,7 @@ int FileCamera::PreCapture() { } int FileCamera::Capture( Image &image ) { - return( image.ReadJpeg( path, colours, subpixelorder )?0:-1 ); + return( image.ReadJpeg( path, colours, subpixelorder )?1:-1 ); } int FileCamera::PostCapture() {