Bug 1457499 - P2. Fix compilation warning. r?bryce draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Wed, 16 May 2018 11:03:05 +0200
changeset 795798 a13024cbb7cf1a9971ac58e934055069001f8f7b
parent 795797 69223ef863c9f972e1af1af5570da07d1e48f720
child 795799 5542fab98f9472bf68f455a93d6043cb52c86fb0
push id110080
push userbmo:jyavenard@mozilla.com
push dateWed, 16 May 2018 16:12:44 +0000
reviewersbryce
bugs1457499
milestone62.0a1
Bug 1457499 - P2. Fix compilation warning. r?bryce TaskQueue::Dispatch returns a nsresult which must be checked. MozReview-Commit-ID: 7Tl7O96rQNt
dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
--- a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
+++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
@@ -236,12 +236,14 @@ WMFMediaDataDecoder::SetSeekThreshold(co
 
   RefPtr<WMFMediaDataDecoder> self = this;
   nsCOMPtr<nsIRunnable> runnable =
     NS_NewRunnableFunction("WMFMediaDataDecoder::SetSeekThreshold",
                            [self, aTime]() {
     media::TimeUnit threshold = aTime;
     self->mMFTManager->SetSeekThreshold(threshold);
   });
-  mTaskQueue->Dispatch(runnable.forget());
+  nsresult rv = mTaskQueue->Dispatch(runnable.forget());
+  MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv));
+  Unused << rv;
 }
 
 } // namespace mozilla