summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Levin <dendy@ti.com>2012-01-27 17:25:24 +0200
committerDaniel Levin <dendy@ti.com>2012-07-25 08:55:40 -0500
commit4c11ef43766946b59e6adc5de92b63ddecf273f6 (patch)
tree98a3e2496c30b4ba1eb8af60ffd68bcd8ceced1c
parent91672e79b5100ba8f56f9e0c0776b63bcbc3c2bd (diff)
downloadhardware_ti_omap4-4c11ef43766946b59e6adc5de92b63ddecf273f6.zip
hardware_ti_omap4-4c11ef43766946b59e6adc5de92b63ddecf273f6.tar.gz
hardware_ti_omap4-4c11ef43766946b59e6adc5de92b63ddecf273f6.tar.bz2
CameraHAL: Minor fix while setting focus callback
In case component is not in executing state method should return without error and without processing the request. Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I9de6bc3bf1b6ffbc048bea5d2fd8373081acd9d5
-rw-r--r--camera/OMXCameraAdapter/OMXFocus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/OMXCameraAdapter/OMXFocus.cpp b/camera/OMXCameraAdapter/OMXFocus.cpp
index 04a4629..e6b9918 100644
--- a/camera/OMXCameraAdapter/OMXFocus.cpp
+++ b/camera/OMXCameraAdapter/OMXFocus.cpp
@@ -357,7 +357,7 @@ status_t OMXCameraAdapter::setFocusCallback(bool enabled)
if ( OMX_StateExecuting != mComponentState )
{
CAMHAL_LOGEA("OMX component not in executing state");
- ret = NO_ERROR;
+ return NO_ERROR;
}
if ( NO_ERROR == ret )