From 796f8654d1615d3b55e53214a3bda0ad9a7bf865 Mon Sep 17 00:00:00 2001 From: "js1002.kim" Date: Fri, 19 Apr 2013 17:50:25 +0900 Subject: [PATCH] Fix that CaptureCb API is called before Capture API is completed Change-Id: I44d956a8127432ac8d9fd66ba22e2401e811c7bc Signed-off-by: js1002.kim --- src/FMedia_CameraImpl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FMedia_CameraImpl.cpp b/src/FMedia_CameraImpl.cpp index 37fbafa..e50307e 100755 --- a/src/FMedia_CameraImpl.cpp +++ b/src/FMedia_CameraImpl.cpp @@ -3086,7 +3086,10 @@ _CameraImpl::CaptureCb(camera_image_data_s* pImage, camera_image_data_s *pPostvi double ratio = 0.0; SysTryReturnVoidResult(NID_MEDIA, _CameraImpl::IsAlive(), E_INVALID_OPERATION, "[E_INVALID_OPERATION] The object was already destroyed."); SysTryReturnVoidResult(NID_MEDIA, pImpl != null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] _CameraImpl is null."); - SysTryReturnVoidResult(NID_MEDIA, pImpl->GetState() == CAMERA_STATE_CAPTURING, E_INVALID_STATE, "[E_INVALID_STATE] The camera is already capturing"); + //****************** + //SysTryReturnVoidResult(NID_MEDIA, pImpl->GetState() == CAMERA_STATE_CAPTURING, E_INVALID_STATE, "[E_INVALID_STATE] The camera is already capturing"); + //Commentout : Because it is not guaranteed that CaptureCb API is called after Capture API is completed. + //****************** SysTryCatch(NID_MEDIA, pImage != null, r = E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] image is null."); SysLog(NID_MEDIA, "Enter. image size:%d, format:%d", pImage->size, pImage->format); -- 2.7.4