am 2697f855: Fix deadlock in camera hal when auto focus failed

Merge commit '2697f855be4d8b0bccbb3ba5bf1ae1547d2cf595'

* commit '2697f855be4d8b0bccbb3ba5bf1ae1547d2cf595':
  Fix deadlock in camera hal when auto focus failed
This commit is contained in:
James Dong 2009-06-11 01:02:50 -07:00 committed by The Android Open Source Project
commit 37c4d652b8

View File

@ -1288,6 +1288,7 @@ status_t QualcommCameraHardware::autoFocus(autofocus_callback af_cb,
auto_focus_thread, NULL);
if (!mAutoFocusThreadRunning) {
LOGE("failed to start autofocus thread");
mAutoFocusThreadLock.unlock();
return UNKNOWN_ERROR;
}
}