Changeset 5853 for pjproject


Ignore:
Timestamp:
Aug 3, 2018 9:21:51 AM (9 months ago)
Author:
ming
Message:

Re #2096: re r5852, fixed assertion in pj_sockaddr_cp() because the address can actually be zero if we haven't received any packets

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/transport.h

    r5788 r5853  
    554554    /** 
    555555     * Remote address where RTP/RTCP originated from. In case this transport 
    556      * hasn't ever received packet, the  
     556     * hasn't ever received packet, the address can be invalid (zero). 
    557557     */ 
    558558    pj_sockaddr     src_rtp_name; 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c

    r5852 r5853  
    17661766     */ 
    17671767    if (tp_ice->use_ice || tp_ice->rtp_src_cnt) { 
    1768         pj_sockaddr_cp(&info->src_rtp_name, &tp_ice->rtp_src_addr); 
     1768        info->src_rtp_name = tp_ice->rtp_src_addr; 
    17691769        if (tp_ice->use_rtcp_mux) 
    1770             pj_sockaddr_cp(&info->src_rtcp_name, &tp_ice->rtp_src_addr); 
     1770            info->src_rtcp_name = tp_ice->rtp_src_addr; 
    17711771    } 
    17721772    if ((!tp_ice->use_rtcp_mux) && 
    17731773        (tp_ice->use_ice || tp_ice->rtcp_src_cnt)) 
    17741774    { 
    1775         pj_sockaddr_cp(&info->src_rtcp_name, &tp_ice->rtcp_src_addr); 
     1775        info->src_rtcp_name = tp_ice->rtcp_src_addr; 
    17761776    } 
    17771777 
Note: See TracChangeset for help on using the changeset viewer.