Changeset 2100 for pjproject


Ignore:
Timestamp:
Jul 4, 2008 4:39:58 PM (16 years ago)
Author:
bennylp
Message:

Fixed crash in stream.c when it tries to send RTCP BYE when stream initialization fails

File:
1 edited

Legend:

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

    r2039 r2100  
    18271827 
    18281828    /* Send RTCP BYE */ 
    1829     len = create_rtcp_bye(stream, (pj_uint8_t*)stream->enc->out_pkt,  
    1830                           stream->enc->out_pkt_size); 
    1831     if (len != 0) { 
    1832         pjmedia_transport_send_rtcp(stream->transport,  
    1833                                     stream->enc->out_pkt, len); 
     1829    if (stream->enc && stream->transport) { 
     1830        len = create_rtcp_bye(stream, (pj_uint8_t*)stream->enc->out_pkt, 
     1831                              stream->enc->out_pkt_size); 
     1832        if (len != 0) { 
     1833            pjmedia_transport_send_rtcp(stream->transport,  
     1834                                        stream->enc->out_pkt, len); 
     1835        } 
    18341836    } 
    18351837 
Note: See TracChangeset for help on using the changeset viewer.