Changeset 4816 for pjproject/trunk


Ignore:
Timestamp:
Apr 14, 2014 8:14:11 AM (11 years ago)
Author:
bennylp
Message:

Misc (re #1751): do not update RTCP TX statistic if sending RTP in stream (audio and video) fails

Location:
pjproject/trunk/pjmedia/src/pjmedia
Files:
2 edited

Legend:

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

    r4788 r4816  
    13901390        PJ_PERROR(4,(stream->port.info.name.ptr, status, 
    13911391                     "Error sending RTP")); 
     1392        return PJ_SUCCESS; 
    13921393    } 
    13931394 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c

    r4809 r4816  
    988988 
    989989    /* Update stat */ 
    990     stream->rtcp.stat.rtp_tx_last_ts = pj_ntohl(stream->enc->rtp.out_hdr.ts); 
    991     stream->rtcp.stat.rtp_tx_last_seq = pj_ntohs(stream->enc->rtp.out_hdr.seq); 
     990    if (pkt_cnt) { 
     991        stream->rtcp.stat.rtp_tx_last_ts = 
     992                pj_ntohl(stream->enc->rtp.out_hdr.ts); 
     993        stream->rtcp.stat.rtp_tx_last_seq = 
     994                pj_ntohs(stream->enc->rtp.out_hdr.seq); 
     995    } 
    992996 
    993997#if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 
Note: See TracChangeset for help on using the changeset viewer.