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

Unified Diff: media/filters/audio_renderer_algorithm_default.cc

Issue 149573: Refactor WritableBuffer interface for more useful ptr management. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « media/base/data_buffer_unittest.cc ('k') | media/filters/audio_renderer_algorithm_ola.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_algorithm_default.cc
===================================================================
--- media/filters/audio_renderer_algorithm_default.cc (revision 20532)
+++ media/filters/audio_renderer_algorithm_default.cc (working copy)
@@ -24,7 +24,7 @@
if (playback_rate() == 1.0f) {
size_t dest_length = buffer_out->GetDataSize();
- uint8* dest = buffer_out->GetWritableData(dest_length);
+ uint8* dest = buffer_out->GetWritableData();
// If we don't have enough data, copy what we have.
if (QueueSize() < dest_length)
@@ -36,7 +36,7 @@
// Mute (we will write to the whole buffer, so set |dest_written| to the
// requested size).
dest_written = buffer_out->GetDataSize();
- memset(buffer_out->GetWritableData(dest_written), 0, dest_written);
+ memset(buffer_out->GetWritableData(), 0, dest_written);
// Calculate the number of bytes we "used".
size_t scaled_dest_length =
« no previous file with comments | « media/base/data_buffer_unittest.cc ('k') | media/filters/audio_renderer_algorithm_ola.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698