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

Unified Diff: content/renderer/media/webmediasource_impl.cc

Issue 307263003: MSE: Always use new FrameProcessor's coded frame processing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep testing both types of frame processors for now Created 6 years, 7 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: content/renderer/media/webmediasource_impl.cc
diff --git a/content/renderer/media/webmediasource_impl.cc b/content/renderer/media/webmediasource_impl.cc
index 096928105d086408abb623f7550c351db167df42..963175db4c2fdbc5e1d39a052d693c311b7f9db6 100644
--- a/content/renderer/media/webmediasource_impl.cc
+++ b/content/renderer/media/webmediasource_impl.cc
@@ -43,19 +43,12 @@ WebMediaSource::AddStatus WebMediaSourceImpl::addSourceBuffer(
for (size_t i = 0; i < codecs.size(); ++i)
new_codecs[i] = codecs[i].utf8().data();
- bool use_legacy_frame_processor = false;
- switch (frame_processor_choice) {
- case UseLegacyFrameProcessor:
- use_legacy_frame_processor = true;
- break;
- case UseNewFrameProcessor:
- break;
- }
-
+ // Ignore |frame_processor_choice|. Instead, request the new FrameProcessor.
+ // TODO(wolenetz): Remove |frame_processor_choice| and LegacyFrameProcessor
+ // once the new FrameProcessor has stabilized. See http://crbug.com/249422.
WebMediaSource::AddStatus result =
static_cast<WebMediaSource::AddStatus>(
- demuxer_->AddId(id, type.utf8().data(), new_codecs,
- use_legacy_frame_processor));
+ demuxer_->AddId(id, type.utf8().data(), new_codecs, false));
if (result == WebMediaSource::AddStatusOk)
*source_buffer = new WebSourceBufferImpl(id, demuxer_);
« 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