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

Side by Side Diff: media/base/pipeline_impl.cc

Issue 2697873004: build: Enable auto raw pointer deduction check on linux. (Closed)
Patch Set: compile fix Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « media/base/media_resource.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/pipeline_impl.h" 5 #include "media/base/pipeline_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 DCHECK(media_task_runner_->BelongsToCurrentThread()); 909 DCHECK(media_task_runner_->BelongsToCurrentThread());
910 910
911 PipelineMetadata metadata; 911 PipelineMetadata metadata;
912 std::vector<DemuxerStream*> streams; 912 std::vector<DemuxerStream*> streams;
913 913
914 switch (demuxer_->GetType()) { 914 switch (demuxer_->GetType()) {
915 case MediaResource::Type::STREAM: 915 case MediaResource::Type::STREAM:
916 metadata.timeline_offset = demuxer_->GetTimelineOffset(); 916 metadata.timeline_offset = demuxer_->GetTimelineOffset();
917 // TODO(servolk): What should we do about metadata for multiple streams? 917 // TODO(servolk): What should we do about metadata for multiple streams?
918 streams = demuxer_->GetAllStreams(); 918 streams = demuxer_->GetAllStreams();
919 for (const auto& stream : streams) { 919 for (auto* stream : streams) {
920 if (stream->type() == DemuxerStream::VIDEO && !metadata.has_video) { 920 if (stream->type() == DemuxerStream::VIDEO && !metadata.has_video) {
921 metadata.has_video = true; 921 metadata.has_video = true;
922 metadata.natural_size = GetRotatedVideoSize( 922 metadata.natural_size = GetRotatedVideoSize(
923 stream->video_rotation(), 923 stream->video_rotation(),
924 stream->video_decoder_config().natural_size()); 924 stream->video_decoder_config().natural_size());
925 metadata.video_rotation = stream->video_rotation(); 925 metadata.video_rotation = stream->video_rotation();
926 metadata.video_decoder_config = stream->video_decoder_config(); 926 metadata.video_decoder_config = stream->video_decoder_config();
927 } 927 }
928 if (stream->type() == DemuxerStream::AUDIO && !metadata.has_audio) { 928 if (stream->type() == DemuxerStream::AUDIO && !metadata.has_audio) {
929 metadata.has_audio = true; 929 metadata.has_audio = true;
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 void PipelineImpl::OnSuspendDone() { 1360 void PipelineImpl::OnSuspendDone() {
1361 DVLOG(3) << __func__; 1361 DVLOG(3) << __func__;
1362 DCHECK(thread_checker_.CalledOnValidThread()); 1362 DCHECK(thread_checker_.CalledOnValidThread());
1363 DCHECK(IsRunning()); 1363 DCHECK(IsRunning());
1364 1364
1365 DCHECK(!suspend_cb_.is_null()); 1365 DCHECK(!suspend_cb_.is_null());
1366 base::ResetAndReturn(&suspend_cb_).Run(PIPELINE_OK); 1366 base::ResetAndReturn(&suspend_cb_).Run(PIPELINE_OK);
1367 } 1367 }
1368 1368
1369 } // namespace media 1369 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_resource.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698