| OLD | NEW |
| 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/filter_host_impl.h" | 5 #include "media/base/filter_host_impl.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 | 8 |
| 9 void FilterHostImpl::Error(PipelineError error) { | 9 void FilterHostImpl::SetError(PipelineError error) { |
| 10 pipeline_internal_->Error(error); | 10 pipeline_internal_->SetError(error); |
| 11 } | 11 } |
| 12 | 12 |
| 13 base::TimeDelta FilterHostImpl::GetTime() const { | 13 base::TimeDelta FilterHostImpl::GetTime() const { |
| 14 return pipeline()->GetTime(); | 14 return pipeline()->GetCurrentTime(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 void FilterHostImpl::SetTime(base::TimeDelta time) { | 17 void FilterHostImpl::SetTime(base::TimeDelta time) { |
| 18 pipeline_internal_->SetTime(time); | 18 pipeline_internal_->SetTime(time); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void FilterHostImpl::SetDuration(base::TimeDelta duration) { | 21 void FilterHostImpl::SetDuration(base::TimeDelta duration) { |
| 22 pipeline()->SetDuration(duration); | 22 pipeline()->SetDuration(duration); |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 void FilterHostImpl::Stop() { | 41 void FilterHostImpl::Stop() { |
| 42 if (!stopped_) { | 42 if (!stopped_) { |
| 43 filter_->Stop(); | 43 filter_->Stop(); |
| 44 AutoLock auto_lock(time_update_lock_); | 44 AutoLock auto_lock(time_update_lock_); |
| 45 stopped_ = true; | 45 stopped_ = true; |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace media | 49 } // namespace media |
| OLD | NEW |