Fix deadlock in camera hal when auto focus failed

This commit is contained in:
James Dong 2009-06-10 19:59:25 -07:00
parent 32b7f2804e
commit c11ce4c954

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;
}
}