Ignore:
Timestamp:
Mar 8, 2013 8:52:40 AM (12 years ago)
Author:
ming
Message:

Fixed #1637: Crash in pjsua_media_channel_update() if one media gets rejected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r4412 r4433  
    25772577            } 
    25782578 
     2579            /* Codec parameter of stream info (si->param) can be NULL if 
     2580             * the stream is rejected or disabled. 
     2581             */ 
    25792582            /* Override ptime, if this option is specified. */ 
    2580             if (pjsua_var.media_cfg.ptime != 0) { 
     2583            if (pjsua_var.media_cfg.ptime != 0 && si->param) { 
    25812584                si->param->setting.frm_per_pkt = (pj_uint8_t) 
    25822585                    (pjsua_var.media_cfg.ptime / si->param->info.frm_ptime); 
     
    25862589 
    25872590            /* Disable VAD, if this option is specified. */ 
    2588             if (pjsua_var.media_cfg.no_vad) { 
     2591            if (pjsua_var.media_cfg.no_vad && si->param) { 
    25892592                si->param->setting.vad = 0; 
    25902593            } 
Note: See TracChangeset for help on using the changeset viewer.