From 707d74421937e75e0c0581d6ac9facbd83dd20ea Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Wed, 27 Jul 2022 12:26:29 +0800 Subject: [PATCH] Issue #1977 - Allow WAV into media document. Based on https://hg.mozilla.org/integration/mozilla-inbound/rev/b3f7abd15aeb --- dom/media/DecoderTraits.cpp | 10 +--------- 1 file changed, 1 insertion(+), 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; }