summaryrefslogtreecommitdiffstats
path: root/camera/CameraHal.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-11-10 19:08:26 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-11 11:48:08 -0800
commit2e5ea0854f75aee6c06f8350798f1be64a37e629 (patch)
tree4e1da7d9b974e7acd95d8893ed65ba28f525491f /camera/CameraHal.cpp
parent9c9ebe25afb64c11ba414684a9e0a017a0eb5f56 (diff)
downloadhardware_ti_omap4-2e5ea0854f75aee6c06f8350798f1be64a37e629.zip
hardware_ti_omap4-2e5ea0854f75aee6c06f8350798f1be64a37e629.tar.gz
hardware_ti_omap4-2e5ea0854f75aee6c06f8350798f1be64a37e629.tar.bz2
Revert "CameraHAL: Fix preview not starting after surface is abdandoned"
This reverts commit cbaa66464ff86bddf40e3c8de8db44473ff27de9. we need to revert this change since this leads to a stop ship problem where we can only take a single picture.
Diffstat (limited to 'camera/CameraHal.cpp')
-rw-r--r--camera/CameraHal.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp
index 8e14fec..7e18330 100644
--- a/camera/CameraHal.cpp
+++ b/camera/CameraHal.cpp
@@ -1715,11 +1715,10 @@ status_t CameraHal::setPreviewWindow(struct preview_stream_ops *window)
}
}else
{
- // Update the display adapter with the new window that is passed from CameraService
- ret = mDisplayAdapter->setPreviewWindow(window);
- if (previewEnabled()) {
- restartPreview();
- }
+ /* If mDisplayAdpater is already created. No need to do anything.
+ * We get a surface handle directly now, so we can reconfigure surface
+ * itself in DisplayAdapter if dimensions have changed
+ */
}
LOG_FUNCTION_NAME_EXIT;