CameraHAL: Fixes a couple of corner cases with AF and capture DO NOT MERGE
authorAkwasi Boateng <akwasi.boateng@ti.com>
Thu, 24 Nov 2011 10:35:58 +0000 (12:35 +0200)
committerIliyan Malchev <malchev@google.com>
Thu, 1 Dec 2011 22:13:24 +0000 (14:13 -0800)
commitbb7a8bcdce1c9192117cbdbec4aaafe67008bebb
treedf7b59e35a215b57c8b0bace293374db94546d88
parent3ffd5d435ca19790f7055bf6966ab69909d0bfef
CameraHAL: Fixes a couple of corner cases with AF and capture DO NOT MERGE

Fixes b/5627968.

On some occasions during monkey tests, both the AF callback and the shutter
callback can be delayed just enough to encounter the OMX component in loaded
state. Usually this happens when the camera is getting closed and this scenario
should be properly handled by exiting immediately without trying to trigger any
callbacks to the client.

Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Change-Id: Ia18faf471a8e10579b09973178d73e69e782c63c
camera/OMXCameraAdapter/OMXCapture.cpp
camera/OMXCameraAdapter/OMXFocus.cpp