| OLD | NEW |
| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cstdlib> | 9 #include <cstdlib> |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 bool result = stream_->Append(processed_frames_); | 155 bool result = stream_->Append(processed_frames_); |
| 156 processed_frames_.clear(); | 156 processed_frames_.clear(); |
| 157 | 157 |
| 158 DVLOG_IF(3, !result) << __func__ | 158 DVLOG_IF(3, !result) << __func__ |
| 159 << "(): Failure appending processed frames to stream"; | 159 << "(): Failure appending processed frames to stream"; |
| 160 | 160 |
| 161 return result; | 161 return result; |
| 162 } | 162 } |
| 163 | 163 |
| 164 FrameProcessor::FrameProcessor(const UpdateDurationCB& update_duration_cb, | 164 FrameProcessor::FrameProcessor(const UpdateDurationCB& update_duration_cb, |
| 165 const scoped_refptr<MediaLog>& media_log) | 165 MediaLog* media_log) |
| 166 : group_start_timestamp_(kNoTimestamp), | 166 : group_start_timestamp_(kNoTimestamp), |
| 167 update_duration_cb_(update_duration_cb), | 167 update_duration_cb_(update_duration_cb), |
| 168 media_log_(media_log) { | 168 media_log_(media_log) { |
| 169 DVLOG(2) << __func__ << "()"; | 169 DVLOG(2) << __func__ << "()"; |
| 170 DCHECK(!update_duration_cb.is_null()); | 170 DCHECK(!update_duration_cb.is_null()); |
| 171 } | 171 } |
| 172 | 172 |
| 173 FrameProcessor::~FrameProcessor() { | 173 FrameProcessor::~FrameProcessor() { |
| 174 DVLOG(2) << __func__ << "()"; | 174 DVLOG(2) << __func__ << "()"; |
| 175 } | 175 } |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 // Step 21 is currently handled differently. See SourceBufferState's | 751 // Step 21 is currently handled differently. See SourceBufferState's |
| 752 // |auto_update_timestamp_offset_|. | 752 // |auto_update_timestamp_offset_|. |
| 753 return true; | 753 return true; |
| 754 } | 754 } |
| 755 | 755 |
| 756 NOTREACHED(); | 756 NOTREACHED(); |
| 757 return false; | 757 return false; |
| 758 } | 758 } |
| 759 | 759 |
| 760 } // namespace media | 760 } // namespace media |
| OLD | NEW |