import changes from `dev' branch of rmottola/Arctic-Fox:

- Bug 1184429: P1. Don't dispatch NotifyDataArrived if previously dispatched with same range. r=jwwang (23c800ae85)
- partial of Bug 1184429: P2. MediaResource::SilentReadAt to read from cache first. r=jwwang (8cee1efb46)
- Bug 1173463 - Add MediaResource::GetContentURL(). r=cpearce (a204aeff0a)
- Bug 1142455 - Tweak MediaCache parameters. r=roc (a3ded56f74)
This commit is contained in:
2022-02-19 17:21:44 +08:00
parent 686c724f36
commit 9cc0678415
3 changed files with 21 additions and 1 deletions
+2
View File
@@ -192,6 +192,8 @@ MediaDecoderReader::ThrottledNotifyDataArrived(const Interval<int64_t>& aInterva
if (mThrottledInterval.isNothing()) {
mThrottledInterval.emplace(aInterval);
} else if (mThrottledInterval.ref().Contains(aInterval)) {
return;
} else if (!mThrottledInterval.ref().Contiguous(aInterval)) {
DoThrottledNotify();
mThrottledInterval.emplace(aInterval);