Commit 8f61e3f5 authored by smorlat's avatar smorlat

cleanup payloads at linphone_core_destroy()

add gsm/22050

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@716 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 322f10ed
......@@ -663,6 +663,7 @@ static void linphone_core_assign_payload_type(PayloadType *const_pt, int number,
pt=payload_type_clone(const_pt);
if (recv_fmtp!=NULL) payload_type_set_recv_fmtp(pt,recv_fmtp);
rtp_profile_set_payload(&av_profile,number,pt);
linphone_payload_types=ms_list_append(linphone_payload_types,pt);
}
static void linphone_core_free_payload_types(void){
......@@ -695,6 +696,11 @@ void linphone_core_init (LinphoneCore * lc, const LinphoneCoreVTable *vtable, co
pt=payload_type_clone(&payload_type_gsm);
pt->clock_rate=11025;
rtp_profile_set_payload(&av_profile,114,pt);
linphone_payload_types=ms_list_append(linphone_payload_types,pt);
pt=payload_type_clone(&payload_type_gsm);
pt->clock_rate=22050;
rtp_profile_set_payload(&av_profile,115,pt);
linphone_payload_types=ms_list_append(linphone_payload_types,pt);
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment