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

Unified Diff: chromecast/media/cma/pipeline/av_pipeline_impl.cc

Issue 2340013002: [Chromecast] Don't push buffers after the backend has been stopped (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/pipeline/av_pipeline_impl.cc
diff --git a/chromecast/media/cma/pipeline/av_pipeline_impl.cc b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
index 810cc6a45675550b9e0528f99c8661750f19e87f..808a56ba91a20484f12f5a942a58e506b64c8706 100644
--- a/chromecast/media/cma/pipeline/av_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
@@ -277,6 +277,10 @@ void AvPipelineImpl::OnBufferDecrypted(
LOG(WARNING) << "Can't decrypt with decrypt_context";
buffer->set_decrypt_context(std::move(decrypt_context));
}
+
+ if (!enable_feeding_)
+ return;
+
pending_buffer_ = buffer;
PushPendingBuffer();
}
« 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