diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-15 19:20:20 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-15 19:20:20 +0000 |
commit | 04b536cee3be3748506edb346eb18243ebe32f08 (patch) | |
tree | a3ac0d059738d47b7d9ecabc2873690de1e9d869 | |
parent | 67b5be442eb7966f2e4fe249a13af55505ef947a (diff) | |
parent | b17936d3b92eaad51df2eac594800b81d0985afb (diff) | |
download | shamu-nougat-mr1.6-release.tar.gz |
release-request-e0cffa21-0c90-4d13-9f8c-0965a868cb5d-for-git_nyc-mr1-security-f-release-4299435 snap-temp-L00000000103192657android-7.1.1_r56nougat-mr1.6-release
Change-Id: I95d20b280872a748156dfb147d8dcb821388e1bb
-rw-r--r-- | camera/QCamera2/HAL3/QCamera3HWI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp index 1a9079a2..08b57342 100644 --- a/camera/QCamera2/HAL3/QCamera3HWI.cpp +++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp @@ -1288,6 +1288,7 @@ int QCamera3HardwareInterface::configureStreams( newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS; } else { ALOGE("%s: Error, Unknown stream type", __func__); + pthread_mutex_unlock(&mMutex); return -EINVAL; } @@ -2347,6 +2348,7 @@ int QCamera3HardwareInterface::processCaptureRequest( } else if (mFirstRequest || mCurrentRequestId == -1){ ALOGE("%s: Unable to find request id field, \ & no previous id available", __func__); + pthread_mutex_unlock(&mMutex); return NAME_NOT_FOUND; } else { CDBG("%s: Re-using old request id", __func__); |