Changeset 3911 for pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c
- Timestamp:
- Dec 15, 2011 6:45:23 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c
r3841 r3911 19 19 */ 20 20 #include <pjmedia-codec/passthrough.h> 21 #include <pjmedia-codec/amr_sdp_match.h> 21 22 #include <pjmedia/codec.h> 22 23 #include <pjmedia/errno.h> … … 317 318 { 318 319 pjmedia_codec_mgr *codec_mgr; 320 pj_str_t codec_name; 319 321 pj_status_t status; 320 322 … … 347 349 } 348 350 351 /* Register format match callback. */ 352 #if PJMEDIA_HAS_PASSTROUGH_CODEC_AMR 353 pj_cstr(&codec_name, "AMR"); 354 status = pjmedia_sdp_neg_register_fmt_match_cb( 355 &codec_name, 356 &pjmedia_codec_amr_match_sdp); 357 if (status != PJ_SUCCESS) 358 goto on_error; 359 #endif 360 361 /* Suppress compile warning */ 362 PJ_UNUSED_ARG(codec_name); 363 349 364 /* Register codec factory to endpoint. */ 350 365 status = pjmedia_codec_mgr_register_factory(codec_mgr, … … 383 398 384 399 for (j = 0; j < setting->fmt_cnt && !enabled; ++j) { 385 if ( codec_desc[i].fmt_id == setting->fmts[j].id)400 if ((pj_uint32_t)codec_desc[i].fmt_id == setting->fmts[j].id) 386 401 enabled = PJ_TRUE; 387 402 }
Note: See TracChangeset
for help on using the changeset viewer.