aboutsummaryrefslogtreecommitdiff
path: root/camera/QCamera2/HAL3/QCamera3HWI.cpp
diff options
context:
space:
mode:
authorCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-03-06 20:53:55 +0100
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-03-06 20:53:55 +0100
commit4a0b9fdf1f28c2ea587412375b20850ffba5189a (patch)
treee304e88c7088c3e983e7bd5fdb4bb61baa0a3f6a /camera/QCamera2/HAL3/QCamera3HWI.cpp
parent95ab79ae2c595e4c47c21e9b4dffa762ae048b20 (diff)
parent7d10229e40e095bf46bebea08c5cbb0c1f887928 (diff)
Merge branch 'staging/treble' into lineage-15.1
Diffstat (limited to 'camera/QCamera2/HAL3/QCamera3HWI.cpp')
-rw-r--r--camera/QCamera2/HAL3/QCamera3HWI.cpp3
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;