From: Sangchul Lee Date: Thu, 27 Jan 2022 06:12:48 +0000 (+0900) Subject: webrtc_data_channel: Remove unreachable code and revise error log X-Git-Tag: submit/tizen/20220203.095030^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e38eccdf0831eb473e7db6781ba3d34c0fa6a915;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_data_channel: Remove unreachable code and revise error log [Version] 0.3.51 [Issue Type] Improvement Change-Id: I3fb502f8ea712233a660e382904a65fd2e47fee0 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index e22237e9..8e13935a 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.3.50 +Version: 0.3.51 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_data_channel.c b/src/webrtc_data_channel.c index cac2bc9d..7e0899bc 100644 --- a/src/webrtc_data_channel.c +++ b/src/webrtc_data_channel.c @@ -76,12 +76,8 @@ static void __data_channel_on_error_cb(GObject *data_channel, GError *error, gpo RET_IF(channel == NULL, "channel is NULL"); - if (error->domain == GST_RESOURCE_ERROR) - err = WEBRTC_ERROR_RESOURCE_FAILED; - else if (error->domain == GST_STREAM_ERROR) - err = WEBRTC_ERROR_STREAM_FAILED; - - LOG_DEBUG("channel[%p, %s] error[0x%x] user_data[%p]", channel, GST_OBJECT_NAME(data_channel), err, user_data); + LOG_DEBUG("channel[%p, %s] GError[message:%s, code:%d] error[0x%x] user_data[%p]", + channel, GST_OBJECT_NAME(data_channel), error->message, error->code, err, user_data); if (channel->error_cb.callback) { LOG_DEBUG(">>> callback[%p] user_data[%p]", channel->error_cb.callback, channel->error_cb.user_data);