diff options
author | Jeroen Vreeken <jeroen@vreeken.net> | 2019-07-11 16:36:22 +0200 |
---|---|---|
committer | Jeroen Vreeken <jeroen@vreeken.net> | 2019-07-11 16:36:22 +0200 |
commit | 31addeaac8841867008699478ef55e1c1b3d68a7 (patch) | |
tree | cd580c19b66ce62987ece8df5d2ba7384c329502 /dom/media/mediasource/MediaSource.cpp | |
parent | 18f9b185b67120ba88f5e643b7413ca06c497383 (diff) | |
download | UXP-31addeaac8841867008699478ef55e1c1b3d68a7.tar UXP-31addeaac8841867008699478ef55e1c1b3d68a7.tar.gz UXP-31addeaac8841867008699478ef55e1c1b3d68a7.tar.lz UXP-31addeaac8841867008699478ef55e1c1b3d68a7.tar.xz UXP-31addeaac8841867008699478ef55e1c1b3d68a7.zip |
Make matroska mime type checking more consistent.
Diffstat (limited to 'dom/media/mediasource/MediaSource.cpp')
-rw-r--r-- | dom/media/mediasource/MediaSource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/media/mediasource/MediaSource.cpp b/dom/media/mediasource/MediaSource.cpp index a262ff52c..1c276cdc1 100644 --- a/dom/media/mediasource/MediaSource.cpp +++ b/dom/media/mediasource/MediaSource.cpp @@ -118,7 +118,8 @@ MediaSource::IsTypeSupported(const nsAString& aType, DecoderDoctorDiagnostics* a } return NS_OK; } - if (mimeType.EqualsASCII("audio/webm")) { + if (mimeType.EqualsASCII("audio/webm") || + mimeType.EqualsASCII("audio/x-matroska")) { if (!(Preferences::GetBool("media.mediasource.webm.enabled", false) || Preferences::GetBool("media.mediasource.webm.audio.enabled", true))) { return NS_ERROR_DOM_NOT_SUPPORTED_ERR; |