Bug 1271483 - p4. Fixed console reporting for Widevine case - r=cpearce draft
authorGerald Squelart <gsquelart@mozilla.com>
Mon, 16 May 2016 15:43:19 +1000
changeset 380467 5034c13188262c8f7ff83b80efbe0fb55078cf57
parent 380466 91962b143ae4813c017fb11b14a9d9fd374f6ce6
child 380468 fd0e44afb3b33ff03324e1eb2c23117526941047
push id21229
push usergsquelart@mozilla.com
push dateWed, 22 Jun 2016 01:27:56 +0000
reviewerscpearce
bugs1271483
milestone50.0a1
Bug 1271483 - p4. Fixed console reporting for Widevine case - r=cpearce Message was not including the actual Key System at issue. MozReview-Commit-ID: CavgSGmYCa3
dom/media/DecoderDoctorDiagnostics.cpp
--- a/dom/media/DecoderDoctorDiagnostics.cpp
+++ b/dom/media/DecoderDoctorDiagnostics.cpp
@@ -420,17 +420,17 @@ DecoderDoctorDocumentWatcher::Synthesize
 
   // Look at Key System issues first, as they may influence format checks.
   if (!unsupportedKeySystems.IsEmpty() && supportedKeySystems.IsEmpty()) {
     // No supported key systems!
     switch (lastKeySystemIssue) {
       case DecoderDoctorDiagnostics::eWidevineWithNoWMF:
         if (CheckSilverlight() != eSilverlightEnabled) {
           DD_DEBUG("DecoderDoctorDocumentWatcher[%p, doc=%p]::SynthesizeAnalysis() - unsupported key systems: %s, widevine without WMF nor Silverlight",
-                   this, mDocument, NS_ConvertUTF16toUTF8(unplayableFormats).get());
+                   this, mDocument, NS_ConvertUTF16toUTF8(unsupportedKeySystems).get());
           ReportAnalysis(dom::DecoderDoctorNotificationType::Platform_decoder_not_found,
                          "MediaWidevineNoWMFNoSilverlight", NS_LITERAL_STRING(""));
           return;
         }
         break;
       default:
         break;
     }