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

Unified Diff: media/filters/chunk_demuxer.h

Issue 256583006: Fix possible buffer emission during an abort. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index c0889f661cdabe89fead53f590ee7e8ce32ea9dc..3a8abc4495687d1e5b30cfce25b56b7ae2031823 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -220,7 +220,9 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// Aborts parsing the current segment and reset the parser to a state where
// it can accept a new segment.
- void Abort(const std::string& id);
+ // Some pending frames can be emitted during that process. These frames are
+ // applied |timestamp_offset|.
+ void Abort(const std::string& id, base::TimeDelta timestamp_offset);
// Remove buffers between |start| and |end| for the source buffer
// associated with |id|.

Powered by Google App Engine
This is Rietveld 408576698