Ignore:
Timestamp:
Sep 4, 2018 3:12:58 PM (15 months ago)
Author:
riza
Message:

Close #2145: Don't rearrange media when sending re-INVITE with
PJSUA_CALL_REINIT_MEDIA.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r5834 r5878  
    10761076        pj_str_t new_sdp_str = {(char*)prm.sdp.wholeSdp.c_str(), 
    10771077                                (pj_ssize_t)prm.sdp.wholeSdp.size()}; 
     1078        pj_status_t status; 
    10781079 
    10791080        pj_strdup(pool, &dup_new_sdp, &new_sdp_str);         
    1080         pjmedia_sdp_parse(pool, dup_new_sdp.ptr, 
    1081                           dup_new_sdp.slen, &new_sdp); 
    1082         pj_memcpy(sdp, new_sdp, sizeof(*sdp)); 
     1081        status = pjmedia_sdp_parse(pool, dup_new_sdp.ptr, 
     1082                                   dup_new_sdp.slen, &new_sdp); 
     1083        if (status != PJ_SUCCESS) { 
     1084            PJ_PERROR(4,(THIS_FILE, status, 
     1085                         "Failed to parse the modified SDP")); 
     1086        } else { 
     1087            pj_memcpy(sdp, new_sdp, sizeof(*sdp)); 
     1088        } 
    10831089    } 
    10841090} 
Note: See TracChangeset for help on using the changeset viewer.