Changeset 637 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Jul 31, 2006 3:19:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r632 r637 86 86 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ 87 87 88 #if PJMEDIA_HAS_ILBC_CODEC 89 /* Register iLBC. */ 90 status = pjmedia_codec_ilbc_init( pjsua_var.med_endpt, 91 pjsua_var.media_cfg.ilbc_mode); 92 if (status != PJ_SUCCESS) { 93 pjsua_perror(THIS_FILE, "Error initializing iLBC codec", 94 status); 95 return status; 96 } 97 #endif /* PJMEDIA_HAS_ILBC_CODEC */ 98 88 99 #if PJMEDIA_HAS_GSM_CODEC 89 100 /* Register GSM */ … … 485 496 goto on_error; 486 497 } 498 499 pjmedia_transport_udp_simulate_lost(pjsua_var.calls[i].med_tp, 500 PJMEDIA_DIR_ENCODING, 501 pjsua_var.media_cfg.tx_drop_pct); 502 503 pjmedia_transport_udp_simulate_lost(pjsua_var.calls[i].med_tp, 504 PJMEDIA_DIR_DECODING, 505 pjsua_var.media_cfg.rx_drop_pct); 506 487 507 } 488 508 … … 661 681 pjsua_var.mconf_cfg.samples_per_frame * 662 682 1000 / pjsua_var.media_cfg.clock_rate, 663 0, 0, &port);683 options, 0, &port); 664 684 if (status != PJ_SUCCESS) { 665 685 PJSUA_UNLOCK(); … … 759 779 pj_status_t status; 760 780 781 /* Don't support max_size at present */ 782 PJ_ASSERT_RETURN(max_size == 0, PJ_EINVAL); 783 784 /* Don't support file format at present */ 785 PJ_ASSERT_RETURN(file_format == 0, PJ_EINVAL); 786 787 /* Don't support encoding at present */ 788 PJ_ASSERT_RETURN(encoding == NULL, PJ_EINVAL); 789 761 790 if (pjsua_var.rec_cnt >= PJ_ARRAY_SIZE(pjsua_var.recorder)) 762 791 return PJ_ETOOMANY; … … 783 812 pjsua_var.mconf_cfg.samples_per_frame, 784 813 pjsua_var.mconf_cfg.bits_per_sample, 785 0, 0, &port);814 options, 0, &port); 786 815 if (status != PJ_SUCCESS) { 787 816 PJSUA_UNLOCK(); … … 1093 1122 const pjmedia_codec_param *param) 1094 1123 { 1124 PJ_UNUSED_ARG(id); 1125 PJ_UNUSED_ARG(param); 1095 1126 PJ_TODO(set_codec_param); 1096 1127 return PJ_SUCCESS; 1097 1128 } 1098 1099
Note: See TracChangeset
for help on using the changeset viewer.