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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host.cc

Issue 1302423006: Ensure that data is not overwritten in the audio input shared memory ring buffer that sits on the b… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed log call expectations for Android in unit test. Rebase. Created 5 years, 3 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 | « base/sync_socket.h ('k') | content/browser/renderer_host/media/audio_input_sync_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_input_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.cc b/content/browser/renderer_host/media/audio_input_renderer_host.cc
index 2c80fee5307d29c546148c4625b9f118f4614a0c..74330b9f23d1a97feeccbd04b4b7b78039ab007c 100644
--- a/content/browser/renderer_host/media/audio_input_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_input_renderer_host.cc
@@ -427,7 +427,8 @@ void AudioInputRendererHost::DoCreateStream(
}
scoped_ptr<AudioInputSyncWriter> writer(new AudioInputSyncWriter(
- &entry->shared_memory, entry->shared_memory_segment_count, audio_params));
+ entry->shared_memory.memory(), entry->shared_memory.requested_size(),
+ entry->shared_memory_segment_count, audio_params));
if (!writer->Init()) {
SendErrorMessage(stream_id, SYNC_WRITER_INIT_FAILED);
« no previous file with comments | « base/sync_socket.h ('k') | content/browser/renderer_host/media/audio_input_sync_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698