Bug 1313557 - remove the assertion from InternalInit() to avoid data race. draft
authorJW Wang <jwwang@mozilla.com>
Fri, 28 Oct 2016 11:43:03 +0800
changeset 430770 01c8c0840aeda6a10027e4b85f6613ecfad13b17
parent 430769 fd00a41a49ad96c2f34d4a126b3605ff0a047220
child 535254 6ef7a7570a317e16b301d50de0280c8e3d7da7a3
push id33880
push userjwwang@mozilla.com
push dateFri, 28 Oct 2016 03:43:37 +0000
bugs1313557
milestone52.0a1
Bug 1313557 - remove the assertion from InternalInit() to avoid data race. 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);