Bug 1313557 - remove the assertion from InternalInit() to avoid data race. r=jya
authorJW Wang <jwwang@mozilla.com>
Fri, 28 Oct 2016 11:43:03 +0800
changeset 319929 9c50b4bafe2ebb801bb5168b8ca5db2b02596e77
parent 319928 aeb0df69182a4c13eb06f9a7f18bd66c437ce245
child 319930 81b62062f0195b23b81c0330838eecae085948bf
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1313557
milestone52.0a1
Bug 1313557 - remove the assertion from InternalInit() to avoid data race. r=jya MozReview-Commit-ID: B9GCHOjMqVf
dom/media/platforms/agnostic/gmp/MediaDataDecoderProxy.cpp
--- a/dom/media/platforms/agnostic/gmp/MediaDataDecoderProxy.cpp
+++ b/dom/media/platforms/agnostic/gmp/MediaDataDecoderProxy.cpp
@@ -19,18 +19,16 @@ void
 MediaDataDecoderCallbackProxy::FlushComplete()
 {
   mProxyDecoder->FlushComplete();
 }
 
 RefPtr<MediaDataDecoder::InitPromise>
 MediaDataDecoderProxy::InternalInit()
 {
-  MOZ_ASSERT(!mIsShutdown);
-
   return mProxyDecoder->Init();
 }
 
 RefPtr<MediaDataDecoder::InitPromise>
 MediaDataDecoderProxy::Init()
 {
   MOZ_ASSERT(!mIsShutdown);