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

Unified Diff: media/filters/pipeline_controller.cc

Issue 2308893002: PipelineController: Fix definition of IsSuspended(). (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 | media/filters/pipeline_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/pipeline_controller.cc
diff --git a/media/filters/pipeline_controller.cc b/media/filters/pipeline_controller.cc
index c5026788277bbf7585464751b4bef13329e3665e..2055afb9dc08cdd3a3879434301051a1b84167c8 100644
--- a/media/filters/pipeline_controller.cc
+++ b/media/filters/pipeline_controller.cc
@@ -104,7 +104,9 @@ bool PipelineController::IsStable() {
bool PipelineController::IsSuspended() {
DCHECK(thread_checker_.CalledOnValidThread());
- return (pending_suspend_ || state_ == State::SUSPENDED) && !pending_resume_;
+ return (pending_suspend_ || state_ == State::SUSPENDING ||
+ state_ == State::SUSPENDED) &&
+ !pending_resume_;
}
bool PipelineController::IsPipelineSuspended() {
« no previous file with comments | « no previous file | media/filters/pipeline_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698