Bug 1595479 - Call Stop as part of Transceiver shutdown; r=ng

This consolidates the shutdown code and ensures that an RTCP bye is sent
as part of tearing down a PeerConnection.

Differential Revision: https://phabricator.services.mozilla.com/D57861

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dan Minor 2019-12-20 20:55:03 +00:00
Родитель f50ddd24b2
Коммит d67ce316c5
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -118,17 +118,12 @@ nsresult TransceiverImpl::UpdateSinkIdentity(
}
void TransceiverImpl::Shutdown_m() {
mReceivePipeline->Shutdown_m();
mTransmitPipeline->Shutdown_m();
Stop();
mReceivePipeline = nullptr;
mTransmitPipeline = nullptr;
mTransportHandler = nullptr;
mReceiveTrack = nullptr;
mSendTrack = nullptr;
if (mConduit) {
mConduit->DeleteStreams();
}
mConduit = nullptr;
}
nsresult TransceiverImpl::UpdateSendTrack(dom::MediaStreamTrack* aSendTrack) {