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>
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
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))) {