Bug 1280259: clear the remote SSRC vector on a track. r=bwc

MozReview-Commit-ID: 9LtaqeiIQoY

--HG--
extra : rebase_source : e063a7965c9daabd7191cdbcadaaf7838032feb5
This commit is contained in:
Nils Ohlmeier [:drno] 2016-06-15 16:33:43 +01:00
parent b650b6987e
commit 1f4ba9256c

View File

@ -398,10 +398,12 @@ JsepTrack::Negotiate(const SdpMediaSection& answer,
}
}
if ((mDirection == sdp::kRecv) &&
remote.GetAttributeList().HasAttribute(SdpAttribute::kSsrcAttribute)) {
for (auto& ssrcAttr : remote.GetAttributeList().GetSsrc().mSsrcs) {
AddSsrc(ssrcAttr.ssrc);
if (mDirection == sdp::kRecv) {
mSsrcs.clear();
if (remote.GetAttributeList().HasAttribute(SdpAttribute::kSsrcAttribute)) {
for (auto& ssrcAttr : remote.GetAttributeList().GetSsrc().mSsrcs) {
AddSsrc(ssrcAttr.ssrc);
}
}
}