Ignore:
Timestamp:
Jun 9, 2008 9:35:59 AM (16 years ago)
Author:
nanang
Message:

Added more validations & a new API (thanks Florian Bomers):

  • added more validation on pjmedia transport get info.
  • added more validation on stop_media_session() of pjsua_media, useful when conference is not used.
  • added new API for retrieving user_data of pjmedia session.
File:
1 edited

Legend:

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

    r1990 r1998  
    954954 
    955955    if (call->conf_slot != PJSUA_INVALID_ID) { 
    956         pjmedia_conf_remove_port(pjsua_var.mconf, call->conf_slot); 
     956        if (pjsua_var.mconf) { 
     957            pjmedia_conf_remove_port(pjsua_var.mconf, call->conf_slot); 
     958        } 
    957959        call->conf_slot = PJSUA_INVALID_ID; 
    958960    } 
Note: See TracChangeset for help on using the changeset viewer.