summaryrefslogtreecommitdiffstats
path: root/dom/media/mediasource/MediaSource.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2019-07-11 14:56:41 +0000
committerGitHub <noreply@github.com>2019-07-11 14:56:41 +0000
commit04a7c6bb4e4048369e0a635dc02e9d83bbd59f87 (patch)
treecd580c19b66ce62987ece8df5d2ba7384c329502 /dom/media/mediasource/MediaSource.cpp
parentdd924323c3cda022493cd78d42da190577be20cf (diff)
parent31addeaac8841867008699478ef55e1c1b3d68a7 (diff)
downloadUXP-04a7c6bb4e4048369e0a635dc02e9d83bbd59f87.tar
UXP-04a7c6bb4e4048369e0a635dc02e9d83bbd59f87.tar.gz
UXP-04a7c6bb4e4048369e0a635dc02e9d83bbd59f87.tar.lz
UXP-04a7c6bb4e4048369e0a635dc02e9d83bbd59f87.tar.xz
UXP-04a7c6bb4e4048369e0a635dc02e9d83bbd59f87.zip
Merge pull request #1174 from JeroenVreeken/master
Report matroska containers as supported and also support h.264 content in a matroska container file
Diffstat (limited to 'dom/media/mediasource/MediaSource.cpp')
-rw-r--r--dom/media/mediasource/MediaSource.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/media/mediasource/MediaSource.cpp b/dom/media/mediasource/MediaSource.cpp
index 152c0085a..1c276cdc1 100644
--- a/dom/media/mediasource/MediaSource.cpp
+++ b/dom/media/mediasource/MediaSource.cpp
@@ -110,14 +110,16 @@ MediaSource::IsTypeSupported(const nsAString& aType, DecoderDoctorDiagnostics* a
}
return NS_OK;
}
- if (mimeType.EqualsASCII("video/webm")) {
+ if (mimeType.EqualsASCII("video/webm") ||
+ mimeType.EqualsASCII("video/x-matroska")) {
if (!(Preferences::GetBool("media.mediasource.webm.enabled", false) ||
IsWebMForced(aDiagnostics))) {
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}
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;