Skip to content

Commit

Permalink
Bug 1396974: stop bundeling inactive m-sections. r=bwc
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: AXBtipHlW0Y
  • Loading branch information
Nils Ohlmeier [:drno] committed Sep 8, 2017
1 parent 4f77d8d commit 1dd5a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ JsepSessionImpl::SetupBundle(Sdp* sdp) const

for (size_t i = 0; i < sdp->GetMediaSectionCount(); ++i) {
auto& attrs = sdp->GetMediaSection(i).GetAttributeList();
if (attrs.HasAttribute(SdpAttribute::kMidAttribute)) {
if ((sdp->GetMediaSection(i).GetPort() != 0) &&
attrs.HasAttribute(SdpAttribute::kMidAttribute)) {
bool useBundleOnly = false;
switch (mBundlePolicy) {
case kBundleMaxCompat:
Expand Down

0 comments on commit 1dd5a95

Please sign in to comment.