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

Unified Diff: content/renderer/pepper/pepper_platform_audio_input.cc

Issue 2941773002: Added initial muted state to stream creation callback, to avoid races. (Closed)
Patch Set: Added mute information to DoCompleteCreation log message. Created 3 years, 6 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 | « content/renderer/pepper/pepper_platform_audio_input.h ('k') | media/audio/audio_input_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_platform_audio_input.cc
diff --git a/content/renderer/pepper/pepper_platform_audio_input.cc b/content/renderer/pepper/pepper_platform_audio_input.cc
index 80580711bf5af48832c73b1fb98f082c3ba40980..b40b0e04cd778c0eed0c92e0082a8cd00ab20aab 100644
--- a/content/renderer/pepper/pepper_platform_audio_input.cc
+++ b/content/renderer/pepper/pepper_platform_audio_input.cc
@@ -79,7 +79,8 @@ void PepperPlatformAudioInput::OnStreamCreated(
base::SharedMemoryHandle handle,
base::SyncSocket::Handle socket_handle,
int length,
- int total_segments) {
+ int total_segments,
+ bool initially_muted) {
#if defined(OS_WIN)
DCHECK(handle.IsValid());
DCHECK(socket_handle);
@@ -95,8 +96,9 @@ void PepperPlatformAudioInput::OnStreamCreated(
// If shutdown has occurred, |client_| will be NULL and the handles will be
// cleaned up on the main thread.
main_task_runner_->PostTask(
- FROM_HERE, base::Bind(&PepperPlatformAudioInput::OnStreamCreated, this,
- handle, socket_handle, length, total_segments));
+ FROM_HERE,
+ base::Bind(&PepperPlatformAudioInput::OnStreamCreated, this, handle,
+ socket_handle, length, total_segments, initially_muted));
} else {
// Must dereference the client only on the main thread. Shutdown may have
// occurred while the request was in-flight, so we need to NULL check.
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_input.h ('k') | media/audio/audio_input_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698