From 33b6bd6933de34389fbf0fc955c811ec019baa37 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 24 Jan 2011 16:05:43 +0100 Subject: [PATCH] calibrator improvements --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index f10214178..0f51a1f7c 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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;