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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 2645953004: Update duration when demuxed packets exceed known duration. (Closed)
Patch Set: Remove broken CGI server. Rate limit duration changed events. Created 3 years, 11 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/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index be632cd33b014384d6b16d016428bfaeff24a208..d12ec8911d99337ed5bc1f8c9c2a3f8df22652b5 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -123,10 +123,6 @@ class FFmpegDemuxerStream : public DemuxerStream {
// Returns the range of buffered data in this stream.
Ranges<base::TimeDelta> GetBufferedRanges() const;
- // Returns elapsed time based on the already queued packets.
- // Used to determine stream duration when it's not known ahead of time.
- base::TimeDelta GetElapsedTime() const;
-
// Returns true if this stream has capacity for additional data.
bool HasAvailableCapacity();
@@ -354,6 +350,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
// Set if we know duration of the audio stream. Used when processing end of
// stream -- at this moment we definitely know duration.
bool duration_known_;
+ base::TimeDelta duration_;
// FFmpegURLProtocol implementation and corresponding glue bits.
std::unique_ptr<BlockingUrlProtocol> url_protocol_;

Powered by Google App Engine
This is Rietveld 408576698