mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1852775: Fix bug where JsepTrack::GetRtcSsrcs got the order wrong. r=mjf
Depends on D188040 Differential Revision: https://phabricator.services.mozilla.com/D188041
This commit is contained in:
parent
cdd894ff3d
commit
3268e45012
@ -168,10 +168,14 @@ class JsepTrack {
|
||||
virtual std::vector<uint32_t> GetRtxSsrcs() const {
|
||||
std::vector<uint32_t> result;
|
||||
if (mRtxIsAllowed &&
|
||||
Preferences::GetBool("media.peerconnection.video.use_rtx", false)) {
|
||||
std::for_each(
|
||||
mSsrcToRtxSsrc.begin(), mSsrcToRtxSsrc.end(),
|
||||
[&result](const auto& pair) { result.push_back(pair.second); });
|
||||
Preferences::GetBool("media.peerconnection.video.use_rtx", false) &&
|
||||
!mSsrcToRtxSsrc.empty()) {
|
||||
MOZ_ASSERT(mSsrcToRtxSsrc.size() == mSsrcs.size());
|
||||
for (const auto ssrc : mSsrcs) {
|
||||
auto it = mSsrcToRtxSsrc.find(ssrc);
|
||||
MOZ_ASSERT(it != mSsrcToRtxSsrc.end());
|
||||
result.push_back(it->second);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user