calibrator improvements

This commit is contained in:
Simon Morlat 2011-01-24 16:05:43 +01:00
parent 6e0e96c0e1
commit 33b6bd6933

View file

@ -1641,7 +1641,7 @@ void linphone_core_iterate(LinphoneCore *lc){
if (lc->ecc->cb)
lc->ecc->cb(lc,ecs,lc->ecc->delay,lc->ecc->cb_data);
if (ecs==LinphoneEcCalibratorDone){
lp_config_set_int(lc->config, "sound", "ec_delay",lc->ecc->delay);
lp_config_set_int(lc->config, "sound", "ec_delay",MAX(lc->ecc->delay-10,0));
}
ec_calibrator_destroy(lc->ecc);
lc->ecc=NULL;