Ignore:
Timestamp:
Dec 13, 2013 11:44:51 AM (10 years ago)
Author:
nanang
Message:

Re #1519: Misc fixes in pjsua2:

  • Changed AccountConfig::toPj() signature, because a pjsua_acc_config instance should not be copied/assigned to another pjsua_acc_config instance as it contains list.
  • Fixed assertion in Endpoint destructor caused by access to pjlib mutex after pjlib is destroyed.
  • Changed VS2005 sample_debug project to allow debugging C++ code such as pjsua2_demo.cpp.
  • Compile warnings on VS2005.
  • Fixed SWIG python unit test.
File:
1 edited

Legend:

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

    r4685 r4692  
    454454    PJSUA2_CHECK_EXPR( pjsua_enum_aud_devs(pj_info, &count) ); 
    455455 
     456    pj_enter_critical_section(); 
    456457    clearAudioDevList(); 
    457  
    458     pj_enter_critical_section(); 
    459458    for (unsigned i = 0; (i<count && i<MAX_DEV_COUNT) ;++i) { 
    460459        AudioDevInfo *dev_info = new AudioDevInfo; 
     
    748747void AudDevManager::clearAudioDevList() 
    749748{ 
    750     pj_enter_critical_section(); 
    751749    for(unsigned i=0;i<audioDevList.size();++i) { 
    752750        delete audioDevList[i]; 
    753751    } 
    754752    audioDevList.clear(); 
    755     pj_leave_critical_section(); 
    756753} 
    757754 
Note: See TracChangeset for help on using the changeset viewer.