summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gernoth <michael@gernoth.net>2014-09-08 23:21:56 +0200
committerHashcode <hashcode0f@gmail.com>2015-02-03 14:06:52 -0800
commit760a2b928f0c208cb2db5044936b038bd52701ac (patch)
tree68af5a9cacffd2fa135a893906663d08329c67b1
parentd156f5ef207020b91909b0744633dca303a7d103 (diff)
downloadhardware_ti_omap4-760a2b928f0c208cb2db5044936b038bd52701ac.zip
hardware_ti_omap4-760a2b928f0c208cb2db5044936b038bd52701ac.tar.gz
hardware_ti_omap4-760a2b928f0c208cb2db5044936b038bd52701ac.tar.bz2
camera: don't drop focus-callback in VIDEO_AF_STATE
Change-Id: If580892f35bdfb4ae7071d34b6194fff3773f30a
-rw-r--r--camera/OMXCameraAdapter/OMXFocus.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMXFocus.cpp b/camera/OMXCameraAdapter/OMXFocus.cpp
index 17b74a7..d478035 100644
--- a/camera/OMXCameraAdapter/OMXFocus.cpp
+++ b/camera/OMXCameraAdapter/OMXFocus.cpp
@@ -835,6 +835,7 @@ void OMXCameraAdapter::handleFocusCallback() {
// Dropping AF callback if it triggered in non AF state
if ((currentState != AF_STATE) && (currentState != AF_ZOOM_STATE) &&
+ (currentState != VIDEO_AF_STATE) && (nextState != VIDEO_AF_STATE) &&
(nextState != AF_STATE) && (nextState != AF_ZOOM_STATE)) {
return;
}