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/endpoint.cpp

    r4678 r4692  
    384384    } 
    385385 
     386    delete writer; 
     387     
     388    while(mediaList.size() > 0) { 
     389        AudioMedia *cur_media = mediaList[0]; 
     390        delete cur_media; /* this will remove itself from the list */ 
     391    } 
     392 
     393    clearCodecInfoList(); 
     394 
    386395    try { 
    387396        libDestroy(); 
     
    390399        PJ_UNUSED_ARG(err); 
    391400    } 
    392     delete writer; 
    393      
    394     while(mediaList.size() > 0) { 
    395         AudioMedia *cur_media = mediaList[0]; 
    396         delete cur_media; /* this will remove itself from the list */ 
    397     } 
    398  
    399     clearCodecInfoList(); 
    400401 
    401402    instance_ = NULL; 
     
    15671568    PJSUA2_CHECK_EXPR( pjsua_enum_codecs(pj_codec, &count) ); 
    15681569 
     1570    pj_enter_critical_section(); 
    15691571    clearCodecInfoList(); 
    1570  
    1571     pj_enter_critical_section(); 
    15721572    for (unsigned i=0;(i<count && i<MAX_CODEC_NUM);++i) { 
    15731573        CodecInfo *codec_info = new CodecInfo; 
     
    16081608void Endpoint::clearCodecInfoList() 
    16091609{ 
    1610     pj_enter_critical_section(); 
    16111610    for (unsigned i=0;i<codecInfoList.size();++i) { 
    16121611        delete codecInfoList[i]; 
    16131612    } 
    16141613    codecInfoList.clear(); 
    1615     pj_leave_critical_section(); 
    1616 } 
     1614} 
Note: See TracChangeset for help on using the changeset viewer.