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

Unified Diff: media/filters/audio_renderer_impl.cc

Issue 503053007: Revert of media: Introduce Renderer interface and RendererImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « media/base/renderer.cc ('k') | media/filters/pipeline_integration_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.cc
diff --git a/media/filters/audio_renderer_impl.cc b/media/filters/audio_renderer_impl.cc
index fddb7ae46a05c78c37ac8cc899d65a8bd67c3a6d..fbf4c163d30f8abd4cc540475be869b7ddcde1ff 100644
--- a/media/filters/audio_renderer_impl.cc
+++ b/media/filters/audio_renderer_impl.cc
@@ -258,10 +258,7 @@
state_ = kInitializing;
- // Always post |init_cb_| because |this| could be destroyed if initialization
- // failed.
- init_cb_ = BindToCurrentLoop(init_cb);
-
+ init_cb_ = init_cb;
time_cb_ = time_cb;
buffering_state_cb_ = buffering_state_cb;
ended_cb_ = ended_cb;
@@ -351,6 +348,7 @@
}
DCHECK(!sink_playing_);
+
base::ResetAndReturn(&init_cb_).Run(PIPELINE_OK);
}
« no previous file with comments | « media/base/renderer.cc ('k') | media/filters/pipeline_integration_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698