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

Side by Side Diff: media/filters/frame_processor.cc

Issue 1278193003: In-class-initialize LIMITED_MEDIA_LOG log counters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_518069
Patch Set: (Rebase and) Nix the enum->const cleanup from this CL Created 5 years, 4 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/filters/frame_processor.h ('k') | media/filters/source_buffer_stream.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/filters/frame_processor.h" 5 #include "media/filters/frame_processor.h"
6 6
7 #include <cstdlib> 7 #include <cstdlib>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "media/base/buffers.h" 10 #include "media/base/buffers.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 processed_frames_.clear(); 153 processed_frames_.clear();
154 154
155 DVLOG_IF(3, !result) << __FUNCTION__ 155 DVLOG_IF(3, !result) << __FUNCTION__
156 << "(): Failure appending processed frames to stream"; 156 << "(): Failure appending processed frames to stream";
157 157
158 return result; 158 return result;
159 } 159 }
160 160
161 FrameProcessor::FrameProcessor(const UpdateDurationCB& update_duration_cb, 161 FrameProcessor::FrameProcessor(const UpdateDurationCB& update_duration_cb,
162 const scoped_refptr<MediaLog>& media_log) 162 const scoped_refptr<MediaLog>& media_log)
163 : sequence_mode_(false), 163 : group_start_timestamp_(kNoTimestamp()),
164 group_start_timestamp_(kNoTimestamp()),
165 update_duration_cb_(update_duration_cb), 164 update_duration_cb_(update_duration_cb),
166 media_log_(media_log), 165 media_log_(media_log) {
167 num_dropped_preroll_warnings_(0),
168 num_dts_beyond_pts_warnings_(0) {
169 DVLOG(2) << __FUNCTION__ << "()"; 166 DVLOG(2) << __FUNCTION__ << "()";
170 DCHECK(!update_duration_cb.is_null()); 167 DCHECK(!update_duration_cb.is_null());
171 } 168 }
172 169
173 FrameProcessor::~FrameProcessor() { 170 FrameProcessor::~FrameProcessor() {
174 DVLOG(2) << __FUNCTION__ << "()"; 171 DVLOG(2) << __FUNCTION__ << "()";
175 STLDeleteValues(&track_buffers_); 172 STLDeleteValues(&track_buffers_);
176 } 173 }
177 174
178 void FrameProcessor::SetSequenceMode(bool sequence_mode) { 175 void FrameProcessor::SetSequenceMode(bool sequence_mode) {
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 DCHECK(group_end_timestamp_ >= base::TimeDelta()); 730 DCHECK(group_end_timestamp_ >= base::TimeDelta());
734 731
735 return true; 732 return true;
736 } 733 }
737 734
738 NOTREACHED(); 735 NOTREACHED();
739 return false; 736 return false;
740 } 737 }
741 738
742 } // namespace media 739 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/frame_processor.h ('k') | media/filters/source_buffer_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698