Bug 1397941 - Fix DecodedStream labeling bug (r=jwwang)
authorBill McCloskey <billm@mozilla.com>
Thu, 07 Sep 2017 15:32:25 -0700
changeset 429730 f3f0ff3546ee61f2c4c9ded7648b9feb2e4f8b76
parent 429729 ec8757f33153587f157da793a30e2488cd7bae86
child 429731 96767196afa83853df8212c03c4db443f2686989
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1397941
milestone57.0a1
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
Bug 1397941 - Fix DecodedStream labeling bug (r=jwwang) MozReview-Commit-ID: KL5XzLJuWgz
dom/media/mediasink/DecodedStream.cpp
--- a/dom/media/mediasink/DecodedStream.cpp
+++ b/dom/media/mediasink/DecodedStream.cpp
@@ -407,17 +407,17 @@ DecodedStream::DestroyData(UniquePtr<Dec
   }
 
   mOutputListener.Disconnect();
 
   DecodedStreamData* data = aData.release();
   data->Forget();
   nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction("DecodedStream::DestroyData",
                                                    [=]() { delete data; });
-  mAbstractMainThread->Dispatch(r.forget());
+  NS_DispatchToMainThread(r.forget());
 }
 
 void
 DecodedStream::SetPlaying(bool aPlaying)
 {
   AssertOwnerThread();
 
   // Resume/pause matters only when playback started.