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

Unified Diff: media/blink/webmediasource_impl.cc

Issue 2226443002: Support multiple media tracks in MSE / ChunkDemuxer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mp4 format is not supported on some trybots, so use webm Created 4 years, 3 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/webmediasource_impl.cc
diff --git a/media/blink/webmediasource_impl.cc b/media/blink/webmediasource_impl.cc
index 7aed8dbd142fe9da3108024057ed3840f509633c..579937b56c429523d877f51181e9848f599091a5 100644
--- a/media/blink/webmediasource_impl.cc
+++ b/media/blink/webmediasource_impl.cc
@@ -38,12 +38,8 @@ WebMediaSource::AddStatus WebMediaSourceImpl::addSourceBuffer(
blink::WebSourceBuffer** source_buffer) {
std::string id = base::GenerateGUID();
- std::vector<std::string> parsed_codec_ids;
- media::ParseCodecString(codecs.utf8().data(), &parsed_codec_ids, false);
-
- WebMediaSource::AddStatus result =
- static_cast<WebMediaSource::AddStatus>(
- demuxer_->AddId(id, type.utf8().data(), parsed_codec_ids));
+ WebMediaSource::AddStatus result = static_cast<WebMediaSource::AddStatus>(
+ demuxer_->AddId(id, type.utf8().data(), codecs.utf8().data()));
if (result == WebMediaSource::AddStatusOk)
*source_buffer = new WebSourceBufferImpl(id, demuxer_);

Powered by Google App Engine
This is Rietveld 408576698