Set error code for timeout error 13/140913/2
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 27 Jul 2017 05:05:08 +0000 (14:05 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 27 Jul 2017 06:35:26 +0000 (15:35 +0900)
The EOS handling should be avoided in error case,
but, error code could not be updated in case of timeout error.
So, update the error code in that case.

[Version] 0.10.129
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: I8437791467daee2f086f73350738699d2d0bec81
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_gstcommon.c

index 1529aef..aaf03ca 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.128
+Version:    0.10.129
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 824350b..99d93c0 100644 (file)
@@ -2103,6 +2103,9 @@ int _mmcamcorder_get_eos_message(MMHandleType handle)
                        _mmcam_dbg_log("EOS signal received");
                } else {
                        _mmcam_dbg_err("EOS wait time out");
+
+                       if (hcamcorder->error_code == MM_ERROR_NONE)
+                               hcamcorder->error_code = MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT;
                }
        } else {
                _mmcam_dbg_log("already got EOS");