CameraHal: Wait for frame before stopping preview
authorTyler Luu <tluu@ti.com>
Wed, 26 Oct 2011 17:22:00 +0000 (12:22 -0500)
committerIliyan Malchev <malchev@google.com>
Mon, 7 Nov 2011 20:08:22 +0000 (12:08 -0800)
commitfe3c9139602c77b4890370307b63e1ab9990a75b
tree05df0c2581a48f5efc8c5fabfbffc3feb13f553b
parentfc8ab094473901857ee382396eebc5d52ac4c6c6
CameraHal: Wait for frame before stopping preview

Fix 3/3 for b/5472396.

We should wait for the first frame to come before trying to
stopPreview. If not, we might put OMXCamera in a bad state
i.e (IDLE->LOADED timeout). Seeing this a lot after a capture

Change-Id: I4ac6cc4f12bdc0d4d73e065b7c53caf8a440a43c
Signed-off-by: Tyler Luu <tluu@ti.com>
camera/OMXCameraAdapter/OMXCameraAdapter.cpp