summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-05 22:45:06 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-05 22:45:06 +0000
commit99c93933b608b111c644e3a90d484cc2dbff4b31 (patch)
treeb595e480e8da11a91d3f3119abe45f1ade11b33b /pjsip
parentbd086483084600546e8336cbd5d24fa9561847fe (diff)
Fixed ticket #214: Error opening sound device is not propagated to application (thanks Paul Levin)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1156 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_media.c17
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 d06f39d1..785fb18f 100644
--- a/pjsip/src/pjsua-lib/pjsua_media.c
+++ b/pjsip/src/pjsua-lib/pjsua_media.c
@@ -401,21 +401,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;
}
}