Changeset 5968


Ignore:
Timestamp:
Apr 15, 2019 2:53:52 AM (6 years ago)
Author:
ming
Message:

Fixed #2188: RTCP RR not generated if stream's encoder channel is paused

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

Legend:

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

    r5845 r5968  
    20502050 
    20512051    /* Check if now is the time to transmit RTCP SR/RR report. 
    2052      * We only do this when stream direction is "decoding only", 
     2052     * We only do this when stream direction is "decoding only" or 
     2053     * if the encoder is paused, 
    20532054     * because otherwise check_tx_rtcp() will be handled by put_frame() 
    20542055     */ 
    2055     if (stream->dir == PJMEDIA_DIR_DECODING) { 
     2056    if (stream->dir == PJMEDIA_DIR_DECODING || stream->enc->paused) { 
    20562057        check_tx_rtcp(stream, pj_ntohl(hdr->ts)); 
    20572058    } 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c

    r5960 r5968  
    817817 
    818818    /* Check if now is the time to transmit RTCP SR/RR report. 
    819      * We only do this when stream direction is "decoding only",  
     819     * We only do this when stream direction is "decoding only" or 
     820     * if the encoder is paused, 
    820821     * because otherwise check_tx_rtcp() will be handled by put_frame() 
    821822     */ 
    822     if (stream->dir == PJMEDIA_DIR_DECODING) { 
     823    if (stream->dir == PJMEDIA_DIR_DECODING || stream->enc->paused) { 
    823824        check_tx_rtcp(stream, pj_ntohl(hdr->ts)); 
    824825    } 
Note: See TracChangeset for help on using the changeset viewer.