From cbafdbabc6cc09eaaee0222a1e8f169d4e1728fc Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Tue, 11 May 2021 09:09:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=8B=B7=E8=B4=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/WebRtcTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index 9f9a305a..f06a20be 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -426,7 +426,7 @@ void WebRtcTransportImp::onStartWebRTC() { ref.rtcp_context_send = std::make_shared(ref.plan->sample_rate, false); ref.receiver = std::make_shared([&ref, this](RtpPacket::Ptr rtp) { onSortedRtp(ref, std::move(rtp)); - }, [ref, this](const RtpPacket::Ptr &rtp) { + }, [&ref, this](const RtpPacket::Ptr &rtp) { onBeforeSortedRtp(ref, rtp); }); }