| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "services/media/audio/audio_output.h" | 6 #include "services/media/audio/audio_output.h" |
| 7 #include "services/media/audio/audio_track_impl.h" | 7 #include "services/media/audio/audio_track_impl.h" |
| 8 #include "services/media/audio/audio_track_to_output_link.h" | 8 #include "services/media/audio/audio_track_to_output_link.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 DCHECK(was_held); | 152 DCHECK(was_held); |
| 153 #endif | 153 #endif |
| 154 } | 154 } |
| 155 | 155 |
| 156 void AudioTrackToOutputLink::ReleaseQueue(const PacketQueuePtr& queue) { | 156 void AudioTrackToOutputLink::ReleaseQueue(const PacketQueuePtr& queue) { |
| 157 if (!queue) { | 157 if (!queue) { |
| 158 return; | 158 return; |
| 159 } | 159 } |
| 160 | 160 |
| 161 for (auto iter = queue->begin(); iter != queue->end(); ++iter) { | 161 for (auto iter = queue->begin(); iter != queue->end(); ++iter) { |
| 162 (*iter)->SetResult(MediaConsumer::SendResult::FLUSHED); | 162 (*iter)->SetResult(MediaPacketConsumer::SendResult::FLUSHED); |
| 163 (*iter).reset(); | 163 (*iter).reset(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 queue->clear(); | 166 queue->clear(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace audio | 169 } // namespace audio |
| 170 } // namespace media | 170 } // namespace media |
| 171 } // namespace mojo | 171 } // namespace mojo |
| OLD | NEW |