diff --git a/dom/media/mediasource/TrackBuffer.cpp b/dom/media/mediasource/TrackBuffer.cpp index 1138a1782cef..2b49e57253ce 100644 --- a/dom/media/mediasource/TrackBuffer.cpp +++ b/dom/media/mediasource/TrackBuffer.cpp @@ -429,6 +429,10 @@ TrackBuffer::EvictData(double aPlaybackTime, } } + if (evicted) { + mParentDecoder->NotifyTimeRangesChanged(); + } + return evicted; } @@ -493,6 +497,7 @@ TrackBuffer::EvictBefore(double aTime) mInitializedDecoders[i]->GetResource()->EvictBefore(endOffset); } } + mParentDecoder->NotifyTimeRangesChanged(); } media::TimeIntervals @@ -1104,6 +1109,7 @@ TrackBuffer::RangeRemoval(media::TimeUnit aStart, RemoveEmptyDecoders(decoders); + mParentDecoder->NotifyTimeRangesChanged(); return true; }