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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 9717021: Make Callback::Reset() return a copy to support use-cases where Run() ends up modifying |*this|. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 9 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/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 4bb2f781539c3ad62c2cae53c6119b43c93b31d0..4a1f6756250fb565d54b836c2dc9da547f497000 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -519,7 +519,7 @@ void GpuVideoDecoder::NotifyResetDone() {
input_buffer_time_data_.clear();
if (!pending_reset_cb_.is_null())
- ResetAndRunCB(&pending_reset_cb_);
+ pending_reset_cb_.ResetAndRun();
if (!pending_read_cb_.is_null())
EnqueueFrameAndTriggerFrameDelivery(VideoFrame::CreateEmptyFrame());

Powered by Google App Engine
This is Rietveld 408576698