mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user