diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2023-09-06 10:42:10 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2023-09-06 10:42:10 +0900 |
commit | 523299fa92faaa7eb14550531aab2c228eea2df2 (patch) | |
tree | db387c63d283686da3531c4bb610860cf10e8794 | |
parent | 366195264a7ecf3db8c9d080257668134839f029 (diff) | |
download | recorder-523299fa92faaa7eb14550531aab2c228eea2df2.tar.gz recorder-523299fa92faaa7eb14550531aab2c228eea2df2.tar.bz2 recorder-523299fa92faaa7eb14550531aab2c228eea2df2.zip |
Reduce length of thread name
- According to glib manual, some systems restrict the length of thread name to 16 bytes.
Previously, the thread name for recorder API was not shown properly(checked by "ps -eTl"),
and it has been fixed by reducing length of thread name.
[Version] 0.3.40
[Issue Type] Update
Change-Id: I47a1207fc55f0ab8be742322d94d45ad7d05534b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r-- | packaging/capi-media-recorder.spec | 2 | ||||
-rw-r--r-- | src/recorder.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packaging/capi-media-recorder.spec b/packaging/capi-media-recorder.spec index 63f8fbd..d3da553 100644 --- a/packaging/capi-media-recorder.spec +++ b/packaging/capi-media-recorder.spec @@ -1,6 +1,6 @@ Name: capi-media-recorder Summary: A Recorder API -Version: 0.3.39 +Version: 0.3.40 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/recorder.c b/src/recorder.c index 221c400..66f5f5a 100644 --- a/src/recorder.c +++ b/src/recorder.c @@ -1237,21 +1237,21 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd) /* message handler thread */ if (!__create_msg_handler_thread(&cb_info->msg_handler_info, - _RECORDER_MESSAGE_HANDLER_TYPE_GENERAL, "recorder_msg_handler", cb_info)) { + _RECORDER_MESSAGE_HANDLER_TYPE_GENERAL, "rec:msg_handler", cb_info)) { REC_LOG_ERROR("msg_handler_info failed"); goto ErrorExit; } /* message handler thread for audio stream callback */ if (!__create_msg_handler_thread(&cb_info->audio_stream_cb_info, - _RECORDER_MESSAGE_HANDLER_TYPE_AUDIO_STREAM_CB, "recorder_msg_handler:audio_stream_cb", cb_info)) { + _RECORDER_MESSAGE_HANDLER_TYPE_AUDIO_STREAM_CB, "rec:astream_cb", cb_info)) { REC_LOG_ERROR("audio_stream_cb_info failed"); goto ErrorExit; } /* message handler thread for muxed stream callback */ if (!__create_msg_handler_thread(&cb_info->muxed_stream_cb_info, - _RECORDER_MESSAGE_HANDLER_TYPE_MUXED_STREAM_CB, "recorder_msg_handler:muxed_stream_cb", cb_info)) { + _RECORDER_MESSAGE_HANDLER_TYPE_MUXED_STREAM_CB, "rec:mstream_cb", cb_info)) { REC_LOG_ERROR("muxed_stream_cb_info failed"); goto ErrorExit; } @@ -1260,7 +1260,7 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd) /* message receive thread */ g_atomic_int_set(&cb_info->msg_recv_running, 1); - cb_info->msg_recv_thread = g_thread_try_new("recorder_msg_recv", + cb_info->msg_recv_thread = g_thread_try_new("rec:msg_recv", _recorder_msg_recv_func, (gpointer)cb_info, NULL); if (cb_info->msg_recv_thread == NULL) { REC_LOG_ERROR("message receive thread creation failed"); |