Ignore:
Timestamp:
Mar 8, 2019 3:22:19 AM (6 years ago)
Author:
nanang
Message:

Re #2181: Fixed assertion due to removing an invalid port from video conference in pjsua_vid_stop_stream().

File:
1 edited

Legend:

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

    r5939 r5945  
    11931193     
    11941194    /* Unregister video stream ports (encode+decode) from conference */ 
    1195     pjsua_vid_conf_remove_port(call_med->strm.v.strm_enc_slot); 
    1196     pjsua_vid_conf_remove_port(call_med->strm.v.strm_dec_slot); 
     1195    if (call_med->strm.v.strm_enc_slot != PJSUA_INVALID_ID) { 
     1196        pjsua_vid_conf_remove_port(call_med->strm.v.strm_enc_slot); 
     1197        call_med->strm.v.strm_enc_slot = PJSUA_INVALID_ID; 
     1198    } 
     1199    if (call_med->strm.v.strm_dec_slot != PJSUA_INVALID_ID) { 
     1200        pjsua_vid_conf_remove_port(call_med->strm.v.strm_dec_slot); 
     1201        call_med->strm.v.strm_dec_slot = PJSUA_INVALID_ID; 
     1202    } 
    11971203 
    11981204    pjmedia_vid_stream_send_rtcp_bye(strm); 
Note: See TracChangeset for help on using the changeset viewer.