}
PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_start_face_detection", MediaContentGetError(nRet));
-
+
+ //If callback is invoked for "media_info_start_face_detection" then media_info_cancel_face_detection api will fail. So call "media_info_start_face_detection" one more time.
+ media_info_start_face_detection( g_hImageInfo, MediaFaceDetectionCompletedCB , NULL);
+
// for media_info_cancel_face_detection to work no need to check for callback hit as per the header file info
nRet = media_info_cancel_face_detection(g_hImageInfo);
PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_cancel_face_detection", MediaContentGetError(nRet));