webrtc_source_mediapacket: Fix payload type in case of PCMU/PCMA 42/319742/1 accepted/tizen/unified/20250218.161754 accepted/tizen/unified/x/20250221.042126
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 17 Feb 2025 06:39:44 +0000 (15:39 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 17 Feb 2025 06:42:33 +0000 (15:42 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_source_mediapacket.c

index 8963f4cbc2d68617406236fc6e4885ef4a525d7f..2a989d59ada9b022d21c7fc5a814dc98389501d3 100644 (file)
@@ -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
index 0a0acae46d7d661a121e0beee11b10035e42d7ec..18e0c05211c29a80cb71fd3e390c2c134751aa9c 100644 (file)
@@ -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))) {