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

Unified Diff: media/filters/legacy_frame_processor.h

Issue 341083004: Introduce the playback time into the MSE garbage collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New flow to pass the media time to SourceBufferStream. Created 6 years, 6 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
« no previous file with comments | « media/filters/frame_processor_base.h ('k') | media/filters/legacy_frame_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/legacy_frame_processor.h
diff --git a/media/filters/legacy_frame_processor.h b/media/filters/legacy_frame_processor.h
index c37dd7b21dbea0802d6516c2660da3d591d55196..f32ea6bdff44936ea6e4ef7101e468e467d354c6 100644
--- a/media/filters/legacy_frame_processor.h
+++ b/media/filters/legacy_frame_processor.h
@@ -32,7 +32,8 @@ class MEDIA_EXPORT LegacyFrameProcessor : public FrameProcessorBase {
base::TimeDelta append_window_start,
base::TimeDelta append_window_end,
bool* new_media_segment,
- base::TimeDelta* timestamp_offset) OVERRIDE;
+ base::TimeDelta* timestamp_offset,
+ base::TimeDelta media_time) OVERRIDE;
private:
// Helper function that adds |timestamp_offset| to each buffer in |buffers|.
@@ -58,7 +59,8 @@ class MEDIA_EXPORT LegacyFrameProcessor : public FrameProcessorBase {
// Returns true if the append was successful. Returns false if
// |stream| is NULL or something in |buffers| caused the append to fail.
bool AppendAndUpdateDuration(ChunkDemuxerStream* stream,
- const StreamParser::BufferQueue& buffers);
+ const StreamParser::BufferQueue& buffers,
+ base::TimeDelta media_time);
// Helper function for Legacy ProcessFrames() when new text buffers have been
// parsed.
« no previous file with comments | « media/filters/frame_processor_base.h ('k') | media/filters/legacy_frame_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698