Bug 1322358: Don't disable m-sections in answer just because they're inactive. r?drno
MozReview-Commit-ID: 6YPwEk7bwIG
--- a/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
+++ b/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
@@ -1000,21 +1000,16 @@ JsepSessionImpl::CreateAnswerMSection(co
rv = BindMatchingLocalTrackToAnswer(&msection);
NS_ENSURE_SUCCESS(rv, rv);
}
if (remoteMsection.IsSending()) {
BindMatchingRemoteTrackToAnswer(&msection);
}
- if (!msection.IsReceiving() && !msection.IsSending()) {
- mSdpHelper.DisableMsection(sdp, &msection);
- return NS_OK;
- }
-
// Add extmap attributes.
AddCommonExtmaps(remoteMsection, &msection);
if (msection.GetFormats().empty()) {
// Could not negotiate anything. Disable m-section.
mSdpHelper.DisableMsection(sdp, &msection);
}