mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1366581: offer bundle support for single m-section. r=bwc
MozReview-Commit-ID: DYmjCmV1fKF --HG-- extra : rebase_source : 1d9e60663e11261f4ef8fd578de149f9b9517910
This commit is contained in:
parent
5eb2235537
commit
411dd4acd1
@ -926,12 +926,8 @@ protected:
|
||||
auto pairs = session.GetNegotiatedTrackPairs();
|
||||
|
||||
for (JsepTrackPair& pair : pairs) {
|
||||
if (types.size() == 1) {
|
||||
ASSERT_FALSE(pair.HasBundleLevel()) << context;
|
||||
} else {
|
||||
ASSERT_TRUE(pair.HasBundleLevel()) << context;
|
||||
ASSERT_EQ(0U, pair.BundleLevel()) << context;
|
||||
}
|
||||
ASSERT_TRUE(pair.HasBundleLevel()) << context;
|
||||
ASSERT_EQ(0U, pair.BundleLevel()) << context;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -675,7 +675,7 @@ JsepSessionImpl::SetupBundle(Sdp* sdp) const
|
||||
}
|
||||
}
|
||||
|
||||
if (mids.size() > 1) {
|
||||
if (mids.size() >= 1) {
|
||||
UniquePtr<SdpGroupAttributeList> groupAttr(new SdpGroupAttributeList);
|
||||
groupAttr->PushEntry(SdpGroupAttributeList::kBundle, mids);
|
||||
sdp->GetAttributeList().SetAttribute(groupAttr.release());
|
||||
|
Loading…
Reference in New Issue
Block a user