mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fix static payload types erasing custom ones.
This commit is contained in:
parent
af3d20dbc3
commit
be079dc88d
1 changed files with 2 additions and 1 deletions
|
|
@ -1199,7 +1199,8 @@ static void linphone_core_handle_static_payloads(LinphoneCore *lc){
|
|||
for(i=0;i<RTP_PROFILE_MAX_PAYLOADS;++i){
|
||||
PayloadType *pt=rtp_profile_get_payload(prof,i);
|
||||
if (pt){
|
||||
if (payload_type_get_number(pt)!=i){
|
||||
// insert static payload only if no profile exists
|
||||
if (rtp_profile_get_payload(lc->default_profile,i) == NULL){
|
||||
linphone_core_assign_payload_type(lc,pt,i,NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue