Ignore:
Timestamp:
Oct 3, 2011 8:22:48 AM (13 years ago)
Author:
ming
Message:

Re #1266: Modified pjsua_media_channel_deinit() to resume deinit in the callback (instead of returning PJ_EBUSY) and make sure the right transport is used before calling dlg_respond()

File:
1 edited

Legend:

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

    r3778 r3780  
    21142114    unsigned mi; 
    21152115 
     2116    PJSUA_LOCK(); 
    21162117    for (mi=0; mi<call->med_cnt; ++mi) { 
    21172118        pjsua_call_media *call_med = &call->media[mi]; 
    21182119 
    2119         if (call_med->tp_st == PJSUA_MED_TP_CREATING) 
    2120             return PJ_EBUSY; 
    2121     } 
     2120        if (call_med->tp_st == PJSUA_MED_TP_CREATING) { 
     2121            /* We will do the deinitialization after media transport 
     2122             * creation is completed. 
     2123             */ 
     2124            call->async_call.med_ch_deinit = PJ_TRUE; 
     2125            PJSUA_UNLOCK(); 
     2126            return PJ_SUCCESS; 
     2127        } 
     2128    } 
     2129    PJSUA_UNLOCK(); 
    21222130 
    21232131    PJ_LOG(4,(THIS_FILE, "Call %d: deinitializing media..", call_id)); 
Note: See TracChangeset for help on using the changeset viewer.