Changeset 2941


Ignore:
Timestamp:
Oct 13, 2009 11:19:57 AM (15 years ago)
Author:
nanang
Message:

Ticket #968: Fixed WMME factory initialization to just return PJ_SUCCESS when no audio device is installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/wmme_dev.c

    r2925 r2941  
    284284    if (devCount==0) { 
    285285        PJ_LOG(4,(THIS_FILE, "WMME found no sound devices")); 
     286        /* Enabling this will cause pjsua-lib initialization to fail when there 
     287         * is no sound device installed in the system, even when pjsua has been 
     288         * run with --null-audio. Moreover, it might be better to think that 
     289         * the WMME backend initialization is successfull, regardless there is 
     290         * no audio device installed, as later application can check it using  
     291         * get_dev_count(). 
    286292        return PJMEDIA_EAUD_NODEV; 
     293         */ 
     294        return PJ_SUCCESS; 
    287295    } 
    288296 
Note: See TracChangeset for help on using the changeset viewer.