diff options
-rw-r--r-- | camera/QCamera2/HAL3/QCamera3HWI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp index 14d15a5..4e785f6 100644 --- a/camera/QCamera2/HAL3/QCamera3HWI.cpp +++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp @@ -2111,7 +2111,8 @@ int QCamera3HardwareInterface::configureStreamsPerfLocked( default: LOGE("not a supported format 0x%x", newStream->format); - break; + pthread_mutex_unlock(&mMutex); + return -EINVAL; } } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) { newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS; |