Changeset 2258 for pjproject/trunk/pjnath/src/pjnath/ice_strans.c
- Timestamp:
- Sep 2, 2008 7:40:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r2195 r2258 1288 1288 if (dup) { 1289 1289 /* Duplicate found, remove the srflx candidate */ 1290 unsigned idx = cand - comp->cand_list; 1291 1292 /* Update default candidate index */ 1293 if (comp->default_cand > idx) { 1294 --comp->default_cand; 1295 } else if (comp->default_cand == idx) { 1296 comp->default_cand = 0; 1297 } 1298 1299 /* Remove srflx candidate */ 1290 1300 pj_array_erase(comp->cand_list, sizeof(comp->cand_list[0]), 1291 comp->cand_cnt, cand - comp->cand_list);1301 comp->cand_cnt, idx); 1292 1302 --comp->cand_cnt; 1293 1303 } else {
Note: See TracChangeset
for help on using the changeset viewer.