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:
Nils Ohlmeier [:drno] 2017-05-22 18:42:12 -07:00
parent 5eb2235537
commit 411dd4acd1
2 changed files with 3 additions and 7 deletions

View File

@ -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;
}
}

View File

@ -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());