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

Unified Diff: media/filters/ffmpeg_demuxer.cc

Issue 2101403005: media: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove comment Created 4 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/cdm/aes_decryptor_unittest.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.cc
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
index 76ac688f911fd68f56ddc6cbbc8dbc451964f466..83b1879d1e4eb687f4ca3e3e4f10cb44ee4d1ca0 100644
--- a/media/filters/ffmpeg_demuxer.cc
+++ b/media/filters/ffmpeg_demuxer.cc
@@ -975,7 +975,7 @@ void FFmpegDemuxer::AddTextStreams() {
int64_t FFmpegDemuxer::GetMemoryUsage() const {
int64_t allocation_size = 0;
- for (const auto& stream : streams_) {
+ for (auto* stream : streams_) {
if (stream)
allocation_size += stream->MemoryUsage();
}
@@ -1611,7 +1611,7 @@ void FFmpegDemuxer::OnDataSourceError() {
void FFmpegDemuxer::SetLiveness(DemuxerStream::Liveness liveness) {
DCHECK(task_runner_->BelongsToCurrentThread());
- for (const auto& stream : streams_) { // |stream| is a ref to a pointer.
+ for (auto* stream : streams_) {
if (stream)
stream->SetLiveness(liveness);
}
« no previous file with comments | « media/cdm/aes_decryptor_unittest.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698