Ignore:
Timestamp:
May 9, 2018 6:58:48 AM (14 months ago)
Author:
ming
Message:

Fixed #2087: Support for RTP and RTCP multiplexing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r5748 r5788  
    17201720    pjmedia_sdp_media *sdp_m; 
    17211721    pjmedia_transport_info tpinfo; 
     1722    unsigned options; 
    17221723    pj_status_t status; 
    17231724 
     
    17581759 
    17591760    /* Init transport media */ 
    1760     status = pjmedia_transport_media_create(call_med->tp, pool, 0, 
     1761    options = (call_med->enable_rtcp_mux? PJMEDIA_TPMED_RTCP_MUX: 0); 
     1762    status = pjmedia_transport_media_create(call_med->tp, pool, options, 
    17611763                                            NULL, call_med->idx); 
    17621764    if (status != PJ_SUCCESS) 
     
    19091911        /* Init transport media */ 
    19101912        if (call_med->tp && call_med->tp_st == PJSUA_MED_TP_IDLE) { 
    1911             status = pjmedia_transport_media_create(call_med->tp, pool, 0, 
    1912                                                     NULL, call_med->idx); 
     1913            unsigned options = (call_med->enable_rtcp_mux? 
     1914                                PJMEDIA_TPMED_RTCP_MUX: 0); 
     1915            status = pjmedia_transport_media_create(call_med->tp, pool, 
     1916                                                    options, NULL, 
     1917                                                    call_med->idx); 
    19131918            if (status != PJ_SUCCESS) 
    19141919                goto on_error; 
Note: See TracChangeset for help on using the changeset viewer.