Backed out changeset dbb4b83be583 (bug 1208328)

This commit is contained in:
Carsten "Tomcat" Book 2016-06-09 15:18:31 +02:00
parent 565f5ee9a1
commit 7be668f681

View File

@ -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);