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

Unified Diff: media/audio/audio_input_device.cc

Issue 2622073003: Fix getUserMedia so that failure is reported for invalid audio sources. (Closed)
Patch Set: Switch to std::vector and std::unique_ptr Created 3 years, 11 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 ed5e79d37e2ef5e49f4a07ff5b67eab141a425af..aa44d9d7552e0c4f40cf550465aa891fdf8edec9 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -292,6 +292,12 @@ void AudioInputDevice::AudioThreadCallback::MapSharedMemory() {
audio_buses_.push_back(std::move(audio_bus));
ptr += segment_length_;
}
+
+ // Indicate that browser side capture initialization has succeeded and IPC
+ // channel initialized. This effectively completes the
+ // AudioCapturerSource::Start()' phase as far as the caller of that function
+ // is concerned.
+ capture_callback_->OnCaptureStarted();
}
void AudioInputDevice::AudioThreadCallback::Process(uint32_t pending_data) {
« no previous file with comments | « content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc ('k') | media/audio/audio_input_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698