Changeset 2129
- Timestamp:
- Jul 13, 2008 11:51:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r2039 r2129 285 285 ioqueue = pjmedia_endpt_get_ioqueue(endpt); 286 286 287 if (name==NULL) 288 name = "udp%p"; 289 287 290 /* Create transport structure */ 288 291 pool = pjmedia_endpt_create_pool(endpt, name, 512, 512); … … 290 293 return PJ_ENOMEM; 291 294 292 if (!name)293 name = pool->obj_name;294 295 295 tp = PJ_POOL_ZALLOC_T(pool, struct transport_udp); 296 296 tp->pool = pool; 297 297 tp->options = options; 298 pj_ ansi_strncpy(tp->base.name, name, PJ_MAX_OBJ_NAME-1);298 pj_memcpy(tp->base.name, pool->obj_name, PJ_MAX_OBJ_NAME); 299 299 tp->base.op = &transport_udp_op; 300 300 tp->base.type = PJMEDIA_TRANSPORT_TYPE_UDP;
Note: See TracChangeset
for help on using the changeset viewer.