Changeset 4367 for pjproject/trunk/pjmedia/src/pjmedia/sdp.c
- Timestamp:
- Feb 21, 2013 8:49:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r3945 r4367 1424 1424 PJ_DEF(pj_status_t) pjmedia_sdp_validate(const pjmedia_sdp_session *sdp) 1425 1425 { 1426 return pjmedia_sdp_validate2(sdp, PJ_TRUE); 1427 } 1428 1429 1430 /* Validate SDP session descriptor. */ 1431 PJ_DEF(pj_status_t) pjmedia_sdp_validate2(const pjmedia_sdp_session *sdp, 1432 pj_bool_t strict) 1433 { 1426 1434 unsigned i; 1427 1435 const pj_str_t STR_RTPMAP = { "rtpmap", 6 }; … … 1472 1480 if (m->conn == NULL) { 1473 1481 if (sdp->conn == NULL) 1474 return PJMEDIA_SDP_EMISSINGCONN; 1482 if (strict || m->desc.port != 0) 1483 return PJMEDIA_SDP_EMISSINGCONN; 1475 1484 } 1476 1485 … … 1506 1515 } 1507 1516 1517 1508 1518 PJ_DEF(pj_status_t) pjmedia_sdp_transport_cmp( const pj_str_t *t1, 1509 1519 const pj_str_t *t2)
Note: See TracChangeset
for help on using the changeset viewer.