Changeset 3093
- Timestamp:
- Feb 10, 2010 8:16:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r3039 r3093 1943 1943 pj_strcat2(&cfg, line); 1944 1944 1945 /* Disable codec */ 1946 for (i=0; i<config->codec_dis_cnt; ++i) { 1947 pj_ansi_sprintf(line, "--dis-codec %s\n", 1948 config->codec_dis[i].ptr); 1949 pj_strcat2(&cfg, line); 1950 } 1945 1951 /* Add codec. */ 1946 1952 for (i=0; i<config->codec_cnt; ++i) { 1947 1953 pj_ansi_sprintf(line, "--add-codec %s\n", 1948 1954 config->codec_arg[i].ptr); 1949 pj_strcat2(&cfg, line);1950 }1951 /* Disable codec */1952 for (i=0; i<config->codec_dis_cnt; ++i) {1953 pj_ansi_sprintf(line, "--dis-codec %s\n",1954 config->codec_dis[i].ptr);1955 1955 pj_strcat2(&cfg, line); 1956 1956 } … … 4644 4644 } 4645 4645 4646 /* Optionally disable some codec */ 4647 for (i=0; i<app_config.codec_dis_cnt; ++i) { 4648 pjsua_codec_set_priority(&app_config.codec_dis[i],PJMEDIA_CODEC_PRIO_DISABLED); 4649 } 4650 4646 4651 /* Optionally set codec orders */ 4647 4652 for (i=0; i<app_config.codec_cnt; ++i) { 4648 4653 pjsua_codec_set_priority(&app_config.codec_arg[i], 4649 4654 (pj_uint8_t)(PJMEDIA_CODEC_PRIO_NORMAL+i+9)); 4650 }4651 4652 /* Optionally disable some codec */4653 for (i=0; i<app_config.codec_dis_cnt; ++i) {4654 pjsua_codec_set_priority(&app_config.codec_dis[i],PJMEDIA_CODEC_PRIO_DISABLED);4655 4655 } 4656 4656
Note: See TracChangeset
for help on using the changeset viewer.