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

Unified Diff: chromecast/media/cma/filters/cma_renderer.cc

Issue 1306843003: CmaMediaPipelineClient to watch media pipeline status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Doc Created 5 years, 3 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 | « chromecast/chromecast.gyp ('k') | chromecast/media/cma/pipeline/media_pipeline_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/filters/cma_renderer.cc
diff --git a/chromecast/media/cma/filters/cma_renderer.cc b/chromecast/media/cma/filters/cma_renderer.cc
index d2ec2bd82e313a11e8f40644faec014d5e623c9a..1d9dadd6a8da872458dbc8004bb547e9d8c0b9af 100644
--- a/chromecast/media/cma/filters/cma_renderer.cc
+++ b/chromecast/media/cma/filters/cma_renderer.cc
@@ -37,6 +37,8 @@ namespace {
const base::TimeDelta kMaxDeltaFetcher(
base::TimeDelta::FromMilliseconds(2000));
+void MediaPipelineClientDummyCallback() {}
+
} // namespace
CmaRenderer::CmaRenderer(
@@ -118,6 +120,10 @@ void CmaRenderer::Initialize(
base::Bind(&CmaRenderer::OnBufferingNotification, weak_this_));
media_pipeline_client.time_update_cb = ::media::BindToCurrentLoop(
base::Bind(&CmaRenderer::OnPlaybackTimeUpdated, weak_this_));
+ media_pipeline_client.pipeline_backend_created_cb =
+ base::Bind(&MediaPipelineClientDummyCallback);
+ media_pipeline_client.pipeline_backend_destroyed_cb
+ = base::Bind(&MediaPipelineClientDummyCallback);
media_pipeline_->SetClient(media_pipeline_client);
init_cb_ = init_cb;
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/media/cma/pipeline/media_pipeline_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698