From: Sangchul Lee Date: Mon, 19 Sep 2022 02:43:01 +0000 (+0900) Subject: webrtc_transceiver: Fix to add missing payload type of an offer description X-Git-Tag: accepted/tizen/unified/20220920.160554~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F281428%2F1;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_transceiver: Fix to add missing payload type of an offer description When transceiver direction was set to 'recvonly', a particular transceiver was added with a preference caps without payload type. When trying to create an offer description, the payload type must be added to the caps regardless its source type. [Version] 0.3.241 [Issue Type] Bug fix Change-Id: I924b297a3a23522ca7466c45eb0d65de1972d82c Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 63e49ef2..0b901b90 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.240 +Version: 0.3.241 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_transceiver.c b/src/webrtc_transceiver.c index 35c61da4..47909899 100644 --- a/src/webrtc_transceiver.c +++ b/src/webrtc_transceiver.c @@ -231,7 +231,7 @@ static rtp_payload_info_s * __get_payload_info_by_encoding_name(const char *enco return NULL; } -static void __check_and_update_transceiver(webrtc_gst_slot_s *source) +static void __check_and_update_recvonly_transceiver(webrtc_gst_slot_s *source) { rtp_payload_info_s *payload_info = NULL; @@ -259,12 +259,9 @@ void _update_transceivers_for_offer(webrtc_s *webrtc) if (!(source = webrtc->gst.sources[i])) continue; - if (source->type != WEBRTC_MEDIA_SOURCE_TYPE_NULL) - continue; - LOG_DEBUG("source[id:%u, type:%d, media_types:0x%x]", source->id, source->type, source->media_types); - __check_and_update_transceiver(source); + __check_and_update_recvonly_transceiver(source); } }