Skip to content
Snippets Groups Projects
Commit f41fca92 authored by Byron Campen [:bwc]'s avatar Byron Campen [:bwc]
Browse files

Bug 1812293: Remove this code that was breaking the replaceTrack(null->non-null) case. r=pehrsons

We don't need to do anything like this, since setting the nullptr on the pipeline
accomplishes what we want here.

Differential Revision: https://phabricator.services.mozilla.com/D168388
parent 30acadee
No related branches found
No related tags found
Loading
......@@ -1132,14 +1132,6 @@ bool RTCRtpSender::SeamlessTrackSwitch(
// queued task after this is done (this happens in
// SetSenderTrackWithClosedCheck).
// Let sending be true if transceiver.[[CurrentDirection]] is "sendrecv" or
// "sendonly", and false otherwise.
bool sending = mTransceiver->IsSending();
if (sending && !aWithTrack) {
// If sending is true, and withTrack is null, have the sender stop sending.
Stop();
}
mPipeline->SetTrack(aWithTrack);
MaybeUpdateConduit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment