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

Unified Diff: media/filters/chunk_demuxer.h

Issue 205703003: MSE: Use frame duration, if available, in LegacyFrameProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to pull in WebM frame duration estimation, undid the CD tests' conversion to just BlockGrou… Created 6 years, 9 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 | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/filters/chunk_demuxer_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index 589dbd8ccc5cba7690eab804830edc2b17aeb179..fd38aee810ce7953be9cfadf67a0ef48ae0934d3 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -295,12 +295,8 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// Returns true if |source_id| is valid, false otherwise.
bool IsValidId(const std::string& source_id) const;
- // Increases |duration_| if |last_appended_buffer_timestamp| exceeds the
- // current |duration_|. The |duration_| is set to the end buffered timestamp
- // of |stream|.
- void IncreaseDurationIfNecessary(
- base::TimeDelta last_appended_buffer_timestamp,
- ChunkDemuxerStream* stream);
+ // Increases |duration_| to |new_duration|, if |new_duration| is higher.
+ void IncreaseDurationIfNecessary(base::TimeDelta new_duration);
// Decreases |duration_| if the buffered region is less than |duration_| when
// EndOfStream() is called.
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | media/filters/chunk_demuxer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698