fix duplicated codecs in config.

This commit is contained in:
Simon Morlat 2010-05-14 17:40:04 +02:00
parent 3e1a0348cb
commit 7404ff6163
2 changed files with 7 additions and 1 deletions

View file

@ -3480,6 +3480,9 @@ void codecs_config_uninit(LinphoneCore *lc)
lp_config_set_int(lc->config,key,"enabled",linphone_core_payload_type_enabled(lc,pt));
index++;
}
sprintf(key,"audio_codec_%i",index);
lp_config_clean_section (lc->config,key);
index=0;
for(node=config->video_codecs;node!=NULL;node=ms_list_next(node)){
pt=(PayloadType*)(node->data);
@ -3490,6 +3493,9 @@ void codecs_config_uninit(LinphoneCore *lc)
lp_config_set_string(lc->config,key,"recv_fmtp",pt->recv_fmtp);
index++;
}
sprintf(key,"video_codec_%i",index);
lp_config_clean_section (lc->config,key);
ms_list_free(lc->codecs_conf.audio_codecs);
ms_list_free(lc->codecs_conf.video_codecs);
}

2
oRTP

@ -1 +1 @@
Subproject commit ba73b8155b3a6aa64f8df95dee6b25ca9b95cbca
Subproject commit a80e7b5949e64ec01d4149d5e0f56c9843df35b0