- Timestamp:
- Dec 13, 2013 11:44:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/account.cpp
r4674 r4692 301 301 302 302 /* Convert to pjsip. */ 303 pjsua_acc_config AccountConfig::toPj() const 304 { 305 pjsua_acc_config ret; 303 void AccountConfig::toPj(pjsua_acc_config &ret) const 304 { 306 305 unsigned i; 307 306 … … 425 424 ret.vid_stream_rc_cfg.method= videoConfig.rateControlMethod; 426 425 ret.vid_stream_rc_cfg.bandwidth = videoConfig.rateControlBandwidth; 427 428 return ret;429 426 } 430 427 … … 670 667 bool make_default) throw(Error) 671 668 { 672 pjsua_acc_config pj_acc_cfg = acc_cfg.toPj(); 673 669 pjsua_acc_config pj_acc_cfg; 670 671 acc_cfg.toPj(pj_acc_cfg); 674 672 pj_acc_cfg.user_data = (void*)this; 675 673 PJSUA2_CHECK_EXPR( pjsua_acc_add(&pj_acc_cfg, make_default, &id) ); … … 678 676 void Account::modify(const AccountConfig &acc_cfg) throw(Error) 679 677 { 680 pjsua_acc_config pj_acc_cfg = acc_cfg.toPj(); 678 pjsua_acc_config pj_acc_cfg; 679 680 acc_cfg.toPj(pj_acc_cfg); 681 681 pj_acc_cfg.user_data = (void*)this; 682 682 PJSUA2_CHECK_EXPR( pjsua_acc_modify(id, &pj_acc_cfg) );
Note: See TracChangeset
for help on using the changeset viewer.