summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camera/OMXCameraAdapter/OMXFocus.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMXFocus.cpp b/camera/OMXCameraAdapter/OMXFocus.cpp
index 5703610..50e2c21 100644
--- a/camera/OMXCameraAdapter/OMXFocus.cpp
+++ b/camera/OMXCameraAdapter/OMXFocus.cpp
@@ -108,6 +108,8 @@ status_t OMXCameraAdapter::doAutoFocus()
return NO_ERROR;
}
+ OMX_INIT_STRUCT_PTR (&focusStatus, OMX_PARAM_FOCUSSTATUSTYPE);
+
// If the app calls autoFocus, the camera will stop sending face callbacks.
pauseFaceDetection(true);