Bug 1197151 - Correct TaskQueue asertion. r=jya
authorAlfredo Yang <ayang@mozilla.com>
Sun, 23 Aug 2015 19:36:00 -0400
changeset 259002 badac21940780338d5da32919297d656dd191e03
parent 259001 e13c23f424f664651417fffe914efa7348106249
child 259003 858873762b603637e889a76c1b85dd09ab64ed32
push id29268
push userryanvm@gmail.com
push dateTue, 25 Aug 2015 00:37:23 +0000
treeherdermozilla-central@08015770c9d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1197151
milestone43.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 1197151 - Correct TaskQueue asertion. r=jya
dom/media/platforms/gonk/GonkVideoDecoderManager.cpp
--- a/dom/media/platforms/gonk/GonkVideoDecoderManager.cpp
+++ b/dom/media/platforms/gonk/GonkVideoDecoderManager.cpp
@@ -84,17 +84,17 @@ GonkVideoDecoderManager::Init(MediaDataD
   if (!IsValidVideoRegion(frameSize, pictureRect, displaySize)) {
     GVDM_LOG("It is not a valid region");
     return InitPromise::CreateAndReject(DecoderFailureReason::INIT_ERROR, __func__);
   }
 
   mReaderCallback = aCallback;
 
   mReaderTaskQueue = AbstractThread::GetCurrent()->AsTaskQueue();
-  MOZ_ASSERT(!mReaderTaskQueue);
+  MOZ_ASSERT(mReaderTaskQueue);
 
   if (mLooper.get() != nullptr) {
     return InitPromise::CreateAndReject(DecoderFailureReason::INIT_ERROR, __func__);
   }
   // Create ALooper
   mLooper = new ALooper;
   mManagerLooper = new ALooper;
   mManagerLooper->setName("GonkVideoDecoderManager");