summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_core.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-04-29 12:38:25 +0000
committerBenny Prijono <bennylp@teluu.com>2006-04-29 12:38:25 +0000
commit48a492ee742bc593bc332cd5176d0c33b1a13604 (patch)
tree8f83ce3fa0966a9708d1e8f2530341c4bf43bee7 /pjsip/src/pjsua-lib/pjsua_core.c
parent9bd0000b4eba8b96af12366f55d84d3a59130d1a (diff)
Fixed bug in event subscription when it is challenged/authenticated
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@424 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_core.c')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index 034262ab..35309323 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -683,19 +683,9 @@ static pj_status_t init_media(void)
#endif /* PJMEDIA_HAS_L16_CODEC */
- /* If user specifies the exact codec to be used, then disable all codecs
- * and only enable those specific codecs.
+ /* Enable those codecs that user put with "--add-codec", and move
+ * the priority to top
*/
- if (pjsua.codec_cnt != 0) {
- codec_id = pj_str("");
- pjmedia_codec_mgr_set_codec_priority(
- pjmedia_endpt_get_codec_mgr(pjsua.med_endpt),
- &codec_id,
- PJMEDIA_CODEC_PRIO_DISABLED);
- }
-
-
-
for (i=0; i<pjsua.codec_cnt; ++i) {
pjmedia_codec_mgr_set_codec_priority(
pjmedia_endpt_get_codec_mgr(pjsua.med_endpt),