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

Unified Diff: services/media/framework/engine.cc

Issue 1692443002: Motown: Framework parts for mojo transport (producer/consumer/mediapipe) and control (audiotrack). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added comments to AudioTrackController::SetRate regarding the proper way to implement it. Created 4 years, 10 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/framework/conversion_pipeline_builder.cc ('k') | services/media/framework/graph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework/engine.cc
diff --git a/services/media/framework/engine.cc b/services/media/framework/engine.cc
index 6c76e0b248147762535d7e86de0b05800745978f..642191334b8d38aacf2da17cbaac59accc09be5e 100644
--- a/services/media/framework/engine.cc
+++ b/services/media/framework/engine.cc
@@ -39,6 +39,9 @@ void Engine::UnprepareInput(const InputRef& input) {
}
void Engine::FlushOutput(const OutputRef& output) {
+ if (!output.connected()) {
+ return;
+ }
VisitDownstream(
output,
[] (const OutputRef& output,
« no previous file with comments | « services/media/framework/conversion_pipeline_builder.cc ('k') | services/media/framework/graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698