diff options
Diffstat (limited to 'pjmedia')
-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*) |