Ignore:
Timestamp:
Jul 12, 2018 8:22:31 AM (15 months ago)
Author:
nanang
Message:

Close #2126: Initial implementation of RTCP Feedback.

File:
1 edited

Legend:

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

    r5788 r5820  
    3737/* Maximum pending write operations */ 
    3838#define MAX_PENDING 4 
    39  
    40 static const pj_str_t ID_RTP_AVP  = { "RTP/AVP", 7 }; 
    4139 
    4240/* Pending write buffer */ 
     
    10311029    if ((udp->media_options & PJMEDIA_TPMED_NO_TRANSPORT_CHECKING) == 0) { 
    10321030        pjmedia_sdp_media *m_rem, *m_loc; 
     1031        pj_uint32_t tp_proto_loc, tp_proto_rem; 
    10331032 
    10341033        m_rem = rem_sdp? rem_sdp->media[media_index] : NULL; 
    10351034        m_loc = sdp_local->media[media_index]; 
    10361035 
    1037         if (pj_stricmp(&m_loc->desc.transport, &ID_RTP_AVP) || 
    1038            (m_rem && pj_stricmp(&m_rem->desc.transport, &ID_RTP_AVP))) 
     1036        tp_proto_loc = pjmedia_sdp_transport_get_proto(&m_loc->desc.transport); 
     1037        tp_proto_rem = m_rem?  
     1038                pjmedia_sdp_transport_get_proto(&m_rem->desc.transport) : 0; 
     1039        PJMEDIA_TP_PROTO_TRIM_FLAG(tp_proto_loc, PJMEDIA_TP_PROFILE_RTCP_FB); 
     1040        PJMEDIA_TP_PROTO_TRIM_FLAG(tp_proto_rem, PJMEDIA_TP_PROFILE_RTCP_FB); 
     1041 
     1042        if ((tp_proto_loc != PJMEDIA_TP_PROTO_RTP_AVP) || 
     1043            (m_rem && tp_proto_rem != PJMEDIA_TP_PROTO_RTP_AVP)) 
    10391044        { 
    10401045            pjmedia_sdp_media_deactivate(pool, m_loc); 
Note: See TracChangeset for help on using the changeset viewer.