From aef2ae65afb70d135551467d2d7276555552660f Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 12 Mar 2022 19:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Sdp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index c517d4e2..06554fa5 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -1146,8 +1146,8 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{ { //添加a=msid字段 if (!m.rtp_rtx_ssrc.empty()) { - auto msid = std::make_shared(); if (!m.rtp_rtx_ssrc[0].msid.empty()) { + auto msid = std::make_shared(); msid->parse(m.rtp_rtx_ssrc[0].msid); sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid))); }