Changeset 1266 for pjproject/trunk/pjmedia/src/pjmedia/null_port.c
- Timestamp:
- May 11, 2007 3:14:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/null_port.c
r974 r1266 45 45 PJ_ASSERT_RETURN(pool && p_port, PJ_EINVAL); 46 46 47 port = pj_pool_zalloc(pool, sizeof(pjmedia_port));47 port = PJ_POOL_ZALLOC_T(pool, pjmedia_port); 48 48 PJ_ASSERT_RETURN(pool != NULL, PJ_ENOMEM); 49 49 … … 84 84 frame->size = this_port->info.samples_per_frame * 2; 85 85 frame->timestamp.u32.lo += this_port->info.samples_per_frame; 86 pjmedia_zero_samples(frame->buf, this_port->info.samples_per_frame); 86 pjmedia_zero_samples((pj_int16_t*)frame->buf, 87 this_port->info.samples_per_frame); 87 88 88 89 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.