Camera: Silence log spam am: 207867716a

am: 6ccc129e91

Change-Id: Ida70914135764b034aff9c09b288df5a31cb9c60
This commit is contained in:
Shuzhen Wang 2017-05-25 23:16:58 +00:00 committed by android-build-merger
commit 32f0b047dc

View file

@ -588,8 +588,7 @@ void CameraDeviceSession::ResultBatcher::notify(NotifyMsg& msg) {
void CameraDeviceSession::ResultBatcher::invokeProcessCaptureResultCallback(
hidl_vec<CaptureResult> &results, bool tryWriteFmq) {
if (mProcessCaptureResultLock.tryLock() != OK) {
ALOGW("%s: previous call is not finished! waiting 1s...",
__FUNCTION__);
ALOGV("%s: previous call is not finished! waiting 1s...", __FUNCTION__);
if (mProcessCaptureResultLock.timedLock(1000000000 /* 1s */) != OK) {
ALOGE("%s: cannot acquire lock in 1s, cannot proceed",
__FUNCTION__);