Ignore:
Timestamp:
Mar 24, 2017 3:00:47 AM (3 years ago)
Author:
ming
Message:

Fixed #2005: Crash when hanging up call if video capture device fails to open

File:
1 edited

Legend:

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

    r5562 r5571  
    25502550static void stop_media_stream(pjsua_call *call, unsigned med_idx) 
    25512551{ 
    2552     pjsua_call_media *call_med = &call->media[med_idx]; 
    2553  
    2554     /* Check if stream does not exist */ 
    2555     if (med_idx >= call->med_cnt) 
    2556         return; 
     2552    pjsua_call_media *call_med; 
     2553     
     2554    if (pjsua_call_media_is_changing(call)) { 
     2555        call_med = &call->media_prov[med_idx]; 
     2556        if (med_idx >= call->med_prov_cnt) 
     2557            return; 
     2558    } else { 
     2559        call_med = &call->media[med_idx]; 
     2560        if (med_idx >= call->med_cnt) 
     2561            return; 
     2562    } 
    25572563 
    25582564    pj_log_push_indent(); 
Note: See TracChangeset for help on using the changeset viewer.