summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorEmilian Peev <epeev@mm-sol.com>2012-11-07 12:32:32 +0200
committerDaniel Levin <dendy@ti.com>2012-11-26 20:09:18 +0200
commitb1761a91e627e87c219b06f8852dbb7c37dc653a (patch)
tree46fb56d0141fbce381881e6010b110f41a7ce01f /camera
parent0069285d06d1bed96e407c97e7629800c3c53a14 (diff)
downloadhardware_ti_omap4-b1761a91e627e87c219b06f8852dbb7c37dc653a.zip
hardware_ti_omap4-b1761a91e627e87c219b06f8852dbb7c37dc653a.tar.gz
hardware_ti_omap4-b1761a91e627e87c219b06f8852dbb7c37dc653a.tar.bz2
CameraHal: Fix capture mode reset during preview restart
- The capture mode could be reset to the default "HQ" if the preview is restarted by new client camera parameters ( for instance when preview resolution changes). Change-Id: Ic7e361ba0b7b1347fd3cbf08eca27f3928a2ba85 Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Diffstat (limited to 'camera')
-rw-r--r--camera/CameraHal.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp
index 7754d51..a1d239c 100644
--- a/camera/CameraHal.cpp
+++ b/camera/CameraHal.cpp
@@ -2791,7 +2791,6 @@ status_t CameraHal::restartPreview()
android::AutoMutex lock(mLock);
if (!mCapModeBackup.isEmpty()) {
mParameters.set(TICameraParameters::KEY_CAP_MODE, mCapModeBackup.string());
- mCapModeBackup = "";
} else {
mParameters.set(TICameraParameters::KEY_CAP_MODE, "");
}