diff options
author | Binhao Lin <binhaol@codeaurora.org> | 2017-04-03 14:09:33 -0700 |
---|---|---|
committer | Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> | 2018-02-25 16:27:05 +0100 |
commit | 09c713ce51870146bd67824de1111e96c1198541 (patch) | |
tree | 9f473416e77a99208e71530d0f23132bf95c606f /camera/QCamera2 | |
parent | 9c51d07b50544dff993f498fdc2addd26267d94b (diff) |
msm8996-common: camera: HAL3: Return Error For Unsupported Stream Format
Return error code -EINVAL instead of 0 when the stream format is unsupported
Change-Id: If6aee12c68054243a90d655bbaf0e95c36887682
Diffstat (limited to 'camera/QCamera2')
-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; |