Replace server connection close API 30/146230/1 accepted/tizen/unified/20170830.160907 submit/tizen/20170829.012725
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 25 Aug 2017 10:10:36 +0000 (19:10 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 25 Aug 2017 10:10:36 +0000 (19:10 +0900)
In signal handler, fds will be closed in fd-id table,
but, closed fd by muse_core_connection_close is not removed from table.
It can cause unexpected behavior in signal handler,
so new API is added and it removes closed fd in fd-id table.

[Version] 0.3.5
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170825.1]

Change-Id: I2df5af4bc835bd92ea25170175e9e5fafe9cc54e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-recorder.spec
src/recorder.c

index 1565651..d9a48b2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-recorder
 Summary:    A Recorder API
-Version:    0.3.4
+Version:    0.3.5
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index d08ab8d..846cc9d 100644 (file)
@@ -1411,7 +1411,7 @@ static void _recorder_client_callback_destroy(recorder_cb_info_s *cb_info)
        }
 
        if (cb_info->fd > -1) {
-               muse_core_connection_close(cb_info->fd);
+               muse_client_close(cb_info->fd);
                cb_info->fd = -1;
        }
 
@@ -1631,7 +1631,7 @@ _ERR_RECORDER_EXIT:
        }
 
        if (sock_fd > -1) {
-               muse_core_connection_close(sock_fd);
+               muse_client_close(sock_fd);
                sock_fd = -1;
        }
 
@@ -3454,7 +3454,7 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
 
 _GET_DEVICE_STATE_EXIT:
        if (sock_fd > -1) {
-               muse_core_connection_close(sock_fd);
+               muse_client_close(sock_fd);
                sock_fd = -1;
        }