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

Unified Diff: media/audio/audio_input_device.cc

Issue 1830933002: Making AudioThread::Thread restartable *** DRAFT *** (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: media/audio/audio_input_device.cc
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
index f5e9ae6c635765139e43a579cb9e15b47bb7ef00..acb02c1b61dfd3fbc162de2347a79fc5872d7b6c 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -146,8 +146,8 @@ void AudioInputDevice::OnStreamCreated(
DCHECK(audio_thread_.IsStopped());
audio_callback_.reset(new AudioInputDevice::AudioThreadCallback(
audio_parameters_, handle, length, total_segments, callback_));
- audio_thread_.Start(
- audio_callback_.get(), socket_handle, "AudioInputDevice", true);
+ audio_thread_.Start("AudioInputDevice", true);
+ audio_thread_.Play(audio_callback_.get(), socket_handle);
state_ = RECORDING;
ipc_->RecordStream();

Powered by Google App Engine
This is Rietveld 408576698