Chromium Code Reviews| Index: webkit/media/webmediaplayer_impl.cc |
| diff --git a/webkit/media/webmediaplayer_impl.cc b/webkit/media/webmediaplayer_impl.cc |
| index a8b4ab9743bec0b2913cb96cf4ac26825514b07b..08c378e0c143ff9150999ef62fb3a3141e108608 100644 |
| --- a/webkit/media/webmediaplayer_impl.cc |
| +++ b/webkit/media/webmediaplayer_impl.cc |
| @@ -115,7 +115,6 @@ WebMediaPlayerImpl::WebMediaPlayerImpl( |
| ready_state_(WebMediaPlayer::ReadyStateHaveNothing), |
| main_loop_(MessageLoop::current()), |
| filter_collection_(collection), |
| - started_(false), |
| message_loop_factory_(message_loop_factory), |
|
Ami GONE FROM CHROMIUM
2012/07/30 04:06:21
kill started_ in the .h (and the TODO above it)
|
| paused_(true), |
| seeking_(false), |
| @@ -976,7 +975,6 @@ void WebMediaPlayerImpl::NotifyDownloading(bool is_downloading) { |
| } |
| void WebMediaPlayerImpl::StartPipeline() { |
| - started_ = true; |
| pipeline_->Start( |
| filter_collection_.Pass(), |
| base::Bind(&WebMediaPlayerProxy::PipelineEndedCallback, proxy_.get()), |
| @@ -1013,13 +1011,10 @@ void WebMediaPlayerImpl::Destroy() { |
| // Make sure to kill the pipeline so there's no more media threads running. |
| // Note: stopping the pipeline might block for a long time. |
| - if (started_) { |
| - base::WaitableEvent waiter(false, false); |
| - pipeline_->Stop(base::Bind( |
| - &base::WaitableEvent::Signal, base::Unretained(&waiter))); |
| - waiter.Wait(); |
| - started_ = false; |
| - } |
| + base::WaitableEvent waiter(false, false); |
| + pipeline_->Stop(base::Bind( |
| + &base::WaitableEvent::Signal, base::Unretained(&waiter))); |
| + waiter.Wait(); |
| // Let V8 know we are not using extra resources anymore. |
| if (incremented_externally_allocated_memory_) { |