Changeset 1266 for pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
- Timestamp:
- May 11, 2007 3:14:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
r1177 r1266 123 123 struct gsm_data 124 124 { 125 void*encoder;126 void*decoder;125 gsm_state *encoder; 126 gsm_state *decoder; 127 127 pj_bool_t plc_enabled; 128 128 #if !PLC_DISABLED … … 324 324 pj_list_erase(codec); 325 325 } else { 326 codec = pj_pool_zalloc(gsm_codec_factory.pool, 327 sizeof(pjmedia_codec)); 326 codec = PJ_POOL_ZALLOC_T(gsm_codec_factory.pool, pjmedia_codec); 328 327 PJ_ASSERT_RETURN(codec != NULL, PJ_ENOMEM); 329 328 codec->op = &gsm_op; 330 329 codec->factory = factory; 331 330 332 gsm_data = pj_pool_zalloc(gsm_codec_factory.pool, 333 sizeof(struct gsm_data)); 331 gsm_data = PJ_POOL_ZALLOC_T(gsm_codec_factory.pool, struct gsm_data); 334 332 codec->codec_data = gsm_data; 335 333 … … 372 370 PJ_ASSERT_RETURN(factory == &gsm_codec_factory.base, PJ_EINVAL); 373 371 374 gsm_data = codec->codec_data;372 gsm_data = (struct gsm_data*) codec->codec_data; 375 373 376 374 /* Close codec, if it's not closed. */ … … 418 416 pjmedia_codec_param *attr ) 419 417 { 420 struct gsm_data *gsm_data = codec->codec_data;418 struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data; 421 419 422 420 pj_assert(gsm_data != NULL); … … 442 440 static pj_status_t gsm_codec_close( pjmedia_codec *codec ) 443 441 { 444 struct gsm_data *gsm_data = codec->codec_data;442 struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data; 445 443 446 444 pj_assert(gsm_data != NULL); … … 465 463 const pjmedia_codec_param *attr ) 466 464 { 467 struct gsm_data *gsm_data = codec->codec_data;465 struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data; 468 466 469 467 pj_assert(gsm_data != NULL); … … 517 515 struct pjmedia_frame *output) 518 516 { 519 struct gsm_data *gsm_data = codec->codec_data;517 struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data; 520 518 521 519 pj_assert(gsm_data != NULL); … … 536 534 537 535 is_silence = pjmedia_silence_det_detect(gsm_data->vad, 538 input->buf,536 (const pj_int16_t*) input->buf, 539 537 (input->size >> 1), 540 538 NULL); … … 571 569 struct pjmedia_frame *output) 572 570 { 573 struct gsm_data *gsm_data = codec->codec_data;571 struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data; 574 572 575 573 pj_assert(gsm_data != NULL);
Note: See TracChangeset
for help on using the changeset viewer.