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_; |