mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复webrtc模块循环引用导致的内存泄露问题:#1024
This commit is contained in:
parent
08e74256da
commit
41f8d7fbd2
@ -436,7 +436,7 @@ void WebRtcTransportImp::onStartWebRTC() {
|
|||||||
if (m_offer->type != TrackApplication) {
|
if (m_offer->type != TrackApplication) {
|
||||||
//记录rtp ext类型与id的关系,方便接收或发送rtp时修改rtp ext id
|
//记录rtp ext类型与id的关系,方便接收或发送rtp时修改rtp ext id
|
||||||
track->rtp_ext_ctx = std::make_shared<RtpExtContext>(*m_offer);
|
track->rtp_ext_ctx = std::make_shared<RtpExtContext>(*m_offer);
|
||||||
track->rtp_ext_ctx->setOnGetRtp([this, track](uint8_t pt, uint32_t ssrc, const string &rid) {
|
track->rtp_ext_ctx->setOnGetRtp([this, &track](uint8_t pt, uint32_t ssrc, const string &rid) {
|
||||||
//ssrc --> MediaTrack
|
//ssrc --> MediaTrack
|
||||||
_ssrc_to_track[ssrc] = track;
|
_ssrc_to_track[ssrc] = track;
|
||||||
InfoL << "get rtp, pt:" << (int) pt << ", ssrc:" << ssrc << ", rid:" << rid;
|
InfoL << "get rtp, pt:" << (int) pt << ", ssrc:" << ssrc << ", rid:" << rid;
|
||||||
|
Loading…
Reference in New Issue
Block a user