Fix deadlock in camera hal when auto focus failed
This commit is contained in:
parent
32b7f2804e
commit
c11ce4c954
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user