summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2022-07-27 12:26:29 +0800
committerJob Bautista <jobbautista9@protonmail.com>2022-07-27 14:16:57 +0800
commit28e73defa3021293bfd220bbceed04d04fd169e7 (patch)
treef5fa12ebfce94137649cfe5ed971e2e9e8b3647b
parentcfe63a24341e345f67e3f02a4dc5ecaa8c53f1d5 (diff)
downloaduxp-28e73defa3021293bfd220bbceed04d04fd169e7.tar.gz
Issue #1977 - Allow WAV into media document.
Based on https://hg.mozilla.org/integration/mozilla-inbound/rev/b3f7abd15aeb
-rw-r--r--dom/media/DecoderTraits.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/dom/media/DecoderTraits.cpp b/dom/media/DecoderTraits.cpp
index 6aa44f3e57..19596572a0 100644
--- a/dom/media/DecoderTraits.cpp
+++ b/dom/media/DecoderTraits.cpp
@@ -278,15 +278,6 @@ DecoderTraits::CanHandleContentType(const MediaContentType& aContentType,
bool DecoderTraits::ShouldHandleMediaType(const char* aMIMEType,
DecoderDoctorDiagnostics* aDiagnostics)
{
- if (IsWaveSupportedType(nsDependentCString(aMIMEType))) {
- // We should not return true for Wave types, since there are some
- // Wave codecs actually in use in the wild that we don't support, and
- // we should allow those to be handled by plugins or helper apps.
- // Furthermore people can play Wave files on most platforms by other
- // means.
- return false;
- }
-
// If an external plugin which can handle quicktime video is available
// (and not disabled), prefer it over native playback as there several
// codecs found in the wild that we do not handle.
@@ -414,6 +405,7 @@ bool DecoderTraits::IsSupportedInVideoDocument(const nsACString& aType)
#endif
IsMP3SupportedType(aType) ||
IsAACSupportedType(aType) ||
+ IsWaveSupportedType(aType) ||
IsFlacSupportedType(aType) ||
false;
}