Changeset 4538 for pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
- Timestamp:
- Jun 19, 2013 9:06:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
r4350 r4538 226 226 pj_pool_t *pool; 227 227 pj_ice_strans_cb ice_st_cb; 228 pj_ice_strans_cfg ice_st_cfg; 228 229 struct transport_ice *tp_ice; 229 230 pj_status_t status; … … 246 247 tp_ice->use_ice = PJ_FALSE; 247 248 249 pj_memcpy(&ice_st_cfg, cfg, sizeof(pj_ice_strans_cfg)); 248 250 if (cb) 249 251 pj_memcpy(&tp_ice->cb, cb, sizeof(pjmedia_ice_cb)); … … 259 261 ice_st_cb.on_rx_data = &ice_on_rx_data; 260 262 263 /* Configure RTP socket buffer settings, if not set */ 264 if (ice_st_cfg.comp[COMP_RTP-1].so_rcvbuf_size == 0) { 265 ice_st_cfg.comp[COMP_RTP-1].so_rcvbuf_size = 266 PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE; 267 } 268 if (ice_st_cfg.comp[COMP_RTP-1].so_sndbuf_size == 0) { 269 ice_st_cfg.comp[COMP_RTP-1].so_sndbuf_size = 270 PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE; 271 } 272 261 273 /* Create ICE */ 262 status = pj_ice_strans_create(name, cfg, comp_cnt, tp_ice,274 status = pj_ice_strans_create(name, &ice_st_cfg, comp_cnt, tp_ice, 263 275 &ice_st_cb, &tp_ice->ice_st); 264 276 if (status != PJ_SUCCESS) {
Note: See TracChangeset
for help on using the changeset viewer.