summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorAkwasi Boateng <akwasi.boateng@ti.com>2011-10-13 16:34:50 +0300
committerIliyan Malchev <malchev@google.com>2011-12-01 10:40:03 -0800
commit82640237cf0ca200932a66777fd1907d66cd0322 (patch)
tree4610144078037380c9ea21f76871d533624c048b /camera
parent130ed815e4cea7c2906a1e1f0d665c2f94b690f5 (diff)
downloadhardware_ti_omap4xxx-82640237cf0ca200932a66777fd1907d66cd0322.zip
hardware_ti_omap4xxx-82640237cf0ca200932a66777fd1907d66cd0322.tar.gz
hardware_ti_omap4xxx-82640237cf0ca200932a66777fd1907d66cd0322.tar.bz2
CameraHAL: Small fix in FD error handling
- 'detectFaces()' should return immediately if there is a mismatch in the 'platformPrivate' size. Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com> Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com> Change-Id: Ib4237acdec7fa08dd4b06529e358003783dccf0a
Diffstat (limited to 'camera')
-rw-r--r--camera/OMXCameraAdapter/OMXFD.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/OMXCameraAdapter/OMXFD.cpp b/camera/OMXCameraAdapter/OMXFD.cpp
index 938ccf6..dbebe79 100644
--- a/camera/OMXCameraAdapter/OMXFD.cpp
+++ b/camera/OMXCameraAdapter/OMXFD.cpp
@@ -231,7 +231,7 @@ status_t OMXCameraAdapter::detectFaces(OMX_BUFFERHEADERTYPE* pBuffHeader,
CAMHAL_LOGEB("OMX_TI_PLATFORMPRIVATE size mismatch: expected = %d, received = %d",
( unsigned int ) sizeof(OMX_TI_PLATFORMPRIVATE),
( unsigned int ) platformPrivate->nSize);
- ret = -EINVAL;
+ return -EINVAL;
}
} else {
CAMHAL_LOGEA("Invalid OMX_TI_PLATFORMPRIVATE");