diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-08-04 20:54:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-08-04 20:54:37 +0000 |
commit | 77e83abec93e35ef198ba17e90650335893d070c (patch) | |
tree | 1c49205d2636266dbca524b13203e1c848e71647 /pjsip | |
parent | 3474adb4cba6d8f0e3a2858a59f64683ae8153ad (diff) |
Fixed bug in pjsua_media.c because of recent AEC changes: sound device is not connected anywhere!
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@649 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_media.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index 3eeb3078..de21e788 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -972,6 +972,17 @@ PJ_DEF(pj_status_t) pjsua_set_snd_dev( int capture_dev, pjmedia_snd_port_set_aec(pjsua_var.snd_port, pjsua_var.pool, pjsua_var.media_cfg.ec_tail_len); + /* Connect sound port to the bridge */ + status = pjmedia_snd_port_connect(pjsua_var.snd_port, + conf_port ); + if (status != PJ_SUCCESS) { + pjsua_perror(THIS_FILE, "Unable to connect conference port to " + "sound device", status); + pjmedia_snd_port_destroy(pjsua_var.snd_port); + pjsua_var.snd_port = NULL; + return status; + } + /* Save the device IDs */ pjsua_var.cap_dev = capture_dev; pjsua_var.play_dev = playback_dev; |