- Timestamp:
- Jan 2, 2008 8:28:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
r1559 r1656 94 94 &pjmedia_ice_destroy 95 95 }; 96 97 static const pj_str_t STR_CANDIDATE = {"candidate", 9}; 98 static const pj_str_t STR_ICE_LITE = {"ice-lite", 8}; 99 static const pj_str_t STR_ICE_MISMATCH = {"ice-mismatch", 12}; 96 100 97 101 … … 468 472 const pjmedia_sdp_attr *attr; 469 473 unsigned i, cand_cnt; 470 pj_ice_sess_cand cand[PJ_ICE_MAX_CAND];474 pj_ice_sess_cand *cand; 471 475 const pjmedia_sdp_media *sdp_med; 472 476 pj_bool_t remote_is_lite = PJ_FALSE; … … 475 479 pj_sockaddr conn_addr; 476 480 pj_bool_t conn_found_in_candidate = PJ_FALSE; 477 const pj_str_t STR_CANDIDATE = {"candidate", 9};478 const pj_str_t STR_ICE_LITE = {"ice-lite", 8};479 const pj_str_t STR_ICE_MISMATCH = {"ice-mismatch", 12};480 481 pj_str_t uname, pass; 481 482 pj_status_t status; … … 530 531 pass = attr->value; 531 532 533 /* Allocate candidate array */ 534 cand = (pj_ice_sess_cand*) 535 pj_pool_calloc(pool, PJ_ICE_MAX_CAND, sizeof(pj_ice_sess_cand)); 536 532 537 /* Get all candidates in the media */ 533 538 cand_cnt = 0; 534 for (i=0; i<sdp_med->attr_count ; ++i) {539 for (i=0; i<sdp_med->attr_count && cand_cnt < PJ_ICE_MAX_CAND; ++i) { 535 540 pjmedia_sdp_attr *attr; 536 541
Note: See TracChangeset
for help on using the changeset viewer.