Implements camera error reporting.

Change-Id: I5f4f4cd1baab60053e827e0605a92a123c7a086f
This commit is contained in:
Vladimir Chtchetkine
2011-09-23 08:26:39 -07:00
parent 8fbf284cc8
commit b3ea171655
5 changed files with 30 additions and 3 deletions

View File

@@ -249,12 +249,13 @@ bool EmulatedQemuCameraDevice::inWorkerThread()
/* Timestamp the current frame, and notify the camera HAL. */
mCurFrameTimestamp = systemTime(SYSTEM_TIME_MONOTONIC);
mCameraHAL->onNextFrameAvailable(mCurrentFrame, mCurFrameTimestamp, this);
return true;
} else {
LOGE("%s: Unable to get current video frame: %s",
__FUNCTION__, strerror(query_res));
mCameraHAL->onCameraDeviceError(CAMERA_ERROR_SERVER_DIED);
return false;
}
return true;
}
}; /* namespace android */