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

Unified Diff: remoting/protocol/webrtc_connection_to_host.cc

Issue 2562893003: Limit target encoder bitrate change frequency in the frame scheduler. (Closed)
Patch Set: . Created 4 years 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/webrtc_frame_scheduler_simple.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_connection_to_host.cc
diff --git a/remoting/protocol/webrtc_connection_to_host.cc b/remoting/protocol/webrtc_connection_to_host.cc
index 1e0c78878df2742c8b2c8b9469ae6faf8db45f79..27b662b2767c93ba678fed2aa0afdcb96c5e84c4 100644
--- a/remoting/protocol/webrtc_connection_to_host.cc
+++ b/remoting/protocol/webrtc_connection_to_host.cc
@@ -37,7 +37,8 @@ void WebrtcConnectionToHost::Connect(
transport_.reset(new WebrtcTransport(
jingle_glue::JingleThreadWrapper::current(), transport_context, this));
- transport_->audio_module()->SetAudioTaskRunner(audio_decode_task_runner_);
+ if (audio_decode_task_runner_)
+ transport_->audio_module()->SetAudioTaskRunner(audio_decode_task_runner_);
session_ = std::move(session);
session_->SetEventHandler(this);
« no previous file with comments | « no previous file | remoting/protocol/webrtc_frame_scheduler_simple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698