Changeset 1266 for pjproject/trunk/pjmedia/src/pjmedia/plc_common.c
- Timestamp:
- May 11, 2007 3:14:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/plc_common.c
r974 r1266 87 87 PJ_UNUSED_ARG(options); 88 88 89 plc = pj_pool_zalloc(pool, sizeof(pjmedia_plc));89 plc = PJ_POOL_ZALLOC_T(pool, pjmedia_plc); 90 90 91 91 if (0) … … 151 151 PJ_UNUSED_ARG(clock_rate); 152 152 153 o = pj_pool_alloc(pool, sizeof(struct replay_plc));153 o = PJ_POOL_ALLOC_T(pool, struct replay_plc); 154 154 o->size = samples_per_frame * 2; 155 155 o->replay_cnt = 0; 156 o->frame = pj_pool_zalloc(pool, o->size);156 o->frame = (pj_int16_t*) pj_pool_zalloc(pool, o->size); 157 157 158 158 return o; … … 161 161 static void plc_replay_save(void *plc, pj_int16_t *frame) 162 162 { 163 struct replay_plc *o = plc;163 struct replay_plc *o = (struct replay_plc*) plc; 164 164 165 165 pj_memcpy(o->frame, frame, o->size); … … 169 169 static void plc_replay_generate(void *plc, pj_int16_t *frame) 170 170 { 171 struct replay_plc *o = plc;171 struct replay_plc *o = (struct replay_plc*) plc; 172 172 unsigned i, count; 173 173 pj_int16_t *samp;
Note: See TracChangeset
for help on using the changeset viewer.