Changeset 4580 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Aug 6, 2013 8:02:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r4525 r4580 1280 1280 pjsua_transport_config tcp_cfg; 1281 1281 unsigned i; 1282 pj_pool_t *tmp_pool; 1282 1283 pj_status_t status; 1283 1284 … … 1289 1290 /* Create pool for application */ 1290 1291 app_config.pool = pjsua_pool_create("pjsua-app", 1000, 1000); 1292 tmp_pool = pjsua_pool_create("tmp-pjsua", 1000, 1000);; 1291 1293 1292 1294 /* Init CLI & its FE settings */ … … 1300 1302 /** Parse args **/ 1301 1303 status = load_config(app_cfg.argc, app_cfg.argv, &uri_arg); 1302 if (status != PJ_SUCCESS) 1304 if (status != PJ_SUCCESS) { 1305 pj_pool_release(tmp_pool); 1303 1306 return status; 1307 } 1304 1308 1305 1309 /* Initialize application callbacks */ … … 1340 1344 status = pjsua_init(&app_config.cfg, &app_config.log_cfg, 1341 1345 &app_config.media_cfg); 1342 if (status != PJ_SUCCESS) 1346 if (status != PJ_SUCCESS) { 1347 pj_pool_release(tmp_pool); 1343 1348 return status; 1349 } 1344 1350 1345 1351 /* Initialize our module to handle otherwise unhandled request */ … … 1588 1594 if (PJMEDIA_HAS_VIDEO) { 1589 1595 pjsua_acc_config acc_cfg; 1590 pjsua_acc_get_config(aid, &acc_cfg);1596 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1591 1597 app_config_init_video(&acc_cfg); 1592 1598 pjsua_acc_modify(aid, &acc_cfg); … … 1627 1633 if (PJMEDIA_HAS_VIDEO) { 1628 1634 pjsua_acc_config acc_cfg; 1629 pjsua_acc_get_config(aid, &acc_cfg);1635 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1630 1636 app_config_init_video(&acc_cfg); 1631 1637 if (app_config.ipv6) … … 1661 1667 if (PJMEDIA_HAS_VIDEO) { 1662 1668 pjsua_acc_config acc_cfg; 1663 pjsua_acc_get_config(aid, &acc_cfg);1669 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1664 1670 app_config_init_video(&acc_cfg); 1665 1671 pjsua_acc_modify(aid, &acc_cfg); … … 1686 1692 if (PJMEDIA_HAS_VIDEO) { 1687 1693 pjsua_acc_config acc_cfg; 1688 pjsua_acc_get_config(aid, &acc_cfg);1694 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1689 1695 app_config_init_video(&acc_cfg); 1690 1696 if (app_config.ipv6) … … 1721 1727 if (PJMEDIA_HAS_VIDEO) { 1722 1728 pjsua_acc_config acc_cfg; 1723 pjsua_acc_get_config(acc_id, &acc_cfg);1729 pjsua_acc_get_config(acc_id, tmp_pool, &acc_cfg); 1724 1730 app_config_init_video(&acc_cfg); 1725 1731 pjsua_acc_modify(acc_id, &acc_cfg); … … 1745 1751 if (PJMEDIA_HAS_VIDEO) { 1746 1752 pjsua_acc_config acc_cfg; 1747 pjsua_acc_get_config(aid, &acc_cfg);1753 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1748 1754 app_config_init_video(&acc_cfg); 1749 1755 if (app_config.ipv6) … … 1830 1836 call_opt.vid_cnt = app_config.vid.vid_cnt; 1831 1837 1838 pj_pool_release(tmp_pool); 1832 1839 return PJ_SUCCESS; 1833 1840 1834 1841 on_error: 1842 pj_pool_release(tmp_pool); 1835 1843 app_destroy(); 1836 1844 return status;
Note: See TracChangeset
for help on using the changeset viewer.