mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Don't select telephone-event for audio stream even if it appears first in the list.
This commit is contained in:
parent
6ded32bfff
commit
3a850c1a03
1 changed files with 7 additions and 1 deletions
|
|
@ -3081,9 +3081,15 @@ static RtpProfile *make_profile(LinphoneCall *call, const SalMediaDescription *m
|
|||
up_ptime=params->up_ptime;
|
||||
else up_ptime=linphone_core_get_upload_ptime(lc);
|
||||
}
|
||||
*used_pt=payload_type_get_number(pt);
|
||||
first=FALSE;
|
||||
}
|
||||
if (*used_pt == -1){
|
||||
/*don't select telephone-event as a payload type*/
|
||||
if (strcasecmp(pt->mime_type, "telephone-event") != 0){
|
||||
*used_pt = payload_type_get_number(pt);
|
||||
}
|
||||
}
|
||||
|
||||
if (pt->flags & PAYLOAD_TYPE_BITRATE_OVERRIDE){
|
||||
ms_message("Payload type [%s/%i] has explicit bitrate [%i] kbit/s", pt->mime_type, pt->clock_rate, pt->normal_bitrate/1000);
|
||||
pt->normal_bitrate=get_min_bandwidth(pt->normal_bitrate,bw*1000);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue