am b493ba27: Add log for initialization errors before detecting faces.
Merge commit 'b493ba27fc74ccf339f88a48b29b4fccaf651b86' into eclair-mr2-plus-aosp
* commit 'b493ba27fc74ccf339f88a48b29b4fccaf651b86':
Add log for initialization errors before detecting faces.
diff --git a/FaceDetector_jni.cpp b/FaceDetector_jni.cpp
index a4ceeec..03bd908 100644
--- a/FaceDetector_jni.cpp
+++ b/FaceDetector_jni.cpp
@@ -243,6 +243,8 @@
int numberOfFaces = 0;
if (btk_FaceFinder_putDCR(hfd, hdcr) == btk_STATUS_OK) {
numberOfFaces = btk_FaceFinder_faces(hfd);
+ } else {
+ LOGE("ERROR: Return 0 faces because error exists in btk_FaceFinder_putDCR.\n");
}
// release the arrays we're using