Commit ebffea1c authored by Jean-Yves Avenard's avatar Jean-Yves Avenard
Browse files

Bug 1261900: [MSE/webm] P5. Re-add WebMTrackDemuxer::GetEvictionOffset. r=gerald

parent f0d5590b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1030,5 +1030,16 @@ WebMTrackDemuxer::BreakCycles()
  mParent = nullptr;
}

int64_t
WebMTrackDemuxer::GetEvictionOffset(const media::TimeUnit& aTime)
{
  int64_t offset;
  if (!mParent->GetOffsetForTime(aTime.ToNanoseconds(), &offset)) {
    return 0;
  }

  return offset;
}

#undef WEBM_DEBUG
} // namespace mozilla
+2 −0
Original line number Diff line number Diff line
@@ -230,6 +230,8 @@ public:

  media::TimeIntervals GetBuffered() override;

  int64_t GetEvictionOffset(const media::TimeUnit& aTime) override;

  void BreakCycles() override;

private: