summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-25 17:56:56 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-25 17:56:56 +0000
commitdecb295824ef9cf2df5683d11b1c40fb6eff6ab5 (patch)
tree3b047faf12ca86a3c6069d19bdca31d5b32bd6c6
parent21f289fd793d557507ab9819a744bee2b9c43114 (diff)
Fixed misleading log message from the sound port about EC being suspended when actually there's no EC being used.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@740 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia/sound_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/sound_port.c b/pjmedia/src/pjmedia/sound_port.c
index 9bc48117..170091c5 100644
--- a/pjmedia/src/pjmedia/sound_port.c
+++ b/pjmedia/src/pjmedia/sound_port.c
@@ -135,7 +135,7 @@ static pj_status_t play_cb(/* in */ void *user_data,
no_frame:
- if (!snd_port->ec_suspended) {
+ if (snd_port->ec_state && !snd_port->ec_suspended) {
++snd_port->ec_suspend_count;
if (snd_port->ec_suspend_count > snd_port->ec_suspend_limit) {
snd_port->ec_suspended = PJ_TRUE;