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

Unified Diff: media/filters/fake_demuxer_stream.h

Issue 339653003: No EOS frame in {Audio|Video}Decoder::OutputCB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 6 years, 6 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/decrypting_video_decoder_unittest.cc ('k') | media/filters/fake_demuxer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/fake_demuxer_stream.h
diff --git a/media/filters/fake_demuxer_stream.h b/media/filters/fake_demuxer_stream.h
index 95bfa96c816c08a3a309ec54ed1c7636042e6d33..d0f06f5573234fcb0fa489a322469e832510d2b1 100644
--- a/media/filters/fake_demuxer_stream.h
+++ b/media/filters/fake_demuxer_stream.h
@@ -35,6 +35,8 @@ class FakeDemuxerStream : public DemuxerStream {
virtual void EnableBitstreamConverter() OVERRIDE;
virtual bool SupportsConfigChanges() OVERRIDE;
+ void Initialize();
+
int num_buffers_returned() const { return num_buffers_returned_; }
// Upon the next read, holds the read callback until SatisfyRead() or Reset()
@@ -56,16 +58,22 @@ class FakeDemuxerStream : public DemuxerStream {
// always clears |hold_next_read_|.
void Reset();
+ // Reset() this demuxer stream and set the reading position to the start of
+ // the stream.
+ void SeekToStart();
+
private:
void UpdateVideoDecoderConfig();
void DoRead();
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ const int num_configs_;
+ const int num_buffers_in_one_config_;
+ const bool config_changes_;
+ const bool is_encrypted_;
+
int num_configs_left_;
- int num_buffers_in_one_config_;
- bool config_changes_;
- bool is_encrypted_;
// Number of frames left with the current decoder config.
int num_buffers_left_in_current_config_;
« no previous file with comments | « media/filters/decrypting_video_decoder_unittest.cc ('k') | media/filters/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698