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

Unified Diff: media/remoting/courier_renderer.cc

Issue 2669033004: Media Remoting: Don't report remote renderer init error to pipeline. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/courier_renderer.cc
diff --git a/media/remoting/courier_renderer.cc b/media/remoting/courier_renderer.cc
index b83c7f751440db55a06de12b25d0bc3524dd3521..e1aad417acbfe858a048dadc108e644975cb74ec 100644
--- a/media/remoting/courier_renderer.cc
+++ b/media/remoting/courier_renderer.cc
@@ -673,9 +673,10 @@ void CourierRenderer::OnFatalError(StopTrigger stop_trigger) {
data_flow_poll_timer_.Stop();
+ // This renderer will be shut down shortly. To prevent breaking the pipeline,
+ // just run the callback without reporting error.
if (!init_workflow_done_callback_.is_null()) {
- base::ResetAndReturn(&init_workflow_done_callback_)
- .Run(PIPELINE_ERROR_INITIALIZATION_FAILED);
+ base::ResetAndReturn(&init_workflow_done_callback_).Run(PIPELINE_OK);
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698