Ignore:
Timestamp:
Dec 17, 2013 9:01:21 AM (10 years ago)
Author:
nanang
Message:

Fixed #1717: Destroy media subsystem after all pollings/busy_sleep() are done, but leave deallocating media transport (via pjsua_media_channel_deinit()) before the pollings to allow clean TURN destroy.

File:
1 edited

Legend:

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

    r4614 r4694  
    180180pj_status_t pjsua_media_subsys_destroy(unsigned flags) 
    181181{ 
    182     unsigned i; 
     182    PJ_UNUSED_ARG(flags); 
    183183 
    184184    PJ_LOG(4,(THIS_FILE, "Shutting down media..")); 
     
    192192    } 
    193193 
     194#if 0 
     195    // This part has been moved out to pjsua_destroy() (see also #1717). 
    194196    /* Close media transports */ 
    195197    for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { 
     
    200202        pjsua_media_channel_deinit(i); 
    201203    } 
     204#endif 
    202205 
    203206    /* Destroy media endpoint. */ 
Note: See TracChangeset for help on using the changeset viewer.