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::InitializationComplete() { | |
10 pipeline_internal_->InitializationComplete(this); | |
11 } | |
12 | |
13 void FilterHostImpl::Error(PipelineError error) { | 9 void FilterHostImpl::Error(PipelineError error) { |
14 pipeline_internal_->Error(error); | 10 pipeline_internal_->Error(error); |
15 } | 11 } |
16 | 12 |
17 base::TimeDelta FilterHostImpl::GetTime() const { | 13 base::TimeDelta FilterHostImpl::GetTime() const { |
18 return pipeline()->GetTime(); | 14 return pipeline()->GetTime(); |
19 } | 15 } |
20 | 16 |
21 void FilterHostImpl::SetTime(base::TimeDelta time) { | 17 void FilterHostImpl::SetTime(base::TimeDelta time) { |
22 pipeline_internal_->SetTime(time); | 18 pipeline_internal_->SetTime(time); |
(...skipping 21 matching lines...) Expand all Loading... |
44 | 40 |
45 void FilterHostImpl::Stop() { | 41 void FilterHostImpl::Stop() { |
46 if (!stopped_) { | 42 if (!stopped_) { |
47 filter_->Stop(); | 43 filter_->Stop(); |
48 AutoLock auto_lock(time_update_lock_); | 44 AutoLock auto_lock(time_update_lock_); |
49 stopped_ = true; | 45 stopped_ = true; |
50 } | 46 } |
51 } | 47 } |
52 | 48 |
53 } // namespace media | 49 } // namespace media |
OLD | NEW |