Changeset 5788 for pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
- Timestamp:
- May 9, 2018 6:58:48 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r5752 r5788 219 219 pj_bool_t with_bye); 220 220 221 static void on_rx_rtcp( void *data, 222 void *pkt, 223 pj_ssize_t bytes_read); 221 224 222 225 #if TRACE_JB … … 650 653 stream->rtcp.stat.rx.discard++; 651 654 return; 655 } 656 657 /* Check if multiplexing is allowed and the payload indicates RTCP. */ 658 if (stream->info.rtcp_mux && hdr->pt >= 64 && hdr->pt <= 95) { 659 on_rx_rtcp(stream, pkt, bytes_read); 660 return; 652 661 } 653 662 … … 1737 1746 pj_sockaddr_cp(&att_param.rem_addr, &info->rem_addr); 1738 1747 pj_sockaddr_cp(&stream->rem_rtp_addr, &info->rem_addr); 1739 if (pj_sockaddr_has_addr(&info->rem_rtcp.addr)) 1740 pj_sockaddr_cp(&att_param.rem_rtcp, &info->rem_rtcp); 1748 if (info->rtcp_mux) { 1749 pj_sockaddr_cp(&att_param.rem_rtcp, &info->rem_addr); 1750 } else if (pj_sockaddr_has_addr(&info->rem_rtcp.addr)) { 1751 pj_sockaddr_cp(&att_param.rem_rtcp, &info->rem_rtcp); 1752 } 1741 1753 att_param.addr_len = pj_sockaddr_get_len(&info->rem_addr); 1742 1754 att_param.rtp_cb2 = &on_rx_rtp;
Note: See TracChangeset
for help on using the changeset viewer.