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

Bug 1189138: [MSE] P1. Only seek to a position if the trackbuffer contains it. r=cpearce

Ignoring the time if it was 0 was a remnant on when Reset() used to call seek and meant to get to the first frame available.
This is no longer relevant, DoSeek is only called when we are explicitly seeking.
parent e3223904
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ MediaSourceTrackDemuxer::BreakCycles()
nsRefPtr<MediaSourceTrackDemuxer::SeekPromise>
MediaSourceTrackDemuxer::DoSeek(media::TimeUnit aTime)
{
  if (aTime.ToMicroseconds() && !mBufferedRanges.Contains(aTime)) {
  if (!mBufferedRanges.Contains(aTime)) {
    // We don't have the data to seek to.
    return SeekPromise::CreateAndReject(DemuxerFailureReason::WAITING_FOR_DATA,
                                        __func__);