Changeset 3802
- Timestamp:
- Oct 6, 2011 9:13:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r3786 r3802 110 110 111 111 pjmedia_transport *transport; /**< Stream transport. */ 112 unsigned send_err_cnt; /**< Send error count. */ 112 113 113 114 pj_mutex_t *jb_mutex; … … 812 813 sizeof(pjmedia_rtp_hdr)); 813 814 if (status != PJ_SUCCESS) { 814 LOGERR_((channel->port.info.name.ptr, 815 "Transport send_rtp() error", status)); 815 enum { COUNT_TO_REPORT = 20 }; 816 if (stream->send_err_cnt++ == 0) { 817 LOGERR_((channel->port.info.name.ptr, 818 "Transport send_rtp() error (repeated %d times)", 819 status)); 820 if (stream->send_err_cnt > COUNT_TO_REPORT) 821 stream->send_err_cnt = 0; 822 } 816 823 /* Ignore this error */ 817 824 }
Note: See TracChangeset
for help on using the changeset viewer.