summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/base/filter_host_impl.cc1
-rw-r--r--media/base/pipeline_impl.cc8
2 files changed, 4 insertions, 5 deletions
diff --git a/media/base/filter_host_impl.cc b/media/base/filter_host_impl.cc
index 74eaa16..cba2eb1 100644
--- a/media/base/filter_host_impl.cc
+++ b/media/base/filter_host_impl.cc
@@ -61,7 +61,6 @@ void FilterHostImpl::InitializationComplete() {
}
void FilterHostImpl::PostTask(Task* task) {
- DCHECK(!stopped_);
if (stopped_) {
delete task;
} else {
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index a36da6c..5bc3faa 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -401,10 +401,10 @@ void PipelineThread::StopTask() {
if (PipelineOk()) {
pipeline_->error_ = PIPELINE_STOPPING;
}
- FilterHostVector::reverse_iterator riter = filter_hosts_.rbegin();
- while (riter != filter_hosts_.rend()) {
- (*riter)->Stop();
- ++riter;
+ FilterHostVector::iterator iter = filter_hosts_.begin();
+ while (iter != filter_hosts_.end()) {
+ (*iter)->Stop();
+ ++iter;
}
if (host_initializing_) {
host_initializing_ = NULL;