Backed out changeset c0c023815311 (bug 1294605)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 20 Oct 2016 20:03:15 +0200
changeset 318777 f5feb30dd1755df0eafe2107df5f91426f8833f9
parent 318763 3f0aeafe59c40c5e92ba9636fa718cf26088e127
child 318778 a8ae71a79bb863191d10a98eef33f3ffe95a47fb
push id33367
push userkwierso@gmail.com
push dateThu, 20 Oct 2016 18:36:17 +0000
treeherderautoland@c022728779df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1294605
milestone52.0a1
backs outc0c023815311c2632a9763b696492342b0e829e1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset c0c023815311 (bug 1294605)
dom/media/MediaStreamTrack.cpp
--- a/dom/media/MediaStreamTrack.cpp
+++ b/dom/media/MediaStreamTrack.cpp
@@ -409,23 +409,16 @@ MediaStreamTrack::NotifyEnded()
   MOZ_ASSERT(NS_IsMainThread());
 
   if (Ended()) {
     return;
   }
 
   LOG(LogLevel::Info, ("MediaStreamTrack %p ended", this));
 
-  if (!mSource) {
-    MOZ_ASSERT(false);
-    return;
-  }
-
-  mSource->UnregisterSink(this);
-
   mReadyState = MediaStreamTrackState::Ended;
 
   DispatchTrustedEvent(NS_LITERAL_STRING("ended"));
 }
 
 DOMMediaStream*
 MediaStreamTrack::GetInputDOMStream()
 {