Changeset 4334


Ignore:
Timestamp:
Jan 25, 2013 6:31:05 AM (11 years ago)
Author:
ming
Message:

Re #1568: Fixed is_media_changed() detection when pjsua_media_cfg.no_vad is set to PJ_TRUE and fixed the string duplication of encoding name
Thanks to Hideo and Fredrik for the reports.

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/session.c

    r4329 r4334  
    672672              si->stream_cnt * sizeof(pjmedia_stream_info)); 
    673673 
    674     /* Clone codec param */ 
     674    /* Clone codec param and format info */ 
    675675    for (i=0; i<(int)si->stream_cnt; ++i) { 
     676        pj_strdup(pool, &session->stream_info[i].fmt.encoding_name, 
     677                  &si->stream_info[i].fmt.encoding_name); 
    676678        if (session->stream_info[i].param) { 
    677679            session->stream_info[i].param = 
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c

    r4329 r4334  
    16421642    } 
    16431643 
    1644     /* Compare codec param */ 
     1644    /* Compare codec param 
     1645     * Disable checking of VAD setting since VAD setting can be overwritten 
     1646     * by application setting in pjsua_media_cfg. 
     1647     */ 
    16451648    if (old_cp->setting.frm_per_pkt != new_cp->setting.frm_per_pkt || 
    1646         old_cp->setting.vad != new_cp->setting.vad || 
     1649        /* old_cp->setting.vad != new_cp->setting.vad || */ 
    16471650        old_cp->setting.cng != new_cp->setting.cng || 
    16481651        old_cp->setting.plc != new_cp->setting.plc || 
Note: See TracChangeset for help on using the changeset viewer.