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

@@ -257,6 +257,13 @@ void CallbackNotifier::onNextFrameAvailable(const void* frame,
}
}
void CallbackNotifier::onCameraDeviceError(int err)
{
if (isMessageEnabled(CAMERA_MSG_ERROR) && mNotifyCB != NULL) {
mNotifyCB(CAMERA_MSG_ERROR, err, 0, mCBOpaque);
}
}
/****************************************************************************
* Private API
***************************************************************************/