Changeset 3865
- Timestamp:
- Oct 26, 2011 4:57:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3860 r3865 1943 1943 break; 1944 1944 default: 1945 if (rem_sdp) { 1946 pj_strdup(pool, &m->desc.media, 1947 &rem_sdp->media[mi]->desc.media); 1948 pj_strdup(pool, &m->desc.fmt[0], 1949 &rem_sdp->media[mi]->desc.fmt[0]); 1950 } else { 1951 pj_assert(!"Invalid call_med media type"); 1952 return PJ_EBUG; 1945 /* This must be us generating re-offer, and some unknown 1946 * media may exist, so just clone from active local SDP 1947 * (and it should have been deactivated already). 1948 */ 1949 pj_assert(call->inv && call->inv->neg && 1950 sdp_neg_state == PJMEDIA_SDP_NEG_STATE_DONE); 1951 { 1952 const pjmedia_sdp_session *s_; 1953 pjmedia_sdp_neg_get_active_local(call->inv->neg, &s_); 1954 1955 pj_assert(mi < s_->media_count); 1956 m = pjmedia_sdp_media_clone(pool, s_->media[mi]); 1957 m->desc.port = 0; 1953 1958 } 1959 break; 1954 1960 } 1955 1961 }
Note: See TracChangeset
for help on using the changeset viewer.