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

Unified Diff: services/media/audio/audio_track_impl.cc

Issue 2097953002: Motown: Rename MediaProducer/Consumer to MediaPacketProducer/Consumer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed #ifndef guards Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/media/audio/audio_track_impl.h ('k') | services/media/audio/audio_track_to_output_link.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/audio_track_impl.cc
diff --git a/services/media/audio/audio_track_impl.cc b/services/media/audio/audio_track_impl.cc
index fb0d69cd7346923295e48abc5bdebac9a87bf315..3d8c1c6732fefa1ad5f5d545a3c773df3605d1a8 100644
--- a/services/media/audio/audio_track_impl.cc
+++ b/services/media/audio/audio_track_impl.cc
@@ -259,8 +259,8 @@ void AudioTrackImpl::SetMediaType(MediaTypePtr media_type) {
owner_->GetOutputManager().SelectOutputsForTrack(strong_this);
}
-void AudioTrackImpl::GetConsumer(
- InterfaceRequest<MediaConsumer> consumer_request) {
+void AudioTrackImpl::GetPacketConsumer(
+ InterfaceRequest<MediaPacketConsumer> consumer_request) {
// Bind our pipe to the interface request.
if (pipe_.Init(consumer_request.Pass()) != MOJO_RESULT_OK) {
LOG(ERROR) << "Failed to media pipe to interface request.";
@@ -343,7 +343,8 @@ void AudioTrackImpl::OnPacketReceived(AudioPipe::AudioPacketRefPtr packet) {
}
}
-bool AudioTrackImpl::OnFlushRequested(const MediaConsumer::FlushCallback& cbk) {
+bool AudioTrackImpl::OnFlushRequested(
+ const MediaPacketConsumer::FlushCallback& cbk) {
for (const auto& output : outputs_) {
DCHECK(output);
output->FlushPendingQueue();
« no previous file with comments | « services/media/audio/audio_track_impl.h ('k') | services/media/audio/audio_track_to_output_link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698