Changeset 5976
- Timestamp:
- May 6, 2019 10:05:03 AM (6 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsua2
- Files:
-
- 2 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++) { -
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5972 r5976 1119 1119 Call *call = Call::lookup(call_id); 1120 1120 if (!call) { 1121 /* This can happen for call disconnection case. The callback 1122 * should have been called from on_call_state() instead. 1123 */ 1121 1124 return; 1122 1125 }
Note: See TracChangeset
for help on using the changeset viewer.