summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-08-04 21:01:53 +0000
committerBenny Prijono <bennylp@teluu.com>2006-08-04 21:01:53 +0000
commit84fa519310e0ab383fa107ccddadd94ad56eb1e3 (patch)
treedf9f549f5a3fca56f9f463f9103c186e5f082d24 /pjmedia
parent77e83abec93e35ef198ba17e90650335893d070c (diff)
Fixed error in setting up tail length in sound_port
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@650 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia/sound_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia/sound_port.c b/pjmedia/src/pjmedia/sound_port.c
index 37338704..5255eeba 100644
--- a/pjmedia/src/pjmedia/sound_port.c
+++ b/pjmedia/src/pjmedia/sound_port.c
@@ -454,11 +454,11 @@ PJ_DEF(pj_status_t) pjmedia_snd_port_set_aec( pjmedia_snd_port *snd_port,
if (tail_ms != 0) {
status = pjmedia_aec_create(pool, snd_port->clock_rate,
snd_port->samples_per_frame,
- snd_port->clock_rate * tail_ms / 1000,
- 0, &snd_port->aec);
+ tail_ms, 0, &snd_port->aec);
if (status != PJ_SUCCESS)
snd_port->aec = NULL;
} else {
+ PJ_LOG(4,(THIS_FILE, "AEC disabled in the sound port"));
status = PJ_SUCCESS;
}