mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
优化代码
This commit is contained in:
parent
2ff293e2e5
commit
aef2ae65af
@ -1146,8 +1146,8 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
|
||||
{
|
||||
//添加a=msid字段
|
||||
if (!m.rtp_rtx_ssrc.empty()) {
|
||||
auto msid = std::make_shared<SdpAttrMsid>();
|
||||
if (!m.rtp_rtx_ssrc[0].msid.empty()) {
|
||||
auto msid = std::make_shared<SdpAttrMsid>();
|
||||
msid->parse(m.rtp_rtx_ssrc[0].msid);
|
||||
sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user