Changeset 280
- Timestamp:
- Mar 5, 2006 11:50:11 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r221 r280 368 368 pjmedia_sdp_media_add_attr(local, a); 369 369 370 } else if 370 } else if(pjmedia_sdp_media_find_attr2(remote, "sendonly", NULL) != NULL) { 371 371 /* If remote has "a=sendonly", then set local to "recvonly" if 372 372 * it is currently "sendrecv". … … 380 380 pjmedia_sdp_media_add_attr(local, a); 381 381 382 } else if 382 } else if(pjmedia_sdp_media_find_attr2(remote, "recvonly", NULL) != NULL) { 383 383 /* If remote has "a=recvonly", then set local to "sendonly" if 384 384 * it is currently "sendrecv". … … 392 392 pjmedia_sdp_media_add_attr(local, a); 393 393 394 } else if 394 } else if(pjmedia_sdp_media_find_attr2(remote, "sendrecv", NULL) != NULL) { 395 395 396 396 pjmedia_sdp_attr *a; … … 638 638 639 639 /* Get the rtpmap for the payload type in the offer. */ 640 a = pjmedia_sdp_media_find_attr2(offer, "rtpmap", &offer->desc.fmt[i]); 640 a = pjmedia_sdp_media_find_attr2(offer, "rtpmap", 641 &offer->desc.fmt[i]); 641 642 if (!a) { 642 643 pj_assert(!"Bug! Offer should have been validated"); … … 658 659 659 660 /* Find paylaod in our initial SDP with matching 660 * encoding name .661 * encoding name and clock rate. 661 662 */ 662 663 for (j=0; j<local->desc.fmt_count; ++j) { 663 a = pjmedia_sdp_media_find_attr2(local, "rtpmap", &local->desc.fmt[j]); 664 a = pjmedia_sdp_media_find_attr2(local, "rtpmap", 665 &local->desc.fmt[j]); 664 666 if (a) { 665 667 pjmedia_sdp_rtpmap lr; 666 668 pjmedia_sdp_attr_get_rtpmap(a, &lr); 667 if (!pj_strcmp(&or.enc_name, &lr.enc_name)) { 669 670 /* See if encoding name and clock rate match */ 671 if (!pj_strcmp(&or.enc_name, &lr.enc_name) && 672 or.clock_rate == lr.clock_rate) 673 { 668 674 /* Match! */ 669 675 if (is_codec)
Note: See TracChangeset
for help on using the changeset viewer.