Changeset 5976 for pjproject/trunk/pjsip/src/pjsua2/call.cpp
- Timestamp:
- May 6, 2019 10:05:03 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/call.cpp
r5972 r5976 25 25 using namespace pj; 26 26 using namespace std; 27 28 #include <pjsua-lib/pjsua_internal.h> 27 29 28 30 #define THIS_FILE "call.cpp" … … 901 903 pj_ci.state == PJSIP_INV_STATE_DISCONNECTED) 902 904 { 905 pjsua_call *call = &pjsua_var.calls[id]; 906 907 /* We are going to remove the Call object association below, 908 * so we need to call onStreamDestroyed() callback here. 909 */ 910 for (mi = 0; mi < call->med_cnt; ++mi) { 911 pjsua_call_media *call_med = &call->media[mi]; 912 if (call_med->type == PJMEDIA_TYPE_AUDIO && 913 call_med->strm.a.stream) 914 { 915 OnStreamDestroyedParam prm; 916 prm.stream = call_med->strm.a.stream; 917 prm.streamIdx = mi; 918 919 onStreamDestroyed(prm); 920 } 921 } 922 903 923 /* Clear medias. */ 904 924 for (mi = 0; mi < medias.size(); mi++) {
Note: See TracChangeset
for help on using the changeset viewer.