Changeset 4236 for pjproject/trunk


Ignore:
Timestamp:
Aug 24, 2012 3:49:15 AM (12 years ago)
Author:
ming
Message:

Fixed #1572: duplicate transport attributes when modifying video stream call
Only encode the media transport if changing the direction from NONE to !NONE.

File:
1 edited

Legend:

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

    r4071 r4236  
    17441744        sdp->media[med_idx] = sdp_m; 
    17451745 
    1746         /* Update SDP media line by media transport */ 
    1747         status = pjmedia_transport_encode_sdp(call_med->tp, pool, 
    1748                                               sdp, NULL, call_med->idx); 
    1749         if (status != PJ_SUCCESS) 
    1750             goto on_error; 
     1746        if (call_med->dir == PJMEDIA_DIR_NONE) { 
     1747            /* Update SDP media line by media transport */ 
     1748            status = pjmedia_transport_encode_sdp(call_med->tp, pool, 
     1749                                                  sdp, NULL, call_med->idx); 
     1750            if (status != PJ_SUCCESS) 
     1751                goto on_error; 
     1752        } 
    17511753 
    17521754on_error: 
Note: See TracChangeset for help on using the changeset viewer.