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

Unified Diff: media/base/audio_buffer_converter.cc

Issue 261533002: Remove AudioBuffer::set_duration(), instead base on frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix divide by zero case. Created 6 years, 8 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/audio_buffer.cc ('k') | media/base/audio_buffer_converter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer_converter.cc
diff --git a/media/base/audio_buffer_converter.cc b/media/base/audio_buffer_converter.cc
index 74e570db402fde8c49e4bb0a6a1f7d18a7aee3f9..59c66811d1333334eccc7576abbb70f9ff8aba4e 100644
--- a/media/base/audio_buffer_converter.cc
+++ b/media/base/audio_buffer_converter.cc
@@ -227,8 +227,6 @@ void AudioBufferConverter::ConvertIfPossible() {
// Compute the timestamp.
output_buffer->set_timestamp(timestamp_helper_.GetTimestamp());
- output_buffer->set_duration(
- timestamp_helper_.GetFrameDuration(request_frames));
timestamp_helper_.AddFrames(request_frames);
queued_outputs_.push_back(output_buffer);
« no previous file with comments | « media/base/audio_buffer.cc ('k') | media/base/audio_buffer_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698