- Timestamp:
- Mar 20, 2019 3:23:34 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5923 r5955 697 697 param.capture_dev = capture_dev; 698 698 param.playback_dev = getPlaybackDev(); 699 if (param.playback_dev == PJMEDIA_AUD_INVALID_DEV) 699 700 /* Normalize invalid ID or null device to default device */ 701 if (param.playback_dev == PJMEDIA_AUD_INVALID_DEV || 702 param.playback_dev == PJSUA_SND_NULL_DEV) 703 { 700 704 param.playback_dev = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 705 } 701 706 702 707 param.mode = PJSUA_SND_DEV_NO_IMMEDIATE_OPEN; … … 710 715 pjsua_snd_dev_param_default(¶m); 711 716 717 param.playback_dev = playback_dev; 712 718 param.capture_dev = getCaptureDev(); 713 if (param.capture_dev == PJMEDIA_AUD_INVALID_DEV) 719 720 /* Normalize invalid ID or null device to default device */ 721 if (param.capture_dev == PJMEDIA_AUD_INVALID_DEV || 722 param.capture_dev == PJSUA_SND_NULL_DEV) 723 { 714 724 param.capture_dev = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 715 param.playback_dev = playback_dev;725 } 716 726 717 727 param.mode = PJSUA_SND_DEV_NO_IMMEDIATE_OPEN;
Note: See TracChangeset
for help on using the changeset viewer.