diff options
author | Andriy Chepurnyy <x0155536@ti.com> | 2012-10-23 13:46:16 +0300 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-11-26 20:05:28 +0200 |
commit | 413938d209e6c838607b5eb024ad4f1f0f938495 (patch) | |
tree | f12b24b4abcfb6cabea7e24f7582afe9b6ef2d74 /camera | |
parent | c9735fd8d9c3952d80f44b8e7ccf5dcf6cf30814 (diff) | |
download | hardware_ti_omap4-413938d209e6c838607b5eb024ad4f1f0f938495.zip hardware_ti_omap4-413938d209e6c838607b5eb024ad4f1f0f938495.tar.gz hardware_ti_omap4-413938d209e6c838607b5eb024ad4f1f0f938495.tar.bz2 |
CameraHAL : Fix crash if IPP not set by default
Fix crash if IPP not set by default
Change-Id: I329f3bf49fef2db2ec136e7755c27a01bcab373f
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
Diffstat (limited to 'camera')
-rw-r--r-- | camera/CameraHal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp index c37f57b..20914ce 100644 --- a/camera/CameraHal.cpp +++ b/camera/CameraHal.cpp @@ -440,7 +440,8 @@ int CameraHal::setParameters(const android::CameraParameters& params) if ((valstr = params.get(TICameraParameters::KEY_IPP)) != NULL) { if (isParameterValid(valstr,mCameraProperties->get(CameraProperties::SUPPORTED_IPP_MODES))) { - if (strcmp(valstr, mParameters.get(TICameraParameters::KEY_IPP))) { + if ((mParameters.get(TICameraParameters::KEY_IPP) == NULL) || + (strcmp(valstr, mParameters.get(TICameraParameters::KEY_IPP)))) { CAMHAL_LOGDB("IPP mode set %s", params.get(TICameraParameters::KEY_IPP)); mParameters.set(TICameraParameters::KEY_IPP, valstr); restartPreviewRequired = true; |