diff options
Diffstat (limited to 'camera/OMXCameraAdapter/OMX3A.cpp')
-rw-r--r-- | camera/OMXCameraAdapter/OMX3A.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMX3A.cpp b/camera/OMXCameraAdapter/OMX3A.cpp index 213bfcd..f336de2 100644 --- a/camera/OMXCameraAdapter/OMX3A.cpp +++ b/camera/OMXCameraAdapter/OMX3A.cpp @@ -273,6 +273,8 @@ status_t OMXCameraAdapter::setParameters3A(const CameraParameters ¶ms, size_t MAX_METERING_AREAS; MAX_METERING_AREAS = atoi(params.get(CameraParameters::KEY_MAX_NUM_METERING_AREAS)); + Mutex::Autolock lock(mMeteringAreasLock); + mMeteringAreas.clear(); ret = CameraArea::parseAreas(str, ( strlen(str) + 1 ), mMeteringAreas); @@ -1194,6 +1196,8 @@ status_t OMXCameraAdapter::setMeteringAreas(Gen3A_settings& Gen3A) LOG_FUNCTION_NAME + Mutex::Autolock lock(mMeteringAreasLock); + if ( OMX_StateInvalid == mComponentState ) { CAMHAL_LOGEA("OMX component is in invalid state"); |