Changeset 2061 for pjproject/trunk
- Timestamp:
- Jun 26, 2008 3:48:14 PM (16 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/codec.c
r2039 r2061 232 232 for (i=0; i<mgr->codec_cnt; ++i) { 233 233 234 if (pj_strnicmp2(codec_id, mgr->codec_desc[i].id, 234 if (codec_id->slen == 0 || 235 pj_strnicmp2(codec_id, mgr->codec_desc[i].id, 235 236 codec_id->slen) == 0) 236 237 { -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2039 r2061 2774 2774 2775 2775 puts(""); 2776 puts("Enter codec name and its new priority (e.g. \"speex/16000 200\"), empty to cancel:"); 2777 2778 printf("Codec name and priority: "); 2776 puts("Enter codec id and its new priority " 2777 "(e.g. \"speex/16000 200\"), empty to cancel:"); 2778 2779 printf("Codec name (\"*\" for all) and priority: "); 2779 2780 fgets(input, sizeof(input), stdin); 2780 2781 if (input[0]=='\r' || input[0]=='\n') { -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r2039 r2061 2228 2228 pj_uint8_t priority ) 2229 2229 { 2230 const pj_str_t all = { NULL, 0 }; 2230 2231 pjmedia_codec_mgr *codec_mgr; 2231 2232 2232 2233 codec_mgr = pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt); 2234 2235 if (codec_id->slen==1 && *codec_id->ptr=='*') 2236 codec_id = &all; 2233 2237 2234 2238 return pjmedia_codec_mgr_set_codec_priority(codec_mgr, codec_id, … … 2243 2247 pjmedia_codec_param *param ) 2244 2248 { 2249 const pj_str_t all = { NULL, 0 }; 2245 2250 const pjmedia_codec_info *info; 2246 2251 pjmedia_codec_mgr *codec_mgr; … … 2250 2255 codec_mgr = pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt); 2251 2256 2257 if (codec_id->slen==1 && *codec_id->ptr=='*') 2258 codec_id = &all; 2259 2252 2260 status = pjmedia_codec_mgr_find_codecs_by_id(codec_mgr, codec_id, 2253 2261 &count, &info, NULL);
Note: See TracChangeset
for help on using the changeset viewer.