Changeset 3512
- Timestamp:
- Apr 8, 2011 4:26:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3500 r3512 1267 1267 for (i=0; i<sdp->media_count && count<PJSUA_MAX_CALL_MEDIA; ++i) { 1268 1268 const pjmedia_sdp_media *m = sdp->media[i]; 1269 const pjmedia_sdp_conn *c; 1269 1270 1270 1271 /* Skip different media */ … … 1273 1274 continue; 1274 1275 } 1276 1277 c = m->conn? m->conn : sdp->conn; 1275 1278 1276 1279 /* Supported transports */ … … 1306 1309 1307 1310 /* Is media inactive? */ 1308 if (pjmedia_sdp_media_find_attr2(m, "inactive", NULL)) 1309 score[i] -= 10; 1311 if (pjmedia_sdp_media_find_attr2(m, "inactive", NULL) || 1312 pj_strcmp2(&c->addr, "0.0.0.0") == 0) 1313 { 1314 //score[i] -= 10; 1315 score[i] -= 1; 1316 } 1310 1317 1311 1318 ++count; … … 2301 2308 2302 2309 /* Setup encoding direction */ 2303 if (si->dir & PJMEDIA_DIR_ENCODING ) {2310 if (si->dir & PJMEDIA_DIR_ENCODING && !call->local_hold) { 2304 2311 pjmedia_vid_port_param vport_param; 2305 2312
Note: See TracChangeset
for help on using the changeset viewer.