| Index: media/filters/source_buffer_range.h
|
| diff --git a/media/filters/source_buffer_range.h b/media/filters/source_buffer_range.h
|
| index 24f88fb10ac286e233f644041a731aeb76774d97..a00cee54a0ec91ed26392671ca9de5e79711f9e3 100644
|
| --- a/media/filters/source_buffer_range.h
|
| +++ b/media/filters/source_buffer_range.h
|
| @@ -207,6 +207,12 @@ class SourceBufferRange {
|
| private:
|
| typedef std::map<DecodeTimestamp, int> KeyframeMap;
|
|
|
| + // Called during AppendBuffersToEnd to adjust estimated duration at the
|
| + // end of the last append to match the delta in timestamps between
|
| + // the last append and the upcoming append. This is a workaround for
|
| + // WebM media where a duration is not always specified.
|
| + void AdjustEstimatedDurationForNewAppend(const BufferQueue& new_buffers);
|
| +
|
| // Seeks the range to the next keyframe after |timestamp|. If
|
| // |skip_given_timestamp| is true, the seek will go to a keyframe with a
|
| // timestamp strictly greater than |timestamp|.
|
| @@ -226,7 +232,7 @@ class SourceBufferRange {
|
|
|
| // Returns an iterator in |keyframe_map_| pointing to the first keyframe
|
| // before or at |timestamp|.
|
| - KeyframeMap::iterator GetFirstKeyframeBefore(DecodeTimestamp timestamp);
|
| + KeyframeMap::iterator GetFirstKeyframeAtOrBefore(DecodeTimestamp timestamp);
|
|
|
| // Helper method to delete buffers in |buffers_| starting at
|
| // |starting_point|, an iterator in |buffers_|.
|
|
|