Changeset 5676 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Oct 24, 2017 7:31:39 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5672 r5676 1071 1071 } 1072 1072 1073 void Endpoint::on_stream_created(pjsua_call_id call_id, 1074 pjmedia_stream *strm, 1075 unsigned stream_idx, 1076 pjmedia_port **p_port) 1073 void Endpoint::on_stream_created2(pjsua_call_id call_id, 1074 pjsua_on_stream_created_param *param) 1077 1075 { 1078 1076 Call *call = Call::lookup(call_id); … … 1082 1080 1083 1081 OnStreamCreatedParam prm; 1084 prm.stream = strm; 1085 prm.streamIdx = stream_idx; 1086 prm.pPort = (void *)*p_port; 1082 prm.stream = param->stream; 1083 prm.streamIdx = param->stream_idx; 1084 prm.destroyPort = param->destroy_port; 1085 prm.pPort = (MediaPort)param->port; 1087 1086 1088 1087 call->onStreamCreated(prm); 1089 1088 1090 if (prm.pPort != (void *)*p_port)1091 *p_port = (pjmedia_port *)prm.pPort;1089 param->destroy_port = prm.destroyPort; 1090 param->port = (pjmedia_port *)prm.pPort; 1092 1091 } 1093 1092 … … 1558 1557 ua_cfg.cb.on_call_media_state = &Endpoint::on_call_media_state; 1559 1558 ua_cfg.cb.on_call_sdp_created = &Endpoint::on_call_sdp_created; 1560 ua_cfg.cb.on_stream_created = &Endpoint::on_stream_created;1559 ua_cfg.cb.on_stream_created2 = &Endpoint::on_stream_created2; 1561 1560 ua_cfg.cb.on_stream_destroyed = &Endpoint::on_stream_destroyed; 1562 1561 ua_cfg.cb.on_dtmf_digit = &Endpoint::on_dtmf_digit;
Note: See TracChangeset
for help on using the changeset viewer.