summaryrefslogtreecommitdiffstats
path: root/dom/media/DecoderDoctorDiagnostics.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-20 10:06:50 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-20 10:06:50 +0100
commitf1e863a490ae20173210a53f516e146ebc677a36 (patch)
treec5e797f135ce19a0cc9a946219bd0bf424b25e8b /dom/media/DecoderDoctorDiagnostics.cpp
parent20e533f6b5595182f69560f50122a0873daaaafb (diff)
downloadUXP-f1e863a490ae20173210a53f516e146ebc677a36.tar
UXP-f1e863a490ae20173210a53f516e146ebc677a36.tar.gz
UXP-f1e863a490ae20173210a53f516e146ebc677a36.tar.lz
UXP-f1e863a490ae20173210a53f516e146ebc677a36.tar.xz
UXP-f1e863a490ae20173210a53f516e146ebc677a36.zip
Remove more Vista checks in dom/media
Diffstat (limited to 'dom/media/DecoderDoctorDiagnostics.cpp')
-rw-r--r--dom/media/DecoderDoctorDiagnostics.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/dom/media/DecoderDoctorDiagnostics.cpp b/dom/media/DecoderDoctorDiagnostics.cpp
index 91c2d8dfb..778e8c4c5 100644
--- a/dom/media/DecoderDoctorDiagnostics.cpp
+++ b/dom/media/DecoderDoctorDiagnostics.cpp
@@ -576,16 +576,9 @@ DecoderDoctorDocumentWatcher::SynthesizeAnalysis()
// going through expected decoders from most to least desirable.
#if defined(XP_WIN)
if (!formatsRequiringWMF.IsEmpty()) {
- if (IsVistaOrLater()) {
- DD_INFO("DecoderDoctorDocumentWatcher[%p, doc=%p]::SynthesizeAnalysis() - unplayable formats: %s -> Cannot play media because WMF was not found",
- this, mDocument, NS_ConvertUTF16toUTF8(formatsRequiringWMF).get());
- ReportAnalysis(mDocument, sMediaWMFNeeded, false, formatsRequiringWMF);
- } else {
- DD_INFO("DecoderDoctorDocumentWatcher[%p, doc=%p]::SynthesizeAnalysis() - unplayable formats: %s -> Cannot play media before Windows Vista",
- this, mDocument, NS_ConvertUTF16toUTF8(formatsRequiringWMF).get());
- ReportAnalysis(mDocument, sMediaUnsupportedBeforeWindowsVista,
- false, formatsRequiringWMF);
- }
+ DD_INFO("DecoderDoctorDocumentWatcher[%p, doc=%p]::SynthesizeAnalysis() - unplayable formats: %s -> Cannot play media because WMF was not found",
+ this, mDocument, NS_ConvertUTF16toUTF8(formatsRequiringWMF).get());
+ ReportAnalysis(mDocument, sMediaWMFNeeded, false, formatsRequiringWMF);
return;
}
#endif