Fix that CaptureCb API is called before Capture API is completed
authorjs1002.kim <js1002.kim@samsung.com>
Fri, 19 Apr 2013 08:50:25 +0000 (17:50 +0900)
committerjs1002.kim <js1002.kim@samsung.com>
Fri, 19 Apr 2013 08:50:25 +0000 (17:50 +0900)
Change-Id: I44d956a8127432ac8d9fd66ba22e2401e811c7bc
Signed-off-by: js1002.kim <js1002.kim@samsung.com>
src/FMedia_CameraImpl.cpp

index 37fbafa..e50307e 100755 (executable)
@@ -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);