Ticket #507: ticket507.3.patch
File ticket507.3.patch, 3.7 KB (added by nanang, 17 years ago) |
---|
-
pjsip/src/pjsua-lib/pjsua_media.c
139 139 } 140 140 #endif /* PJMEDIA_HAS_G711_CODEC */ 141 141 142 #if PJMEDIA_HAS_G722_CODEC 143 status = pjmedia_codec_g722_init( pjsua_var.med_endpt ); 144 if (status != PJ_SUCCESS) { 145 pjsua_perror(THIS_FILE, "Error initializing G722 codec", 146 status); 147 return status; 148 } 149 #endif /* PJMEDIA_HAS_G722_CODEC */ 150 142 151 #if PJMEDIA_HAS_L16_CODEC 143 152 /* Register L16 family codecs, but disable all */ 144 153 status = pjmedia_codec_l16_init(pjsua_var.med_endpt, 0); … … 500 509 pjmedia_codec_g711_deinit(); 501 510 # endif /* PJMEDIA_HAS_G711_CODEC */ 502 511 512 # if PJMEDIA_HAS_G722_CODEC 513 pjmedia_codec_g722_deinit(); 514 # endif /* PJMEDIA_HAS_G722_CODEC */ 515 503 516 # if PJMEDIA_HAS_L16_CODEC 504 517 pjmedia_codec_l16_deinit(); 505 518 # endif /* PJMEDIA_HAS_L16_CODEC */ 506 519 507 508 520 pjmedia_endpt_destroy(pjsua_var.med_endpt); 509 521 pjsua_var.med_endpt = NULL; 510 522 -
pjsip-apps/src/samples/pjsip-perf.c
936 936 #if defined(PJMEDIA_HAS_SPEEX_CODEC) && PJMEDIA_HAS_SPEEX_CODEC!=0 937 937 pjmedia_codec_speex_init(app.med_endpt, PJMEDIA_SPEEX_NO_UWB, 3, 3); 938 938 #endif 939 #if defined(PJMEDIA_HAS_G722_CODEC) && PJMEDIA_HAS_G722_CODEC!=0 940 pjmedia_codec_g722_init(app.med_endpt); 941 #endif 939 942 940 943 /* Init dummy socket addresses */ 941 944 app.skinfo_cnt = 0; -
pjsip-apps/src/samples/encdec.c
266 266 #if HAS_G729_CODEC 267 267 CHECK( keystream_g729ab_init(mept) ); 268 268 #endif 269 #if PJMEDIA_HAS_G722_CODEC 270 CHECK( pjmedia_codec_g722_init(mept) ); 271 #endif 269 272 270 273 pj_gettimeofday(&t0); 271 274 status = enc_dec_test(argv[1], argv[2], argv[3]); -
pjsip-apps/src/samples/pcaputil.c
243 243 T( pjmedia_codec_g711_init(app.mept) ); 244 244 #endif /* PJMEDIA_HAS_G711_CODEC */ 245 245 246 #if PJMEDIA_HAS_G722_CODEC 247 T( pjmedia_codec_g722_init(app.mept) ); 248 #endif /* PJMEDIA_HAS_G722_CODEC */ 249 246 250 #if PJMEDIA_HAS_L16_CODEC 247 251 T( pjmedia_codec_l16_init(app.mept, 0) ); 248 252 #endif /* PJMEDIA_HAS_L16_CODEC */ -
pjsip-apps/src/samples/streamutil.c
118 118 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 119 119 #endif 120 120 121 #if defined(PJMEDIA_HAS_G722_CODEC) && PJMEDIA_HAS_G722_CODEC!=0 122 status = pjmedia_codec_g722_init(med_endpt); 123 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 124 #endif 125 121 126 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 122 127 status = pjmedia_codec_l16_init(med_endpt, 0); 123 128 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); -
pjlib/include/pj/config_site_sample.h
55 55 # define PJMEDIA_HAS_L16_CODEC 0 56 56 # define PJMEDIA_HAS_ILBC_CODEC 0 57 57 # define PJMEDIA_HAS_SPEEX_CODEC 0 58 # define PJMEDIA_HAS_G722_CODEC 0 58 59 59 60 /* Need larger sound buffers */ 60 61 # define PJMEDIA_SOUND_BUFFER_COUNT 16