Changeset 538


Ignore:
Timestamp:
Jun 22, 2006 6:47:29 PM (16 years ago)
Author:
bennylp
Message:

Handle error reported by transport

File:
1 edited

Legend:

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

    r505 r538  
    696696 
    697697 
     698    /* Check for errors */ 
     699    if (bytes_read < 0) { 
     700        LOGERR_((stream->port.info.name.ptr, "RTP recv() error", -bytes_read)); 
     701        return; 
     702    } 
     703 
    698704    /* Update RTP and RTCP session. */ 
    699705    status = pjmedia_rtp_decode_rtp(&channel->rtp, pkt, bytes_read, 
     
    823829                        pj_ssize_t bytes_read) 
    824830{ 
     831    /* Check for errors */ 
     832    if (bytes_read < 0) { 
     833        LOGERR_((stream->port.info.name.ptr, "RTCP recv() error",  
     834                 -bytes_read)); 
     835        return; 
     836    } 
     837 
    825838    pjmedia_rtcp_rx_rtcp(&stream->rtcp, pkt, bytes_read); 
    826839} 
Note: See TracChangeset for help on using the changeset viewer.