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

Unified Diff: media/filters/fake_demuxer_stream.h

Issue 347813004: Clear active splice flag after an explicit Reset(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/decoder_stream.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 d0f06f5573234fcb0fa489a322469e832510d2b1..bacf0bddefd809dec033730694c91d164b26441b 100644
--- a/media/filters/fake_demuxer_stream.h
+++ b/media/filters/fake_demuxer_stream.h
@@ -62,6 +62,11 @@ class FakeDemuxerStream : public DemuxerStream {
// the stream.
void SeekToStart();
+ // Sets the splice timestamp for all furture buffers returned via Read().
+ void set_splice_timestamp(base::TimeDelta splice_timestamp) {
+ splice_timestamp_ = splice_timestamp;
+ }
+
private:
void UpdateVideoDecoderConfig();
void DoRead();
@@ -82,6 +87,7 @@ class FakeDemuxerStream : public DemuxerStream {
base::TimeDelta current_timestamp_;
base::TimeDelta duration_;
+ base::TimeDelta splice_timestamp_;
gfx::Size next_coded_size_;
VideoDecoderConfig video_decoder_config_;
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698