Changeset 6116


Ignore:
Timestamp:
Dec 6, 2019 5:57:48 AM (5 years ago)
Author:
nanang
Message:

Misc (#2210): Put back PJMEDIA_STREAM_CHECK_RTP_PT feature in stream (introduced in #1160).

File:
1 edited

Legend:

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

    r6106 r6116  
    17611761    unsigned payloadlen; 
    17621762    pjmedia_rtp_status seq_st; 
     1763    pj_bool_t check_pt; 
    17631764    pj_status_t status; 
    17641765    pj_bool_t pkt_discarded = PJ_FALSE; 
     
    18091810     * the incoming packet. 
    18101811     */ 
    1811     pjmedia_rtp_session_update2(&channel->rtp, hdr, &seq_st, 
    1812                                 hdr->pt != stream->rx_event_pt); 
     1812    check_pt = (hdr->pt != stream->rx_event_pt) && PJMEDIA_STREAM_CHECK_RTP_PT; 
     1813    pjmedia_rtp_session_update2(&channel->rtp, hdr, &seq_st, check_pt); 
     1814#if !PJMEDIA_STREAM_CHECK_RTP_PT  
     1815    if (!check_pt && hdr->pt != channel->rtp.out_pt && 
     1816        hdr->pt != stream->rx_event_pt)  
     1817    {  
     1818        seq_st.status.flag.badpt = 1;  
     1819    }  
     1820#endif  
    18131821    if (seq_st.status.value) { 
    18141822        TRC_  ((stream->port.info.name.ptr, 
Note: See TracChangeset for help on using the changeset viewer.