Changeset 1666


Ignore:
Timestamp:
Jan 7, 2008 1:50:22 PM (16 years ago)
Author:
bennylp
Message:

Assertion error in streamutil sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/streamutil.c

    r974 r1666  
    145145    pj_memcpy(&info.rem_addr, rem_addr, sizeof(pj_sockaddr_in)); 
    146146 
     147    /* If remote address is not set, set to an arbitrary address 
     148     * (otherwise stream will assert). 
     149     */ 
     150    if (info.rem_addr.addr.sa_family == 0) { 
     151        const pj_str_t addr = pj_str("127.0.0.1"); 
     152        pj_sockaddr_in_init(&info.rem_addr.ipv4, &addr, 0); 
     153    } 
    147154 
    148155    /* Create media transport */ 
Note: See TracChangeset for help on using the changeset viewer.