Changeset 4337
- Timestamp:
- Jan 29, 2013 8:24:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c
r4334 r4337 1647 1647 */ 1648 1648 if (old_cp->setting.frm_per_pkt != new_cp->setting.frm_per_pkt || 1649 /* old_cp->setting.vad != new_cp->setting.vad || */1649 old_cp->setting.vad != new_cp->setting.vad || 1650 1650 old_cp->setting.cng != new_cp->setting.cng || 1651 1651 old_cp->setting.plc != new_cp->setting.plc || … … 1741 1741 if (status != PJ_SUCCESS) 1742 1742 return status; 1743 1744 /* Override ptime, if this option is specified. */ 1745 if (pjsua_var.media_cfg.ptime != 0) { 1746 si->param->setting.frm_per_pkt = (pj_uint8_t) 1747 (pjsua_var.media_cfg.ptime / si->param->info.frm_ptime); 1748 if (si->param->setting.frm_per_pkt == 0) 1749 si->param->setting.frm_per_pkt = 1; 1750 } 1751 1752 /* Disable VAD, if this option is specified. */ 1753 if (pjsua_var.media_cfg.no_vad) { 1754 si->param->setting.vad = 0; 1755 } 1743 1756 1744 1757 /* Get audio index from the negotiated SDP */ … … 1832 1845 } 1833 1846 } 1834 }1835 1836 /* Override ptime, if this option is specified. */1837 if (pjsua_var.media_cfg.ptime != 0) {1838 si->param->setting.frm_per_pkt = (pj_uint8_t)1839 (pjsua_var.media_cfg.ptime / si->param->info.frm_ptime);1840 if (si->param->setting.frm_per_pkt == 0)1841 si->param->setting.frm_per_pkt = 1;1842 }1843 1844 /* Disable VAD, if this option is specified. */1845 if (pjsua_var.media_cfg.no_vad) {1846 si->param->setting.vad = 0;1847 1847 } 1848 1848
Note: See TracChangeset
for help on using the changeset viewer.