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

Unified Diff: remoting/protocol/connection_to_client.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
« no previous file with comments | « no previous file | remoting/protocol/connection_to_host.cc » ('j') | remoting/protocol/video_reader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_client.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index a6d31434ab57589cd01a5d9c44b7fc08d48711c2..9ffd38f6fe2e6a71318ccd55e907acbcd4a029a1 100644
--- a/remoting/protocol/connection_to_client.cc
+++ b/remoting/protocol/connection_to_client.cc
@@ -134,9 +134,11 @@ void ConnectionToClient::OnSessionStateChange(Session::State state) {
event_dispatcher_->set_sequence_number_callback(base::Bind(
&ConnectionToClient::UpdateSequenceNumber, base::Unretained(this)));
- video_writer_ = VideoWriter::Create(session_->config());
- video_writer_->Init(session_.get(), base::Bind(
- &ConnectionToClient::OnChannelInitialized, base::Unretained(this)));
+ video_writer_.reset(new VideoWriter());
+ video_writer_->Init(session_.get(),
Wez 2014/09/16 23:10:06 nit: Does Init() need to be separate from construc
Sergey Ulanov 2014/09/17 21:52:06 Yes. It's implemented in the ChannelDispatcherBase
Wez 2014/09/18 00:23:54 Acknowledged.
+ session_->config().video_config(),
+ base::Bind(&ConnectionToClient::OnChannelInitialized,
+ base::Unretained(this)));
audio_writer_ = AudioWriter::Create(session_->config());
if (audio_writer_.get()) {
« no previous file with comments | « no previous file | remoting/protocol/connection_to_host.cc » ('j') | remoting/protocol/video_reader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698