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_6.5/20220208.073425^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4801e90e6108416d82edeb984507390929a6d03;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_data_channel: Remove unreachable code and revise error log [Version] 0.2.159 [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 628d951d..c12c349c 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.2.158 +Version: 0.2.159 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_data_channel.c b/src/webrtc_data_channel.c index 7812b134..26586467 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);