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

Unified Diff: media/filters/ffmpeg_demuxer.cc

Issue 17408005: Refactored DecoderBuffer to use unix_hacker_style naming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@localrefactor
Patch Set: Fixed naming error that somehow got reverted" 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/ffmpeg_demuxer.cc
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
index 508dd095407f27020fe3558156e48890391d5661..6fd8fc85d5b024ad27a0c2a01a2551d9ada4f4f6 100644
--- a/media/filters/ffmpeg_demuxer.cc
+++ b/media/filters/ffmpeg_demuxer.cc
@@ -137,20 +137,20 @@ void FFmpegDemuxerStream::EnqueuePacket(ScopedAVPacket packet) {
encryption_key_id_.size()));
if (!config)
LOG(ERROR) << "Creation of DecryptConfig failed.";
- buffer->SetDecryptConfig(config.Pass());
+ buffer->set_decrypt_config(config.Pass());
}
- buffer->SetTimestamp(ConvertStreamTimestamp(
+ buffer->set_timestamp(ConvertStreamTimestamp(
stream_->time_base, packet->pts));
- buffer->SetDuration(ConvertStreamTimestamp(
+ buffer->set_duration(ConvertStreamTimestamp(
stream_->time_base, packet->duration));
- if (buffer->GetTimestamp() != kNoTimestamp() &&
+ if (buffer->timestamp() != kNoTimestamp() &&
last_packet_timestamp_ != kNoTimestamp() &&
- last_packet_timestamp_ < buffer->GetTimestamp()) {
- buffered_ranges_.Add(last_packet_timestamp_, buffer->GetTimestamp());
+ last_packet_timestamp_ < buffer->timestamp()) {
+ buffered_ranges_.Add(last_packet_timestamp_, buffer->timestamp());
demuxer_->NotifyBufferingChanged();
}
- last_packet_timestamp_ = buffer->GetTimestamp();
+ last_packet_timestamp_ = buffer->timestamp();
buffer_queue_.Push(buffer);
SatisfyPendingRead();

Powered by Google App Engine
This is Rietveld 408576698