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

Unified Diff: talk/app/webrtc/test/peerconnectiontestwrapper.cc

Issue 1236023010: In PeerConnectionTestWrapper, put audio input on a separate thread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing potential deadlock in FakeAudioCaptureModule, caused by unnecessary call to Thread::Send Created 5 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 | « talk/app/webrtc/test/peerconnectiontestwrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/test/peerconnectiontestwrapper.cc
diff --git a/talk/app/webrtc/test/peerconnectiontestwrapper.cc b/talk/app/webrtc/test/peerconnectiontestwrapper.cc
index 91d4f508f77b9bbe191079b6cb257069e3bc332d..e4f63214b9552c8ad520a6fcb4b292d4b311d392 100644
--- a/talk/app/webrtc/test/peerconnectiontestwrapper.cc
+++ b/talk/app/webrtc/test/peerconnectiontestwrapper.cc
@@ -75,8 +75,13 @@ bool PeerConnectionTestWrapper::CreatePc(
return false;
}
+ media_input_thread_.reset(new rtc::Thread());
+ if (!media_input_thread_->Start()) {
+ return false;
+ }
+
fake_audio_capture_module_ = FakeAudioCaptureModule::Create(
- rtc::Thread::Current());
+ media_input_thread_.get());
pthatcher1 2015/07/23 17:13:18 I'd call it audio_capture_thread_ until we do some
if (fake_audio_capture_module_ == NULL) {
return false;
}
« no previous file with comments | « talk/app/webrtc/test/peerconnectiontestwrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698