| 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()) {
|
|
|