forked from mirrors/gecko-dev
Bug 1288105 - Part 2: Fix longstanding bug where rollback could wipe out the codecs in a transceiver, that was being hidden by a bug fixed in part 1. r=mjf
Depends on D26238 Differential Revision: https://phabricator.services.mozilla.com/D26348 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
51a4f641d7
commit
12b283cba1
1 changed files with 4 additions and 0 deletions
|
|
@ -1548,6 +1548,8 @@ void JsepSessionImpl::RollbackLocalOffer() {
|
||||||
|
|
||||||
RefPtr<JsepTransceiver> temp(
|
RefPtr<JsepTransceiver> temp(
|
||||||
new JsepTransceiver(transceiver->GetMediaType()));
|
new JsepTransceiver(transceiver->GetMediaType()));
|
||||||
|
temp->mSendTrack.PopulateCodecs(mSupportedCodecs);
|
||||||
|
temp->mRecvTrack.PopulateCodecs(mSupportedCodecs);
|
||||||
transceiver->Rollback(*temp);
|
transceiver->Rollback(*temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1570,6 +1572,8 @@ void JsepSessionImpl::RollbackRemoteOffer() {
|
||||||
// up at the starting state.
|
// up at the starting state.
|
||||||
RefPtr<JsepTransceiver> temp(
|
RefPtr<JsepTransceiver> temp(
|
||||||
new JsepTransceiver(transceiver->GetMediaType()));
|
new JsepTransceiver(transceiver->GetMediaType()));
|
||||||
|
temp->mSendTrack.PopulateCodecs(mSupportedCodecs);
|
||||||
|
temp->mRecvTrack.PopulateCodecs(mSupportedCodecs);
|
||||||
transceiver->Rollback(*temp);
|
transceiver->Rollback(*temp);
|
||||||
|
|
||||||
if (shouldRemove) {
|
if (shouldRemove) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue