From: Sangchul Lee Date: Mon, 17 Feb 2025 06:39:44 +0000 (+0900) Subject: webrtc_source_mediapacket: Fix payload type in case of PCMU/PCMA X-Git-Tag: accepted/tizen/unified/20250218.161754^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1df3ce98e63ae70c1128466858eb23c388440506;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_source_mediapacket: Fix payload type in case of PCMU/PCMA Passing media_type value to _set_payload_type() will fix the payload type number if needed. [Version] 1.1.48 [Issue Type] Improvement Change-Id: I3c74b829af756f6bb897832db201f8ef84c6c1bf Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 8963f4cb..2a989d59 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: 1.1.47 +Version: 1.1.48 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_source_mediapacket.c b/src/webrtc_source_mediapacket.c index 0a0acae4..18e0c052 100644 --- a/src/webrtc_source_mediapacket.c +++ b/src/webrtc_source_mediapacket.c @@ -334,7 +334,7 @@ static int __create_rest_of_elements_for_encoded_format(webrtc_s *webrtc, webrtc goto error; APPEND_ELEMENT(*element_list, capsfilter); - if (_set_payload_type(webrtc, source, GET_AV_IDX_BY_TYPE(source->media_types), NULL) != WEBRTC_ERROR_NONE) + if (_set_payload_type(webrtc, source, GET_AV_IDX_BY_TYPE(source->media_types), media_type) != WEBRTC_ERROR_NONE) goto error; if ((sink_caps = _make_rtp_caps(media_type, source->av[GET_AV_IDX_BY_TYPE(source->media_types)].pt, -1, source, NULL))) {