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

Unified Diff: remoting/client/chromoting_client.cc

Issue 18452006: Make AudioPlayer optional in ChromotingClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make Wez's changes Created 7 years, 5 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 | « remoting/client/chromoting_client.h ('k') | remoting/protocol/connection_to_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 73a762d6ea53d3e469abbd50fe5ee997c76287d3..2d308c92c47a875d67ad1b1dc6b15b78a88a84ef 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -41,10 +41,12 @@ ChromotingClient::ChromotingClient(
new RectangleUpdateDecoder(client_context->main_task_runner(),
client_context->decode_task_runner(),
frame_consumer);
- audio_decode_scheduler_.reset(new AudioDecodeScheduler(
- client_context->main_task_runner(),
- client_context->audio_decode_task_runner(),
- audio_player.Pass()));
+ if (audio_player) {
+ audio_decode_scheduler_.reset(new AudioDecodeScheduler(
+ client_context->main_task_runner(),
+ client_context->audio_decode_task_runner(),
+ audio_player.Pass()));
+ }
}
ChromotingClient::~ChromotingClient() {
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/protocol/connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698