Changeset 5040 for pjproject/trunk


Ignore:
Timestamp:
Mar 30, 2015 9:14:43 AM (10 years ago)
Author:
nanang
Message:

Fix #1834: Fixed SDP negotiator to retain initial_sdp in pjmedia_sdp_neg_send_local_offer().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r5035 r5040  
    427427        neg->neg_local_sdp = pjmedia_sdp_session_clone(pool,  
    428428                                                       neg->active_local_sdp); 
     429        neg->initial_sdp = pjmedia_sdp_session_clone(pool, 
     430                                                     neg->active_local_sdp); 
    429431        *offer = neg->active_local_sdp; 
    430432 
     
    519521    } else { 
    520522        PJ_ASSERT_RETURN(neg->initial_sdp, PJMEDIA_SDPNEG_ENOINITIAL); 
     523        neg->initial_sdp = pjmedia_sdp_session_clone(pool, neg->initial_sdp); 
    521524        neg->neg_local_sdp = pjmedia_sdp_session_clone(pool, neg->initial_sdp); 
    522525    } 
Note: See TracChangeset for help on using the changeset viewer.