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

Unified Diff: media/base/android/media_codec_util.cc

Issue 1900843003: Fix a bug that mime type isn't passed when checking Codec capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_util.cc
diff --git a/media/base/android/media_codec_util.cc b/media/base/android/media_codec_util.cc
index 0365aa3686357b670a8ba4f59c6ef2257c47e77d..6e00c57bd83ba71057362ca25c806d24c4e70fad 100644
--- a/media/base/android/media_codec_util.cc
+++ b/media/base/android/media_codec_util.cc
@@ -178,7 +178,8 @@ bool MediaCodecUtil::RegisterMediaCodecUtil(JNIEnv* env) {
// static
bool MediaCodecUtil::IsVp8DecoderAvailable() {
- return IsMediaCodecAvailable() && IsDecoderSupportedByDevice("vp8");
+ return IsMediaCodecAvailable() &&
+ IsDecoderSupportedByDevice(CodecTypeToAndroidMimeType("vp8"));
}
// static
@@ -190,7 +191,8 @@ bool MediaCodecUtil::IsVp8EncoderAvailable() {
// static
bool MediaCodecUtil::IsVp9DecoderAvailable() {
- return IsMediaCodecAvailable() && IsDecoderSupportedByDevice("vp9");
+ return IsMediaCodecAvailable() &&
+ IsDecoderSupportedByDevice(CodecTypeToAndroidMimeType("vp9"));
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698