Ignore:
Timestamp:
Feb 19, 2014 4:11:43 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1738: Infinite loop when re-INVITE is received while adding new media

File:
1 edited

Legend:

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

    r4560 r4750  
    15361536        return PJ_ETOOMANY; 
    15371537 
     1538    if (pjsua_call_media_is_changing(call)) { 
     1539        PJ_LOG(1,(THIS_FILE, "Unable to add video" ERR_MEDIA_CHANGING)); 
     1540        return PJ_EINVALIDOP; 
     1541    } 
     1542 
    15381543    /* Get active local SDP and clone it */ 
    15391544    status = pjmedia_sdp_neg_get_active_local(call->inv->neg, &current_sdp); 
     
    16361641    pjmedia_sdp_session *sdp; 
    16371642    pj_status_t status; 
     1643 
     1644    if (pjsua_call_media_is_changing(call)) { 
     1645        PJ_LOG(1,(THIS_FILE, "Unable to modify video" ERR_MEDIA_CHANGING)); 
     1646        return PJ_EINVALIDOP; 
     1647    } 
    16381648 
    16391649    /* Verify and normalize media index */ 
Note: See TracChangeset for help on using the changeset viewer.