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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 11260053: Use correct thread for audio capturing and encoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 2b8b28b3ce1a76b849f7bf90c68caae84891e984..3e86f87134da7fc898571c9bfcd78f20c2eb1b6a 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -715,6 +715,7 @@ void HostProcess::StartHost() {
desktop_environment_factory_.get(),
CreateHostSessionManager(network_settings,
context_->url_request_context_getter()),
+ context_->audio_task_runner(),
context_->capture_task_runner(),
context_->encode_task_runner(),
context_->network_task_runner());
@@ -897,8 +898,9 @@ int main(int argc, char** argv) {
// TODO(sergeyu): Pass configuration parameters to the Linux-specific version
// of DesktopEnvironmentFactory when we have it.
remoting::VideoFrameCapturer::EnableXDamage(true);
- remoting::AudioCapturerLinux::SetPipeName(CommandLine::ForCurrentProcess()->
- GetSwitchValuePath(kAudioPipeSwitchName));
+ remoting::AudioCapturerLinux::SetPipeName(
+ CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ kAudioPipeSwitchName));
#endif // defined(OS_LINUX)
if (!context->Start())
« remoting/host/desktop_environment.cc ('K') | « remoting/host/plugin/host_script_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698