Ignore:
Timestamp:
Nov 27, 2013 10:18:18 AM (8 years ago)
Author:
nanang
Message:

Re #1519: Minor fix on TransportInfo?, use fromPj() method to import data from pjsua_transport_info.

File:
1 edited

Legend:

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

    r4657 r4658  
    950950TransportInfo Endpoint::transportGetInfo(TransportId id) throw(Error) 
    951951{ 
    952     pjsua_transport_info tinfo; 
    953  
    954     PJSUA2_CHECK_EXPR( pjsua_transport_get_info(id, &tinfo) ); 
    955  
    956     return TransportInfo(tinfo); 
     952    pjsua_transport_info pj_tinfo; 
     953    TransportInfo tinfo; 
     954 
     955    PJSUA2_CHECK_EXPR( pjsua_transport_get_info(id, &pj_tinfo) ); 
     956    tinfo.fromPj(pj_tinfo); 
     957 
     958    return tinfo; 
    957959} 
    958960 
Note: See TracChangeset for help on using the changeset viewer.