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

Unified Diff: content/renderer/media/audio_input_message_filter.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
Index: content/renderer/media/audio_input_message_filter.cc
diff --git a/content/renderer/media/audio_input_message_filter.cc b/content/renderer/media/audio_input_message_filter.cc
index 145215b5871edee38800a8b5235d43137e99c50b..9c69e3e9a3ddfa7eaeaf2695396167f7aae523c8 100644
--- a/content/renderer/media/audio_input_message_filter.cc
+++ b/content/renderer/media/audio_input_message_filter.cc
@@ -128,7 +128,8 @@ void AudioInputMessageFilter::OnStreamCreated(
base::SharedMemoryHandle handle,
base::SyncSocket::TransitDescriptor socket_descriptor,
uint32_t length,
- uint32_t total_segments) {
+ uint32_t total_segments,
+ bool initially_muted) {
DCHECK(io_task_runner_->BelongsToCurrentThread());
LogMessage(stream_id, "OnStreamCreated");
@@ -143,7 +144,8 @@ void AudioInputMessageFilter::OnStreamCreated(
return;
}
// Forward message to the stream delegate.
- delegate->OnStreamCreated(handle, socket_handle, length, total_segments);
+ delegate->OnStreamCreated(handle, socket_handle, length, total_segments,
+ initially_muted);
}
void AudioInputMessageFilter::OnStreamError(int stream_id) {
« no previous file with comments | « content/renderer/media/audio_input_message_filter.h ('k') | content/renderer/pepper/pepper_platform_audio_input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698