Issue #1977 - Follow-up: Correct pref check to be selective on wave formats only.

This commit is contained in:
Moonchild 2022-09-22 13:14:17 +00:00 committed by roytam1
commit d2276a48d2

View file

@ -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;
}