Bug 1316650 - Changes the NS_WARNING to an EME_LOG r?cpearce draft
authorJay Harris <jharris@mozilla.com>
Wed, 01 Feb 2017 10:42:37 +1300
changeset 468619 38c5a9275ba7e2bd7da94df854a78deab301f4e1
parent 464800 bd0cd9af94d9334b862d9891013fed56fb9b3b7c
child 544015 2e596c018511d1f1bda33eff5eb158957356c131
push id43535
push userbmo:jharris@mozilla.com
push dateTue, 31 Jan 2017 21:45:45 +0000
reviewerscpearce
bugs1316650
milestone53.0a1
Bug 1316650 - Changes the NS_WARNING to an EME_LOG r?cpearce MozReview-Commit-ID: 2dDipFVr2Ip
dom/media/gmp/GMPCDMProxy.cpp
--- a/dom/media/gmp/GMPCDMProxy.cpp
+++ b/dom/media/gmp/GMPCDMProxy.cpp
@@ -757,17 +757,17 @@ GMPCDMProxy::DecryptJob::PostResult(Decr
     NS_WARNING("CDM returned incorrect number of decrypted bytes");
   }
   if (aResult == Ok) {
     UniquePtr<MediaRawDataWriter> writer(mSample->CreateWriter());
     PodCopy(writer->Data(),
             aDecryptedData.Elements(),
             std::min<size_t>(aDecryptedData.Length(), mSample->Size()));
   } else if (aResult == NoKeyErr) {
-    NS_WARNING("CDM returned NoKeyErr");
+    EME_LOG("CDM returned NoKeyErr");
     // We still have the encrypted sample, so we can re-enqueue it to be
     // decrypted again once the key is usable again.
   } else {
     nsAutoCString str("CDM returned decode failure DecryptStatus=");
     str.AppendInt(aResult);
     NS_WARNING(str.get());
   }
   mPromise.Resolve(DecryptResult(aResult, mSample), __func__);