mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1142835 - Null check mPlugin on GMPAudioDecoderParent shutdown - r=cpearce
This commit is contained in:
parent
0250d6859b
commit
b913a19340
@ -140,7 +140,7 @@ nsresult
|
|||||||
GMPAudioDecoderParent::Close()
|
GMPAudioDecoderParent::Close()
|
||||||
{
|
{
|
||||||
LOGD(("%s: %p", __FUNCTION__, this));
|
LOGD(("%s: %p", __FUNCTION__, this));
|
||||||
MOZ_ASSERT(mPlugin->GMPThread() == NS_GetCurrentThread());
|
MOZ_ASSERT(!mPlugin || mPlugin->GMPThread() == NS_GetCurrentThread());
|
||||||
|
|
||||||
// Consumer is done with us; we can shut down. No more callbacks should
|
// Consumer is done with us; we can shut down. No more callbacks should
|
||||||
// be made to mCallback. Note: do this before Shutdown()!
|
// be made to mCallback. Note: do this before Shutdown()!
|
||||||
@ -160,7 +160,7 @@ nsresult
|
|||||||
GMPAudioDecoderParent::Shutdown()
|
GMPAudioDecoderParent::Shutdown()
|
||||||
{
|
{
|
||||||
LOGD(("%s: %p", __FUNCTION__, this));
|
LOGD(("%s: %p", __FUNCTION__, this));
|
||||||
MOZ_ASSERT(mPlugin->GMPThread() == NS_GetCurrentThread());
|
MOZ_ASSERT(!mPlugin || mPlugin->GMPThread() == NS_GetCurrentThread());
|
||||||
|
|
||||||
if (mShuttingDown) {
|
if (mShuttingDown) {
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user