- Timestamp:
- Dec 13, 2013 11:44:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/media.cpp
r4685 r4692 454 454 PJSUA2_CHECK_EXPR( pjsua_enum_aud_devs(pj_info, &count) ); 455 455 456 pj_enter_critical_section(); 456 457 clearAudioDevList(); 457 458 pj_enter_critical_section();459 458 for (unsigned i = 0; (i<count && i<MAX_DEV_COUNT) ;++i) { 460 459 AudioDevInfo *dev_info = new AudioDevInfo; … … 748 747 void AudDevManager::clearAudioDevList() 749 748 { 750 pj_enter_critical_section();751 749 for(unsigned i=0;i<audioDevList.size();++i) { 752 750 delete audioDevList[i]; 753 751 } 754 752 audioDevList.clear(); 755 pj_leave_critical_section();756 753 } 757 754
Note: See TracChangeset
for help on using the changeset viewer.