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

Unified Diff: media/filters/opus_audio_decoder.cc

Issue 17315021: Refactored DataBuffer to use unix_hacker style methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed style that was botched by an incorrect use of clang-format Created 7 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: media/filters/opus_audio_decoder.cc
diff --git a/media/filters/opus_audio_decoder.cc b/media/filters/opus_audio_decoder.cc
index be003f1dc0aba4ea4d48e3faa503b5b8648d694d..6e5d9ed79a294e637f0b049e3ccdbae33e2c3f93 100644
--- a/media/filters/opus_audio_decoder.cc
+++ b/media/filters/opus_audio_decoder.cc
@@ -551,8 +551,8 @@ bool OpusAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& input,
// Copy the audio samples into an output buffer.
*output_buffer = DataBuffer::CopyFrom(
decoded_audio_data, decoded_audio_size);
- (*output_buffer)->SetTimestamp(output_timestamp_helper_->GetTimestamp());
- (*output_buffer)->SetDuration(
+ (*output_buffer)->set_timestamp(output_timestamp_helper_->GetTimestamp());
+ (*output_buffer)->set_duration(
output_timestamp_helper_->GetDuration(decoded_audio_size));
output_timestamp_helper_->AddBytes(decoded_audio_size);
}

Powered by Google App Engine
This is Rietveld 408576698