- Timestamp:
- Dec 3, 2013 10:45:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/media.cpp
r4668 r4669 386 386 unsigned count; 387 387 388 PJSUA2_CHECK_EXPR( pjsua_enum_aud_devs(pj_info, &count) ); 389 388 390 clearAudioDevList(); 389 391 390 PJSUA2_CHECK_EXPR( pjsua_enum_aud_devs(pj_info, &count) ); 391 392 pj_enter_critical_section(); 392 393 for (unsigned i = 0; (i<count && i<MAX_DEV_COUNT) ;++i) { 393 394 AudioDevInfo *dev_info = new AudioDevInfo; … … 395 396 audioDevList.push_back(dev_info); 396 397 } 398 pj_leave_critical_section(); 397 399 return audioDevList; 398 400 } … … 691 693 void AudDevManager::clearAudioDevList() 692 694 { 695 pj_enter_critical_section(); 693 696 for(unsigned i=0;i<audioDevList.size();++i) { 694 697 delete audioDevList[i]; 695 698 } 696 699 audioDevList.clear(); 700 pj_leave_critical_section(); 697 701 } 698 702 … … 704 708 return is_capture?capture_dev:playback_dev; 705 709 } 710 711 /////////////////////////////////////////////////////////////////////////////// 712 void CodecInfo::fromPj(const pjsua_codec_info &codec_info) 713 { 714 codecId = pj2Str(codec_info.codec_id); 715 priority = codec_info.priority; 716 desc = pj2Str(codec_info.desc); 717 }
Note: See TracChangeset
for help on using the changeset viewer.