Changeset 2926 for pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
- Timestamp:
- Oct 6, 2009 11:29:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r2724 r2926 1007 1007 pj_str_t pt_amr_need_adapt = {NULL, 0}; 1008 1008 1009 /* If offer has zero port, just clone the offer and update direction */ 1010 if (offer->desc.port == 0) { 1011 answer = pjmedia_sdp_media_clone(pool, offer); 1012 remove_all_media_directions(answer); 1013 update_media_direction(pool, offer, answer); 1014 *p_answer = answer; 1015 return PJ_SUCCESS; 1016 } 1017 1009 1018 /* Set master/slave negotiator based on prefer_remote_codec_order. */ 1010 1019 if (prefer_remote_codec_order) { … … 1219 1228 answer->desc.fmt_count = pt_answer_count; 1220 1229 1221 /* If offer has zero port, set our answer with zero port too */1222 if (offer->desc.port == 0)1223 answer->desc.port = 0;1224 1225 1230 /* Update media direction. */ 1226 1231 update_media_direction(pool, offer, answer);
Note: See TracChangeset
for help on using the changeset viewer.