Changeset 4537 for pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r4197 r4537 503 503 "Error generating RTCP SDES")); 504 504 } else { 505 len += sdes_len;505 len += (int)sdes_len; 506 506 } 507 507 } … … 518 518 "Error generating RTCP BYE")); 519 519 } else { 520 len += bye_len;520 len += (int)bye_len; 521 521 } 522 522 } … … 607 607 /* Check for errors */ 608 608 if (bytes_read < 0) { 609 LOGERR_((channel->port.info.name.ptr, "RTP recv() error", -bytes_read)); 609 LOGERR_((channel->port.info.name.ptr, "RTP recv() error", 610 (pj_status_t)-bytes_read)); 610 611 return; 611 612 } … … 616 617 617 618 /* Update RTP and RTCP session. */ 618 status = pjmedia_rtp_decode_rtp(&channel->rtp, pkt, bytes_read,619 status = pjmedia_rtp_decode_rtp(&channel->rtp, pkt, (int)bytes_read, 619 620 &hdr, &payload, &payloadlen); 620 621 if (status != PJ_SUCCESS) { … … 778 779 if (bytes_read < 0) { 779 780 LOGERR_((stream->cname.ptr, "RTCP recv() error", 780 -bytes_read));781 (pj_status_t)-bytes_read)); 781 782 return; 782 783 } … … 870 871 channel->pt, 871 872 (has_more_data == PJ_FALSE ? 1 : 0), 872 frame_out.size,873 (int)frame_out.size, 873 874 rtp_ts_len, 874 875 (const void**)&rtphdr, … … 900 901 } 901 902 902 pjmedia_rtcp_tx_rtp(&stream->rtcp, frame_out.size);903 pjmedia_rtcp_tx_rtp(&stream->rtcp, (unsigned)frame_out.size); 903 904 total_sent += frame_out.size; 904 905 pkt_cnt++; … … 1072 1073 status = pjmedia_vid_codec_decode(stream->codec, cnt, 1073 1074 stream->rx_frames, 1074 frame->size, frame);1075 (unsigned)frame->size, frame); 1075 1076 if (status != PJ_SUCCESS) { 1076 1077 LOGERR_((channel->port.info.name.ptr, "codec decode() error", … … 1292 1293 min_out_pkt_size = sizeof(pjmedia_rtcp_sr_pkt) + 1293 1294 sizeof(pjmedia_rtcp_common) + 1294 (4 + stream->cname.slen) +1295 (4 + (unsigned)stream->cname.slen) + 1295 1296 32; 1296 1297 … … 1600 1601 stream->out_rtcp_pkt_size = sizeof(pjmedia_rtcp_sr_pkt) + 1601 1602 sizeof(pjmedia_rtcp_common) + 1602 (4 + stream->cname.slen) +1603 (4 + (unsigned)stream->cname.slen) + 1603 1604 32; 1604 1605 if (stream->out_rtcp_pkt_size > PJMEDIA_MAX_MTU)
Note: See TracChangeset
for help on using the changeset viewer.