Commit aef2ae65 by xiongziliang

优化代码

parent 2ff293e2
...@@ -1146,8 +1146,8 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{ ...@@ -1146,8 +1146,8 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
{ {
//添加a=msid字段 //添加a=msid字段
if (!m.rtp_rtx_ssrc.empty()) { if (!m.rtp_rtx_ssrc.empty()) {
auto msid = std::make_shared<SdpAttrMsid>();
if (!m.rtp_rtx_ssrc[0].msid.empty()) { if (!m.rtp_rtx_ssrc[0].msid.empty()) {
auto msid = std::make_shared<SdpAttrMsid>();
msid->parse(m.rtp_rtx_ssrc[0].msid); msid->parse(m.rtp_rtx_ssrc[0].msid);
sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid))); sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid)));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论