diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-10-13 11:19:57 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-10-13 11:19:57 +0000 |
commit | 745a13dbbff423464a61dbc9311aba416c245754 (patch) | |
tree | 3145de3b173b298dacd10e2611e92d29104f75fa | |
parent | 8f0431d203dd8b5adddb17ea56f0321374b86b29 (diff) |
Ticket #968: Fixed WMME factory initialization to just return PJ_SUCCESS when no audio device is installed.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2941 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjmedia/src/pjmedia-audiodev/wmme_dev.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-audiodev/wmme_dev.c b/pjmedia/src/pjmedia-audiodev/wmme_dev.c index a5cbb181..4a577c78 100644 --- a/pjmedia/src/pjmedia-audiodev/wmme_dev.c +++ b/pjmedia/src/pjmedia-audiodev/wmme_dev.c @@ -283,7 +283,15 @@ static pj_status_t factory_init(pjmedia_aud_dev_factory *f) if (devCount==0) { PJ_LOG(4,(THIS_FILE, "WMME found no sound devices")); + /* Enabling this will cause pjsua-lib initialization to fail when there + * is no sound device installed in the system, even when pjsua has been + * run with --null-audio. Moreover, it might be better to think that + * the WMME backend initialization is successfull, regardless there is + * no audio device installed, as later application can check it using + * get_dev_count(). return PJMEDIA_EAUD_NODEV; + */ + return PJ_SUCCESS; } wf->dev_info = (struct wmme_dev_info*) |