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

Unified Diff: content/renderer/media/recorder/media_recorder_handler.cc

Issue 2700893003: Various MimeUtil cleanups. (Closed)
Patch Set: Feedback 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
« no previous file with comments | « no previous file | media/base/mime_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/recorder/media_recorder_handler.cc
diff --git a/content/renderer/media/recorder/media_recorder_handler.cc b/content/renderer/media/recorder/media_recorder_handler.cc
index 9fcd2b9c00f90c078f0f22a1d49013707b699394..580e110306aaef79e876e563e001872f41e7d296 100644
--- a/content/renderer/media/recorder/media_recorder_handler.cc
+++ b/content/renderer/media/recorder/media_recorder_handler.cc
@@ -98,7 +98,7 @@ bool MediaRecorderHandler::canSupportMimeType(
video ? arraysize(kVideoCodecs) : arraysize(kAudioCodecs);
std::vector<std::string> codecs_list;
- media::ParseCodecString(web_codecs.utf8(), &codecs_list, true /* strip */);
+ media::SplitCodecsToVector(web_codecs.utf8(), &codecs_list, true /* strip */);
for (const auto& codec : codecs_list) {
auto* const* found = std::find_if(
&codecs[0], &codecs[codecs_count], [&codec](const char* name) {
« no previous file with comments | « no previous file | media/base/mime_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698