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

Unified Diff: media/blink/key_system_config_selector.cc

Issue 2700893003: Various MimeUtil cleanups. (Closed)
Patch Set: Fix default codecs return Created 3 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/blink/key_system_config_selector.cc
diff --git a/media/blink/key_system_config_selector.cc b/media/blink/key_system_config_selector.cc
index 57998696127b922bcb7bc8ffda611e29826626cf..7f35733665dc0ca66199522aaf2d7ba146ac079a 100644
--- a/media/blink/key_system_config_selector.cc
+++ b/media/blink/key_system_config_selector.cc
@@ -299,7 +299,7 @@ bool IsSupportedMediaFormat(const std::string& container_mime_type,
const std::string& codecs,
bool use_aes_decryptor) {
std::vector<std::string> codec_vector;
- ParseCodecString(codecs, &codec_vector, false);
+ SplitCodecsToVector(codecs, &codec_vector, false);
// AesDecryptor decrypts the stream in the demuxer before it reaches the
// decoder so check whether the media format is supported when clear.
SupportsType support_result =
@@ -339,7 +339,7 @@ bool KeySystemConfigSelector::IsSupportedContentType(
// This check does not handle extended codecs, so extended codec information
// is stripped (extended codec information was checked above).
std::vector<std::string> stripped_codec_vector;
- ParseCodecString(codecs, &stripped_codec_vector, true);
+ SplitCodecsToVector(codecs, &stripped_codec_vector, true);
EmeConfigRule codecs_rule = key_systems_->GetContentTypeConfigRule(
key_system, media_type, container_lower, stripped_codec_vector);
if (!config_state->IsRuleSupported(codecs_rule))

Powered by Google App Engine
This is Rietveld 408576698