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

Side by Side Diff: services/media/audio/audio_track_to_output_link.cc

Issue 2097953002: Motown: Rename MediaProducer/Consumer to MediaPacketProducer/Consumer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Renamed MojoConsumer and MojoProducer Created 4 years, 5 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698