mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Revert "Bug 1248570: Allow WAV into media element. r=lchristie"
This reverts commit b3f7abd15a
This commit is contained in:
parent
872324ab4d
commit
a9965a4cae
@ -344,6 +344,14 @@ IsWAVSupportedType(const nsACString& aType,
|
||||
/* static */
|
||||
bool DecoderTraits::ShouldHandleMediaType(const char* aMIMEType)
|
||||
{
|
||||
if (IsWaveType(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;
|
||||
}
|
||||
return CanHandleMediaType(aMIMEType, false, EmptyString()) != CANPLAY_NO;
|
||||
}
|
||||
|
||||
@ -686,7 +694,6 @@ bool DecoderTraits::IsSupportedInVideoDocument(const nsACString& aType)
|
||||
#endif
|
||||
IsMP3SupportedType(aType) ||
|
||||
IsAACSupportedType(aType) ||
|
||||
IsWAVSupportedType(aType) ||
|
||||
#ifdef MOZ_DIRECTSHOW
|
||||
IsDirectShowSupportedType(aType) ||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user