Changeset 5101
- Timestamp:
- May 28, 2015 7:07:17 AM (9 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r5043 r5101 227 227 228 228 pj_uint32_t rtp_rx_last_ts; /**< Last received RTP timestamp*/ 229 pj_status_t rtp_rx_last_err; /**< Last RTP recv() error */ 229 230 }; 230 231 … … 1632 1633 /* Check for errors */ 1633 1634 if (bytes_read < 0) { 1634 LOGERR_((stream->port.info.name.ptr, "RTP recv() error", 1635 (pj_status_t)-bytes_read)); 1635 status = (pj_status_t)-bytes_read; 1636 if (stream->rtp_rx_last_err != status) { 1637 char errmsg[PJ_ERR_MSG_SIZE]; 1638 pj_strerror(status, errmsg, sizeof(errmsg)); 1639 PJ_LOG(4,(stream->port.info.name.ptr, 1640 "Unable to receive RTP packet, recv() returned %d: %s", 1641 status, errmsg)); 1642 stream->rtp_rx_last_err = status; 1643 } 1636 1644 return; 1645 } else { 1646 stream->rtp_rx_last_err = PJ_SUCCESS; 1637 1647 } 1638 1648 -
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r4816 r5101 172 172 pj_uint32_t last_dec_ts; /**< Last decoded timestamp. */ 173 173 int last_dec_seq; /**< Last decoded sequence. */ 174 174 pj_status_t rtp_rx_last_err; /**< Last RTP recv() error. */ 175 175 176 176 pj_timestamp ts_freq; /**< Timestamp frequency. */ … … 607 607 /* Check for errors */ 608 608 if (bytes_read < 0) { 609 LOGERR_((channel->port.info.name.ptr, "RTP recv() error", 610 (pj_status_t)-bytes_read)); 609 status = (pj_status_t)-bytes_read; 610 if (stream->rtp_rx_last_err != status) { 611 char errmsg[PJ_ERR_MSG_SIZE]; 612 pj_strerror(status, errmsg, sizeof(errmsg)); 613 PJ_LOG(4,(channel->port.info.name.ptr, 614 "Unable to receive RTP packet, recv() returned %d: %s", 615 status, errmsg)); 616 stream->rtp_rx_last_err = status; 617 } 611 618 return; 619 } else { 620 stream->rtp_rx_last_err = PJ_SUCCESS; 612 621 } 613 622
Note: See TracChangeset
for help on using the changeset viewer.