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

Unified Diff: media/filters/decoder_stream.cc

Issue 398163004: Fold DecoderSelector::Abort() into the dtor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/decoder_selector.cc ('k') | media/filters/video_decoder_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream.cc
diff --git a/media/filters/decoder_stream.cc b/media/filters/decoder_stream.cc
index 35b361790131a078aa81712666db28748723d2ad..10916ea9808fc7348c60ba26092c2090e6ad2746 100644
--- a/media/filters/decoder_stream.cc
+++ b/media/filters/decoder_stream.cc
@@ -59,9 +59,7 @@ DecoderStream<StreamType>::~DecoderStream() {
FUNCTION_DVLOG(2);
DCHECK(task_runner_->BelongsToCurrentThread());
- // TODO(xhwang): Fold DecoderSelector::Abort() into the dtor.
- if (state_ == STATE_INITIALIZING)
- decoder_selector_->Abort();
+ decoder_selector_.reset();
if (!init_cb_.is_null()) {
task_runner_->PostTask(FROM_HERE,
« no previous file with comments | « media/filters/decoder_selector.cc ('k') | media/filters/video_decoder_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698