| Index: media/filters/chunk_demuxer.h
|
| diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
|
| index 5f37fc2ff0c783bfe4bd15a2a9fbf9d1a07b746e..91b47b1c596d4a26b572149dc81f799c68f2c65d 100644
|
| --- a/media/filters/chunk_demuxer.h
|
| +++ b/media/filters/chunk_demuxer.h
|
| @@ -33,6 +33,11 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
|
| kReachedIdLimit, // Reached ID limit. We can't handle any more IDs.
|
| };
|
|
|
| + enum AppendMode {
|
| + kSegments, // Timestamps in appended media determine coded frame placement.
|
| + kSequence // Appended media will be treated as adjacent in time.
|
| + };
|
| +
|
| // |open_cb| Run when Initialize() is called to signal that the demuxer
|
| // is ready to receive media data via AppenData().
|
| // |need_key_cb| Run when the demuxer determines that an encryption key is
|
| @@ -124,6 +129,12 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
|
| // middle of parsing a media segment.
|
| bool SetTimestampOffset(const std::string& id, base::TimeDelta offset);
|
|
|
| + // Set the append mode to be applied to subsequent buffers appended to the
|
| + // source buffer associated with |id|. Returns true if the mode is set
|
| + // properly, false if the mode cannot be set because we're in the middle of
|
| + // parsing a media segment.
|
| + bool SetAppendMode(const std::string& id, AppendMode mode);
|
| +
|
| // Called to signal changes in the "end of stream"
|
| // state. UnmarkEndOfStream() must not be called if a matching
|
| // MarkEndOfStream() has not come before it.
|
|
|