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

Side by Side Diff: media/base/fake_demuxer_stream.h

Issue 1918693003: Fix EOS reached before decoder fallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void SatisfyReadAndHoldNext(); 56 void SatisfyReadAndHoldNext();
57 57
58 // Satisfies the pending read (if any) with kAborted and NULL. This call 58 // Satisfies the pending read (if any) with kAborted and NULL. This call
59 // always clears |hold_next_read_|. 59 // always clears |hold_next_read_|.
60 void Reset(); 60 void Reset();
61 61
62 // Reset() this demuxer stream and set the reading position to the start of 62 // Reset() this demuxer stream and set the reading position to the start of
63 // the stream. 63 // the stream.
64 void SeekToStart(); 64 void SeekToStart();
65 65
66 // Sets further read requests to return EOS buffers.
67 void SeekToEndOfStream();
68
66 // Sets the splice timestamp for all furture buffers returned via Read(). 69 // Sets the splice timestamp for all furture buffers returned via Read().
67 void set_splice_timestamp(base::TimeDelta splice_timestamp) { 70 void set_splice_timestamp(base::TimeDelta splice_timestamp) {
68 splice_timestamp_ = splice_timestamp; 71 splice_timestamp_ = splice_timestamp;
69 } 72 }
70 73
71 private: 74 private:
72 void UpdateVideoDecoderConfig(); 75 void UpdateVideoDecoderConfig();
73 void DoRead(); 76 void DoRead();
74 77
75 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 78 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 119
117 private: 120 private:
118 FakeDemuxerStream fake_video_stream_; 121 FakeDemuxerStream fake_video_stream_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider); 123 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider);
121 }; 124 };
122 125
123 } // namespace media 126 } // namespace media
124 127
125 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 128 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698