Ignore:
Timestamp:
Apr 15, 2019 10:52:16 AM (6 years ago)
Author:
nanang
Message:

Close #2189: fixed PJSUA2 thread safety issue in list of objects manipulation.

File:
1 edited

Legend:

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

    r5923 r5969  
    228228} 
    229229 
    230 CallSetting::CallSetting(pj_bool_t useDefaultValues) 
     230CallSetting::CallSetting(bool useDefaultValues) 
    231231{ 
    232232    if (useDefaultValues) { 
     
    522522} 
    523523 
     524AudioMedia Call::getAudioMedia(unsigned med_idx) const throw(Error) 
     525{ 
     526    CallAudioMedia cam; 
     527    CallInfo ci = getInfo(); 
     528 
     529    if (med_idx < ci.media.size() && 
     530        ci.media[med_idx].type == PJMEDIA_TYPE_AUDIO) 
     531    { 
     532        cam.setPortId(ci.media[med_idx].audioConfSlot); 
     533    } 
     534    return cam; 
     535} 
     536 
    524537pjsip_dialog_cap_status Call::remoteHasCap(int htype, 
    525538                                           const string &hname, 
Note: See TracChangeset for help on using the changeset viewer.