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

Side by Side Diff: media/base/filter_host_impl.cc

Issue 155469: Splitting media filter's Initialize() into Create() + callback and Seek() + callback. (Closed)
Patch Set: Fixed valgrind errors Created 11 years, 5 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 unified diff | Download patch
« no previous file with comments | « media/base/filter_host_impl.h ('k') | media/base/filters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/base/filter_host_impl.h ('k') | media/base/filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698