diff options
-rw-r--r-- | dom/media/DecoderTraits.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/media/DecoderTraits.cpp b/dom/media/DecoderTraits.cpp index d4968c0b4e..2309a80202 100644 --- a/dom/media/DecoderTraits.cpp +++ b/dom/media/DecoderTraits.cpp @@ -285,7 +285,8 @@ bool DecoderTraits::ShouldHandleMediaType(const char* aMIMEType, // behavior, where they use their helper apps to open WAV audio // instead. We should allow this old behavior behind a pref for // those who want it. - if (!Preferences::GetBool("media.wave.play-stand-alone", true)) { + if (!Preferences::GetBool("media.wave.play-stand-alone", true) && + IsWaveSupportedType(nsDependentCString(aMIMEType))) { return false; } |