Changeset 5101 for pjproject/trunk/pjmedia/src/pjmedia/stream.c
- Timestamp:
- May 28, 2015 7:07:17 AM (9 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.