Bug 1261900: P3. Re-add MediaDataDemuxer::GetEvictionOffset() API. r=gerald
API was removed in
bug 1204419.
MozReview-Commit-ID: Hr9SgVsG0vl
--- a/dom/media/MediaDataDemuxer.h
+++ b/dom/media/MediaDataDemuxer.h
@@ -196,16 +196,23 @@ public:
virtual TrackInfo::TrackType GetType() const
{
return GetInfo()->GetType();
}
virtual media::TimeIntervals GetBuffered() = 0;
+ // By default, it is assumed that the entire resource can be evicted once
+ // all samples have been demuxed.
+ virtual int64_t GetEvictionOffset(const media::TimeUnit& aTime)
+ {
+ return INT64_MAX;
+ }
+
// If the MediaTrackDemuxer and MediaDataDemuxer hold cross references.
// BreakCycles must be overridden.
virtual void BreakCycles()
{
}
protected:
virtual ~MediaTrackDemuxer() {}