From 615dbcd41f79e2b0410940cfc45e8941468f70a6 Mon Sep 17 00:00:00 2001 From: JW Wang Date: Mon, 9 Feb 2015 07:32:59 +0800 Subject: [PATCH] Bug 1130932 - allow GMPDecryptorParent::RecvKeyStatusChanged calls after Close(). r=edwin. --- dom/media/gmp/GMPDecryptorParent.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dom/media/gmp/GMPDecryptorParent.cpp b/dom/media/gmp/GMPDecryptorParent.cpp index b87e70b1962..a64a7b518e9 100644 --- a/dom/media/gmp/GMPDecryptorParent.cpp +++ b/dom/media/gmp/GMPDecryptorParent.cpp @@ -269,11 +269,9 @@ GMPDecryptorParent::RecvKeyStatusChanged(const nsCString& aSessionId, InfallibleTArray&& aKeyId, const GMPMediaKeyStatus& aStatus) { - if (!mIsOpen) { - NS_WARNING("Trying to use a dead GMP decrypter!"); - return false; + if (mIsOpen) { + mCallback->KeyStatusChanged(aSessionId, aKeyId, aStatus); } - mCallback->KeyStatusChanged(aSessionId, aKeyId, aStatus); return true; }