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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 2549263002: FFmpegDemuxer should fall back to disabled streams for seeking (Closed)
Patch Set: Set start time to 0 for streams with unknown start time Created 4 years 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/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 6c065de24f66136852e05dc2788173b24d1cf8b1..5d155e6f99952f7eb6e4a428f9ba328da706b353 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -328,10 +328,15 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
// based timeline.
base::TimeDelta start_time_;
+ // Finds the stream with the lowest known start time (i.e. not kNoTimestamp
+ // start time) with enabled status matching |enabled|.
+ FFmpegDemuxerStream* FindStreamWithLowestStartTimestamp(bool enabled);
+
// Finds a preferred stream for seeking to |seek_time|. Preference is
// typically given to video streams, unless the |seek_time| is earlier than
// the start time of the video stream. In that case a stream with the earliest
- // start time is preferred. Disabled streams are not considered.
+ // start time is preferred. Disabled streams are considered only as the last
+ // fallback option.
FFmpegDemuxerStream* FindPreferredStreamForSeeking(base::TimeDelta seek_time);
// The Time associated with timestamp 0. Set to a null
« no previous file with comments | « no previous file | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698