gecko-dev/dom
Kaku Kuo 1226fb4d2c Bug 1380244 - trigger skip-to-next-key-frame quicker; r=jya
This patch is going to loose the criteria of skip-to-next-key-frame.

The original rules are here:
http://searchfox.org/mozilla-central/rev/31311070d9860b24fe4a7a36976c14b328c16208/dom/media/MediaFormatReader.cpp#1559

Skip-to-next-key-frame is triggered if the playback position is LARGER than the next key frame time.
But, from the video-track point of view, when the skip-to-next-key-frame is triggered, it skips to the next-next key frame.

Here is an example, say, we are playing a media file with its playback position at time _a_,
and its video decoding is falling behind at time _v_.
The next key frame is at time _k1_ and next-next key frame is at time _k2_.

              a
----|---------|---------|-------------|----------------> time
    v                   k1            k2

When the playback position _a_ passes _k1_ (_a_ > _k1_), the skip-to-next-key-frame is triggered,
and the demuxer jumps to _k2_ directly.



The idea here is to give a chance when (_a_ == _k1_), let demuxer jump to _k1_ and see if the video decoding could catch up.

MozReview-Commit-ID: 6aRSYDOI1ds

--HG--
extra : rebase_source : c448df7af9f83b9127bad9bae28f353b40669b7f
2017-07-12 16:16:49 +08:00
..
animation Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio 2017-07-10 17:52:00 -04:00
asmjscache Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
audiochannel Backed out changeset af66c0b94881 for landing with the wrong bug number in the commit message. 2017-06-28 18:37:16 -04:00
base Backed out changeset b223c191f442 (bug 1355746) for frequently failing mochitests with: /tests/dom/base/test/test_data_uri.html logged result after SimpleTest.finish(): iframe should have NullPrincipal. r=backout 2017-07-12 19:20:11 +02:00
battery
bindings Bug 1371259 followup. Fix rooting analysis hazards in UnwrapObjectInternal. r=peterv pending 2017-07-10 18:04:49 -04:00
broadcastchannel Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
browser-element Bug 1377656 - Bug 1377656 - Remove visibility check in BrowserElement API, r=kanru 2017-07-04 05:43:52 +02:00
cache Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj. 2017-06-20 19:19:05 +10:00
canvas Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio 2017-07-10 17:52:00 -04:00
commandhandler Bug 1372268 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj 2017-06-14 16:11:22 +02:00
console Bug 1376498 part 2 - Use plain Remove(key) in some places instead of Lookup(key).Remove() for simplicity. r=froydnj 2017-07-05 02:01:44 +02:00
credentialmanagement
crypto Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian 2017-06-19 11:32:37 +01:00
encoding Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
events merge mozilla-inbound to mozilla-central a=merge 2017-07-12 11:07:09 +02:00
fetch Bug 1375659 - FetchConsumer must check if the operation has been aborted before starting, r=bkelly 2017-07-10 22:07:44 +02:00
file Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
filehandle Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
filesystem Bug 1360320 - Use a temporary directory for testing Entries API, r=smaug 2017-07-04 05:40:50 +02:00
flyweb Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
gamepad Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj) 2017-07-03 16:19:56 -07:00
geolocation Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
grid Bug 1373678 Part 3: Add line number checks to test_grid_implicit.html. r=dholbert 2017-06-16 11:03:33 -07:00
html Backed out changeset 8a5e11d641cc (bug 1355746) 2017-07-12 19:19:13 +02:00
imptests
indexedDB Bug 1380009 - Enable the ESLint no-return-await call to avoid unnecessary intermediate promise creation. r=mossop 2017-07-11 22:49:55 +01:00
interfaces Bug 1018394 - Remove unused functionality to do extra forget skippable calls before a CC. r=smaug 2017-07-03 12:53:54 -07:00
ipc Bug 1373660 - Block the preallocated process manager while a content process is being launched. r=mrbkap 2017-07-11 17:30:08 +02:00
json
jsurl Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
locales Bug 1379108 - Factor GetValidationMessage() out of HTMLInputElement. r=smaug 2017-07-10 19:10:00 -04:00
manifest Bug 1374282 - hand cleanup for the script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
mathml Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
media Bug 1380244 - trigger skip-to-next-key-frame quicker; r=jya 2017-07-12 16:16:49 +08:00
messagechannel Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv 2017-07-10 16:05:24 -04:00
network Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
notification Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv 2017-07-10 16:05:24 -04:00
offline Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
payments Bug 1376623 - PaymentMethodData.supportedMethods is now DOMString. r=baku 2017-07-01 01:17:12 +08:00
performance Bug 1377251 - Expose TIME_TO_NON_BLANK_PAINT as Performance Entry behind pref. r=qDot 2017-07-05 16:51:50 -07:00
permission
plugins Bug 943276 - Remove unused nsIPlatfromCharset. r=emk 2017-07-10 12:37:56 +09:00
power Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
presentation Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv 2017-07-10 16:05:24 -04:00
promise Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv 2017-07-10 16:05:24 -04:00
push Bug 1368456 - remove Promise.jsm imports in tests, r=mconley. 2017-06-23 11:25:52 +02:00
quota Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj) 2017-07-03 16:19:56 -07:00
res
script Bug 1306887 - keep SourceMap response header on CSS style sheets; r=bz,heycam 2017-06-28 16:51:46 -07:00
secureelement
security Bug 1373513 - Part 3: Revert Bug 1363634. r=ckerschb 2017-07-12 11:00:34 +08:00
smil Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio 2017-07-10 17:52:00 -04:00
storage Merge m-c to autoland, a=merge 2017-07-06 16:19:38 -07:00
svg Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio 2017-07-10 17:52:00 -04:00
system Bug 1369319 - Part 1: Block device sensor events when 'privacy.resistFingerprinting' is true. r=arthuredelstein,bz 2017-06-20 11:10:06 +08:00
tests Bug 1222633 - Add rel=preload - tests. r=smaug 2017-07-10 15:05:48 +02:00
time Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
u2f Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
url Backed out 2 changesets (bug 1344751) for frequent android crashes in test_fetch_cors_sw_reroute.html a=backout 2017-07-10 14:17:35 -07:00
vr Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
webauthn Bug 1379580 - U2FTokenTransport promises should resolve to U2F data buffers r=qDot 2017-07-11 11:09:08 +02:00
webbrowserpersist Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
webidl Bug 1264479: added [current|pending][Local|Remote]Description to WebIDL. r=smaug 2017-06-30 01:18:46 -07:00
workers Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv 2017-07-10 16:05:24 -04:00
worklet Bug 1373555 - Move the Fetch consume body login in a separate class - part 3 - Move the consuming body logic from FetchBody to FetchBodyConsumer, r=bkelly 2017-06-20 17:53:21 +02:00
xbl Bug 1373513 - Part 2: Revert Bug 1364367. r=ckerschb 2017-07-12 11:00:27 +08:00
xhr Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
xml Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
xslt Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv 2017-07-10 16:05:24 -04:00
xul Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
jar.mn
moz.build