Ignore:
Timestamp:
Dec 1, 2007 9:12:09 AM (12 years ago)
Author:
bennylp
Message:

Updated media transport because of changes in pjlib API (due to IPv6/ticket #415)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r1457 r1607  
    250250    /* If address is 0.0.0.0, use host's IP address */ 
    251251    if (tp->rtp_addr_name.sin_addr.s_addr == 0) { 
    252         pj_in_addr hostip; 
    253  
    254         status = pj_gethostip(&hostip); 
     252        pj_sockaddr hostip; 
     253 
     254        status = pj_gethostip(pj_AF_INET(), &hostip); 
    255255        if (status != PJ_SUCCESS) 
    256256            goto on_error; 
    257257 
    258         tp->rtp_addr_name.sin_addr = hostip; 
     258        tp->rtp_addr_name.sin_addr.s_addr = hostip.ipv4.sin_addr.s_addr; 
    259259    } 
    260260 
Note: See TracChangeset for help on using the changeset viewer.