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

Unified Diff: media/filters/ffmpeg_video_decoder.h

Issue 9667018: Make FFmpegVideoDecoder defer a flush until the pending read completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rebase build buster 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
« no previous file with comments | « no previous file | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_video_decoder.h
diff --git a/media/filters/ffmpeg_video_decoder.h b/media/filters/ffmpeg_video_decoder.h
index cd60c2e2a6ccb59ee2f1476682b8fec96c93995b..912ba581e5ba5160d472f65e2d37a8074fb55367 100644
--- a/media/filters/ffmpeg_video_decoder.h
+++ b/media/filters/ffmpeg_video_decoder.h
@@ -64,6 +64,9 @@ class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder {
// and resets them to NULL.
void ReleaseFFmpegResources();
+ // Flush decoder and call |flush_cb_|.
+ void DoFlush();
+
// Allocates a video frame based on the current format and dimensions based on
// the current state of |codec_context_|.
scoped_refptr<VideoFrame> AllocateVideoFrame();
@@ -75,6 +78,7 @@ class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder {
StatisticsCB statistics_cb_;
ReadCB read_cb_;
+ base::Closure flush_cb_;
// FFmpeg structures owned by this object.
AVCodecContext* codec_context_;
« no previous file with comments | « no previous file | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698