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

Unified Diff: media/cast/video_receiver/video_decoder.cc

Issue 80383006: Cast: Forcing codec initialization on a designated thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responding to review Created 7 years, 1 month 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/cast/video_receiver/video_decoder.cc
diff --git a/media/cast/video_receiver/video_decoder.cc b/media/cast/video_receiver/video_decoder.cc
index 03f7a25d44bcf869de63c904a117f93768bd2f44..e4d473866d1a932f428174ae91a3103728ff2725 100644
--- a/media/cast/video_receiver/video_decoder.cc
+++ b/media/cast/video_receiver/video_decoder.cc
@@ -18,8 +18,7 @@ VideoDecoder::VideoDecoder(const VideoReceiverConfig& video_config,
vp8_decoder_() {
switch (video_config.codec) {
case kVp8:
- // Initializing to use one core.
- vp8_decoder_.reset(new Vp8Decoder(1, cast_environment));
+ vp8_decoder_.reset(new Vp8Decoder(cast_environment));
break;
case kH264:
NOTIMPLEMENTED();
@@ -32,6 +31,11 @@ VideoDecoder::VideoDecoder(const VideoReceiverConfig& video_config,
VideoDecoder::~VideoDecoder() {}
+void VideoDecoder::InitDecoder() {
+ // Initializing to use one core.
+ vp8_decoder_->InitDecoder();
+}
+
bool VideoDecoder::DecodeVideoFrame(const EncodedVideoFrame* encoded_frame,
const base::TimeTicks render_time,
const VideoFrameDecodedCallback&

Powered by Google App Engine
This is Rietveld 408576698