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

Unified Diff: media/filters/decoder_base.h

Issue 7062013: Move media library AutoTaskRunner to base and rename ScopedTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
Index: media/filters/decoder_base.h
diff --git a/media/filters/decoder_base.h b/media/filters/decoder_base.h
index a889e19fb1082de5d09b9c7062861b8d4d8efd91..dd28ec2926f4193ac689655a80f878dcd9dd360f 100644
--- a/media/filters/decoder_base.h
+++ b/media/filters/decoder_base.h
@@ -102,7 +102,8 @@ class DecoderBase : public Decoder {
// be called from within the Filter::Stop() method prior to stopping the
// base class.
virtual void DoStop(Task* done_cb) {
- AutoTaskRunner done_runner(done_cb);
+ done_cb->Run();
dmac 2011/05/26 17:55:42 Maybe I'm being slow this morning, but why is this
Wez 2011/05/26 18:48:21 Reverted. I was thinking of this as an unnecessar
+ delete done_cb;
}
// Derived class can implement this method and perform seeking logic prior

Powered by Google App Engine
This is Rietveld 408576698