Changeset 569
- Timestamp:
- Jun 29, 2006 3:42:57 PM (18 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/rtcp.c
r567 r569 134 134 pj_time_val now; 135 135 136 /* Reset packet */ 137 pj_memset(rtcp_pkt, 0, sizeof(pjmedia_rtcp_pkt)); 138 139 /* Reset statistics */ 140 pj_memset(&sess->stat, 0, sizeof(pjmedia_rtcp_stat)); 141 sess->avg_jitter = 0; 136 /* Memset everything */ 137 pj_memset(sess, 0, sizeof(pjmedia_rtcp_session)); 142 138 143 139 /* Last RX timestamp in RTP packet */ … … 151 147 sess->pkt_size = samples_per_frame; 152 148 153 /* Init time */154 sess->rx_lsr = 0;155 sess->rx_lsr_time.u64 = 0;156 157 149 /* Init common RTCP header */ 158 150 rtcp_pkt->common.version = 2; -
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r568 r569 458 458 rtpmap->clock_rate, 459 459 (rtpmap->param.slen ? "/" : ""), 460 rtpmap->param.slen,460 (int)rtpmap->param.slen, 461 461 rtpmap->param.ptr); 462 462 -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r568 r569 683 683 * in the RTP socket. 684 684 */ 685 static void on_rx_rtp( pjmedia_stream *stream,685 static void on_rx_rtp( void *data, 686 686 const void *pkt, 687 687 pj_ssize_t bytes_read) 688 688 689 689 { 690 pjmedia_stream *stream = data; 690 691 pjmedia_channel *channel = stream->dec; 691 692 const pjmedia_rtp_hdr *hdr; … … 825 826 * in the RTCP socket. 826 827 */ 827 static void on_rx_rtcp( pjmedia_stream *stream,828 static void on_rx_rtcp( void *data, 828 829 const void *pkt, 829 830 pj_ssize_t bytes_read) 830 831 { 832 pjmedia_stream *stream = data; 833 831 834 /* Check for errors */ 832 835 if (bytes_read < 0) { … … 1068 1071 1069 1072 /* Only attach transport when stream is ready. */ 1070 status = (*tp->op->attach)(tp, stream, &info->rem_addr, &info->rem_rtcp,1071 sizeof(info->rem_addr), &on_rx_rtp,1072 1073 status = pjmedia_transport_attach(tp, stream, &info->rem_addr, 1074 &info->rem_rtcp, sizeof(info->rem_addr), 1075 &on_rx_rtp, &on_rx_rtcp); 1073 1076 if (status != PJ_SUCCESS) 1074 1077 goto err_cleanup;
Note: See TracChangeset
for help on using the changeset viewer.