Index: media/base/stream_parser.h |
diff --git a/media/base/stream_parser.h b/media/base/stream_parser.h |
index 27ebc3f0a59190ba83719fe179834eadd41baccd..11740c9d1c6eeb9c67dce7d34de271b3a1c9e99b 100644 |
--- a/media/base/stream_parser.h |
+++ b/media/base/stream_parser.h |
@@ -106,6 +106,9 @@ class MEDIA_EXPORT StreamParser { |
// Signals the beginning of a new media segment. |
typedef base::Callback<void()> NewMediaSegmentCB; |
+ // Signals the end of a media segment. |
+ typedef base::Callback<void()> EndMediaSegmentCB; |
+ |
// A new potentially encrypted stream has been parsed. |
// First parameter - The type of the initialization data associated with the |
// stream. |
@@ -128,12 +131,13 @@ class MEDIA_EXPORT StreamParser { |
bool ignore_text_track, |
const EncryptedMediaInitDataCB& encrypted_media_init_data_cb, |
const NewMediaSegmentCB& new_segment_cb, |
- const base::Closure& end_of_segment_cb, |
+ const EndMediaSegmentCB& end_of_segment_cb, |
const scoped_refptr<MediaLog>& media_log) = 0; |
- // Called when a seek occurs. This flushes the current parser state |
- // and puts the parser in a state where it can receive data for the new seek |
- // point. |
+ // Called during the reset parser state algorithm. This flushes the current |
+ // parser and puts the parser in a state where it can receive data. This |
+ // method does not need to invoke the EndMediaSegmentCB since the parser reset |
+ // algorithm already resets the segment parsing state. |
virtual void Flush() = 0; |
// Called when there is new data to parse. |