diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-05 22:43:28 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-05 22:43:28 +0000 |
commit | 28001e6a56709413b59da8e42afdda8a35f4ff50 (patch) | |
tree | e3fc3dd8d8229378b95355202b6e57d6ac198089 | |
parent | 0f3532922e5c673cbe5ccbdfc69c97b6d2762824 (diff) |
Fixed ticket #213: Error opening sound device is not propagated to application (thanks Paul Levin)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1155 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_media.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index 22628823..0e52f5ed 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -388,21 +388,8 @@ pj_status_t pjsua_media_subsys_start(void) { status = pjsua_set_snd_dev(pjsua_var.cap_dev, pjsua_var.play_dev); if (status != PJ_SUCCESS) { - /* Error opening sound device, use null device */ - char errmsg[PJ_ERR_MSG_SIZE]; - - pj_strerror(status, errmsg, sizeof(errmsg)); - PJ_LOG(4,(THIS_FILE, - "Error opening default sound device (%s (status=%d)). " - "Will use NULL device instead", - errmsg, status)); - - status = pjsua_set_null_snd_dev(); - if (status != PJ_SUCCESS) { - pjsua_perror(THIS_FILE, "Error opening NULL sound device", - status); - return status; - } + pjsua_perror(THIS_FILE, "Error opening sound device", status); + return status; } } |