Ignore:
Timestamp:
Jan 15, 2016 3:32:26 AM (9 years ago)
Author:
nanang
Message:

Misc (re #1882): Suppress EAGAIN recv() error log in pjmedia stream.c & vid_stream.c (thanks Christian Ambach for the patch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c

    r5101 r5234  
    608608    if (bytes_read < 0) { 
    609609        status = (pj_status_t)-bytes_read; 
     610        if (status == PJ_STATUS_FROM_OS(OSERR_EWOULDBLOCK)) { 
     611            return; 
     612        } 
    610613        if (stream->rtp_rx_last_err != status) { 
    611614            char errmsg[PJ_ERR_MSG_SIZE]; 
     
    787790    /* Check for errors */ 
    788791    if (bytes_read < 0) { 
    789         LOGERR_((stream->cname.ptr, "RTCP recv() error",  
    790                  (pj_status_t)-bytes_read)); 
     792        if (bytes_read != -PJ_STATUS_FROM_OS(OSERR_EWOULDBLOCK)) { 
     793            LOGERR_((stream->cname.ptr, "RTCP recv() error", 
     794                    (pj_status_t)-bytes_read)); 
     795        } 
    791796        return; 
    792797    } 
Note: See TracChangeset for help on using the changeset viewer.