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

Unified Diff: remoting/protocol/connection_to_host.cc

Issue 577473002: Simplify VideoReader and VideoWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: remoting/protocol/connection_to_host.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index 71c7764fd383d7a859385ced6c1e5ce5662e4000..92822e9e7c25ff25453528767524b1e2099b45f6 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -197,10 +197,11 @@ void ConnectionToHost::OnSessionStateChange(
base::Bind(&ConnectionToHost::OnChannelInitialized,
base::Unretained(this)));
- video_reader_ = VideoReader::Create(session_->config());
- video_reader_->Init(session_.get(), monitored_video_stub_.get(),
+ video_reader_.reset(new VideoReader());
+ video_reader_->Init(session_.get(), session_->config().video_config(),
base::Bind(&ConnectionToHost::OnChannelInitialized,
base::Unretained(this)));
+ video_reader_->set_video_stub(monitored_video_stub_.get());
audio_reader_ = AudioReader::Create(session_->config());
if (audio_reader_.get()) {

Powered by Google App Engine
This is Rietveld 408576698