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

Close #2126: Initial implementation of RTCP Feedback.

File:
1 edited

Legend:

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

    r5788 r5820  
    2929static const pj_str_t ID_IP4 = { "IP4", 3}; 
    3030static const pj_str_t ID_IP6 = { "IP6", 3}; 
    31 static const pj_str_t ID_RTP_AVP = { "RTP/AVP", 7 }; 
    32 static const pj_str_t ID_RTP_SAVP = { "RTP/SAVP", 8 }; 
    3331//static const pj_str_t ID_SDP_NAME = { "pjmedia", 7 }; 
    3432static const pj_str_t ID_RTPMAP = { "rtpmap", 6 }; 
     
    240238        return PJMEDIA_SDPNEG_EINVANSTP; 
    241239 
    242     if (pj_stricmp(&local_m->desc.transport, &ID_RTP_AVP) == 0) { 
    243  
    244         si->proto = PJMEDIA_TP_PROTO_RTP_AVP; 
    245  
    246     } else if (pj_stristr(&local_m->desc.transport, &ID_RTP_SAVP)) { 
    247  
    248         si->proto = PJMEDIA_TP_PROTO_RTP_SAVP; 
    249  
    250     } else { 
    251  
    252         si->proto = PJMEDIA_TP_PROTO_UNKNOWN; 
     240    /* Get the transport protocol */ 
     241    si->proto = pjmedia_sdp_transport_get_proto(&local_m->desc.transport); 
     242 
     243    /* Return success if transport protocol is not RTP/AVP compatible */ 
     244    if (!PJMEDIA_TP_PROTO_HAS_FLAG(si->proto, PJMEDIA_TP_PROTO_RTP_AVP)) 
    253245        return PJ_SUCCESS; 
    254     } 
    255246 
    256247 
Note: See TracChangeset for help on using the changeset viewer.