mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Backed out changeset dbb4b83be583 (bug 1208328)
This commit is contained in:
parent
565f5ee9a1
commit
7be668f681
@ -600,11 +600,7 @@ DOMMediaStream::RemoveTrack(MediaStreamTrack& aTrack)
|
||||
// to block it in the port. Doing this for a locked track is still OK as it
|
||||
// will first block the track, then destroy the port. Both cause the track to
|
||||
// end.
|
||||
// If the track has already ended, it's input port might be gone, so in those
|
||||
// cases blocking the underlying track should be avoided.
|
||||
if (!aTrack.Ended()) {
|
||||
BlockPlaybackTrack(toRemove);
|
||||
}
|
||||
BlockPlaybackTrack(toRemove);
|
||||
|
||||
DebugOnly<bool> removed = mTracks.RemoveElement(toRemove);
|
||||
MOZ_ASSERT(removed);
|
||||
|
Loading…
Reference in New Issue
Block a user