mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-04 09:47:33 +08:00
webrtc sdp msid不存在时,不添加
This commit is contained in:
@@ -1149,10 +1149,8 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
|
||||
auto msid = std::make_shared<SdpAttrMsid>();
|
||||
if (!m.rtp_rtx_ssrc[0].msid.empty()) {
|
||||
msid->parse(m.rtp_rtx_ssrc[0].msid);
|
||||
} else {
|
||||
msid->parse("mslabel label");
|
||||
sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid)));
|
||||
}
|
||||
sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user