优化webrtc iceandidate端口相关代码

This commit is contained in:
ziyue
2022-11-19 09:46:04 +08:00
parent a9e53aae70
commit d910c80a00
2 changed files with 7 additions and 7 deletions

View File

@@ -1204,7 +1204,7 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
}
for (auto &cand : m.candidate) {
if(cand.port){
if (cand.port) {
sdp_media.addAttr(std::make_shared<SdpAttrCandidate>(cand));
}
}