mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
add linphone_core_get_payload_type_number in api
This commit is contained in:
parent
2111e92a39
commit
30eca09f41
2 changed files with 6 additions and 0 deletions
|
|
@ -792,6 +792,8 @@ int linphone_core_enable_payload_type(LinphoneCore *lc, PayloadType *pt, bool_t
|
|||
|
||||
PayloadType* linphone_core_find_payload_type(LinphoneCore* lc, const char* type, int rate) ;
|
||||
|
||||
int linphone_core_get_payload_type_number(LinphoneCore *lc, PayloadType *pt);
|
||||
|
||||
const char *linphone_core_get_payload_type_description(LinphoneCore *lc, PayloadType *pt);
|
||||
|
||||
bool_t linphone_core_check_payload_type_usability(LinphoneCore *lc, PayloadType *pt);
|
||||
|
|
|
|||
|
|
@ -202,6 +202,10 @@ int linphone_core_enable_payload_type(LinphoneCore *lc, PayloadType *pt, bool_t
|
|||
return -1;
|
||||
}
|
||||
|
||||
int linphone_core_get_payload_type_number(LinphoneCore *lc, PayloadType *pt){
|
||||
return payload_type_get_number(pt);
|
||||
}
|
||||
|
||||
const char *linphone_core_get_payload_type_description(LinphoneCore *lc, PayloadType *pt){
|
||||
if (ms_filter_codec_supported(pt->mime_type)){
|
||||
MSFilterDesc *desc=ms_filter_get_encoder(pt->mime_type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue