diff options
author | Tyler Luu <tluu@ti.com> | 2011-11-10 22:00:07 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-10 22:00:07 +0000 |
commit | dd984e135dcc280730ae9be189f073f4a47bec9c (patch) | |
tree | 0141eccbbb0f8e2afc8edd8b04203ecd421b268c /camera | |
parent | 1c69663b39e9d68f4f952d35e5a9b8e9b7fd376a (diff) | |
parent | 3868fc1f95369d2a9bbe07cc245204be7b01f2f6 (diff) | |
download | hardware_ti_omap4-dd984e135dcc280730ae9be189f073f4a47bec9c.zip hardware_ti_omap4-dd984e135dcc280730ae9be189f073f4a47bec9c.tar.gz hardware_ti_omap4-dd984e135dcc280730ae9be189f073f4a47bec9c.tar.bz2 |
am 334dd8a9: am c5831812: am cbaa6646: CameraHAL: Fix preview not starting after surface is abdandoned
* commit '334dd8a961fcfe53c083b2b8a0e7041065704a7d':
CameraHAL: Fix preview not starting after surface is abdandoned
Diffstat (limited to 'camera')
-rw-r--r-- | camera/CameraHal.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp index 7e18330..8e14fec 100644 --- a/camera/CameraHal.cpp +++ b/camera/CameraHal.cpp @@ -1715,10 +1715,11 @@ status_t CameraHal::setPreviewWindow(struct preview_stream_ops *window) } }else { - /* 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 - */ + // Update the display adapter with the new window that is passed from CameraService + ret = mDisplayAdapter->setPreviewWindow(window); + if (previewEnabled()) { + restartPreview(); + } } LOG_FUNCTION_NAME_EXIT; |