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 346759 9c50b4bafe2ebb801bb5168b8ca5db2b02596e77
parent 346758 aeb0df69182a4c13eb06f9a7f18bd66c437ce245
child 346760 81b62062f0195b23b81c0330838eecae085948bf
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [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);