Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: media/base/mime_util.cc

Issue 1690063002: Fix mime type mappings when the unified media pipeline is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/mime_util.cc
diff --git a/media/base/mime_util.cc b/media/base/mime_util.cc
index e1b74e5bd2b080efc12659ce157b8c9783eb0013..6eba4fc70b70bf5485708538558659fc858612e7 100644
--- a/media/base/mime_util.cc
+++ b/media/base/mime_util.cc
@@ -19,7 +19,15 @@ bool IsSupportedMediaMimeType(const std::string& mime_type) {
SupportsType IsSupportedMediaFormat(const std::string& mime_type,
const std::vector<std::string>& codecs) {
- return g_media_mime_util.Pointer()->IsSupportedMediaFormat(mime_type, codecs);
+ return g_media_mime_util.Pointer()->IsSupportedMediaFormat(mime_type, codecs,
+ false);
+}
+
+SupportsType IsSupportedEncryptedMediaFormat(
+ const std::string& mime_type,
+ const std::vector<std::string>& codecs) {
+ return g_media_mime_util.Pointer()->IsSupportedMediaFormat(mime_type, codecs,
+ true);
}
void ParseCodecString(const std::string& codecs,

Powered by Google App Engine
This is Rietveld 408576698