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

Unified Diff: chromecast/browser/media/cma_message_filter_host.cc

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 2 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
Index: chromecast/browser/media/cma_message_filter_host.cc
diff --git a/chromecast/browser/media/cma_message_filter_host.cc b/chromecast/browser/media/cma_message_filter_host.cc
index 0a531e71f81766293b68b45319db0ccb67f1c33e..b407a25b119a5c26d30de2f3ec7e33fe2dc05b24 100644
--- a/chromecast/browser/media/cma_message_filter_host.cc
+++ b/chromecast/browser/media/cma_message_filter_host.cc
@@ -200,7 +200,7 @@ void CmaMessageFilterHost::CreateMedia(int media_id, LoadType load_type) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
scoped_ptr<MediaPipelineHost> media_pipeline_host(new MediaPipelineHost());
- MediaPipelineClient client;
+ BrowserMediaPipelineClient client;
client.time_update_cb = ::media::BindToCurrentLoop(base::Bind(
&CmaMessageFilterHost::OnTimeUpdate, weak_this_, media_id));
client.buffering_state_cb = ::media::BindToCurrentLoop(base::Bind(
@@ -351,7 +351,7 @@ void CmaMessageFilterHost::AudioInitialize(
return;
}
- AvPipelineClient client;
+ BrowserAvPipelineClient client;
client.eos_cb = ::media::BindToCurrentLoop(base::Bind(
&CmaMessageFilterHost::OnEos, weak_this_, media_id, track_id));
client.playback_error_cb = ::media::BindToCurrentLoop(base::Bind(
@@ -381,7 +381,7 @@ void CmaMessageFilterHost::VideoInitialize(
return;
}
- VideoPipelineClient client;
+ BrowserVideoPipelineClient client;
client.av_pipeline_client.eos_cb = ::media::BindToCurrentLoop(
base::Bind(&CmaMessageFilterHost::OnEos, weak_this_,
media_id, track_id));

Powered by Google App Engine
This is Rietveld 408576698