| Index: media/base/composite_filter.cc
|
| diff --git a/media/base/composite_filter.cc b/media/base/composite_filter.cc
|
| index 2b0166c5b00466d96833feae010bd2a1385b0e7c..76339ca707997ca0cbd25a051a2520d27e3c6a26 100644
|
| --- a/media/base/composite_filter.cc
|
| +++ b/media/base/composite_filter.cc
|
| @@ -443,17 +443,6 @@ void CompositeFilter::OnStatusCB(const base::Closure& callback,
|
| }
|
|
|
| void CompositeFilter::SetError(PipelineStatus error) {
|
| - // TODO(acolwell): Temporary hack to handle errors that occur
|
| - // during filter initialization. In this case we just forward
|
| - // the error to the host even if it is on the wrong thread. We
|
| - // have to do this because if we defer the call, we can't be
|
| - // sure the host will get the error before the "init done" callback
|
| - // is executed. This will be cleaned up when filter init is refactored.
|
| - if (state_ == kCreated) {
|
| - SendErrorToHost(error);
|
| - return;
|
| - }
|
| -
|
| if (message_loop_ != MessageLoop::current()) {
|
| message_loop_->PostTask(FROM_HERE,
|
| base::Bind(&CompositeFilter::SetError, this, error));
|
|
|