summaryrefslogtreecommitdiff
path: root/camera
diff options
context:
space:
mode:
authorZhijun He <zhijunhe@google.com>2015-05-30 05:09:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-30 05:09:15 +0000
commitcf9ce7ca6d9b97c3cfd1cfbd5424a810cc271b34 (patch)
treef58e6c9bb109eca132ab2de66b39397e239531bd /camera
parentbffa214d651485a48881fa5d981810bcf6d68b8a (diff)
parent890bce4b75f00853873925c5b241434b1409f86a (diff)
downloadshamu-cf9ce7ca6d9b97c3cfd1cfbd5424a810cc271b34.tar.gz
Merge "Camera3: Check if mPictureChannel is valid." into mnc-dev
Diffstat (limited to 'camera')
-rw-r--r--[-rwxr-xr-x]camera/QCamera2/HAL3/QCamera3HWI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index 261b10ff..30eaad78 100755..100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -1259,7 +1259,9 @@ int QCamera3HardwareInterface::configureStreams(
or will be limited to the max i/p stream size which we can control to
be equal to be the largest YUV/Opaque stream size
*/
- mPictureChannel->overrideYuvSize(zslStream->width, zslStream->height);
+ if (mPictureChannel) {
+ mPictureChannel->overrideYuvSize(zslStream->width, zslStream->height);
+ }
} else if (mPictureChannel && m_bIs4KVideo) {
mPictureChannel->overrideYuvSize(videoWidth, videoHeight);
}