Ignore:
Timestamp:
Jan 11, 2018 1:03:46 AM (7 years ago)
Author:
ming
Message:

Fixed #2081: Assertion when setting audio dev in PJSUA2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r5717 r5724  
    680680 
    681681    param.capture_dev = capture_dev; 
    682     param.playback_dev = getPlaybackDev();     
     682    param.playback_dev = getPlaybackDev(); 
     683    if (param.playback_dev == PJMEDIA_AUD_INVALID_DEV) 
     684        param.playback_dev = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 
    683685 
    684686    param.mode = PJSUA_SND_DEV_NO_IMMEDIATE_OPEN;     
     
    693695 
    694696    param.capture_dev = getCaptureDev(); 
     697    if (param.capture_dev == PJMEDIA_AUD_INVALID_DEV) 
     698        param.capture_dev = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 
    695699    param.playback_dev = playback_dev; 
    696700 
Note: See TracChangeset for help on using the changeset viewer.