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

Unified Diff: media/filters/ffmpeg_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: Inlined getters and setters on DataBuffer 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
« no previous file with comments | « media/filters/decrypting_audio_decoder_unittest.cc ('k') | media/filters/ffmpeg_audio_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.cc
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc
index f8cea3888a75ddd132f1349051a198954c1c4621..7754a4997c3fe5681a040cf1a583d2a2ba59d096 100644
--- a/media/filters/ffmpeg_audio_decoder.cc
+++ b/media/filters/ffmpeg_audio_decoder.cc
@@ -470,19 +470,19 @@ void FFmpegAudioDecoder::RunDecodeLoop(
}
output = new DataBuffer(decoded_audio_size);
- output->SetDataSize(decoded_audio_size);
+ output->set_data_size(decoded_audio_size);
DCHECK_EQ(frames_to_interleave, converter_bus_->frames() - skip_frames);
converter_bus_->ToInterleavedPartial(
skip_frames, frames_to_interleave, bits_per_channel_ / 8,
- output->GetWritableData());
+ output->writable_data());
} else {
output = DataBuffer::CopyFrom(
av_frame_->extended_data[0] + start_sample * bytes_per_frame_,
decoded_audio_size);
}
- output->SetTimestamp(output_timestamp_helper_->GetTimestamp());
- output->SetDuration(
+ output->set_timestamp(output_timestamp_helper_->GetTimestamp());
+ output->set_duration(
output_timestamp_helper_->GetDuration(decoded_audio_size));
output_timestamp_helper_->AddBytes(decoded_audio_size);
} else if (IsEndOfStream(result, decoded_audio_size, input) &&
« no previous file with comments | « media/filters/decrypting_audio_decoder_unittest.cc ('k') | media/filters/ffmpeg_audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698