Commit Graph

1566 Commits

Author SHA1 Message Date
Chris Double
976cf3f159 Bug 1055904 - Improve MSE eviction calculation - r=jya
Fixes a bug in the SourceBufferResource eviction code where it was
using the mOffset of the resource as the min bound for what to evict.
This offset is almost always zero though due to ReadFromCache being
used which never updates the offset. This prevented eviction from
happening in most cases.

Moves the code to remove old decoders so that it does this during
the same loop as that which remove data from existing decoders.
This more aggressively prunes old decoders and is more likely to
keep data in the current playing decoder around for seeking, etc.

Prevent removing any decoder that the MediaSourceReader is
currently using for playback to prevent RemoveDecoder crashes.

Add a threshold to subtract from the current time when working out
the time bound to evict before to make it less likely to evict
current data that is needed for current playback.

Remove all data from evicted decoders in the initial iteration then
iterate after to remove empty decoders to put the RemoveDecoder
logic in one place.

Iterate decoders in order that they were added rather than sorted
by time so the logic that removes entire decoders can do it only
to those old decoders that existed before the existing one was
created.

Keeps track of the time that was evicted from the current decoder
and uses that as the time to EvictBefore for all decoders in the
track buffer when doing MediaSource::NotifyEvict.

--HG--
extra : rebase_source : f7b4fe263a8041b3882585caea389742b2a1a9b3
2015-01-16 16:14:56 +13:00
Nils Ohlmeier [:drno]
0e90bcb6ed Bug 1115212: replace onaddstream boolean with counters r=bwc
--HG--
extra : rebase_source : 7844a573a7100ddf144146d6a914139a1ba9c22f
extra : amend_source : 2d581214bdfa83cbcd05a9be34427e3622b8d0ec
2015-01-14 15:47:00 -08:00
Byron Campen [:bwc]
654bfaaba2 Bug 1095218 - Part 2: Multistream support. r=mt
--HG--
extra : rebase_source : c6d54ebec6ee2944552d6e13ea8d88a126ba9649
extra : amend_source : c93a2335b158668e5517b626b0666f30bec682bb
2014-12-10 11:17:09 -08:00
Byron Campen [:bwc]
d02c39d11f Bug 1095218 - Part 1: msid support. r=mt
--HG--
extra : rebase_source : 85f8a97d16496f2b00ea049ebe29d41becd15a62
2014-12-01 21:19:57 -08:00
Bobby Holley
5701cb0b99 Bug 1121248 - Stop logging unimplemented methods in SourceBufferResource. r=mattwoodrow 2015-01-15 09:58:48 -08:00
Bobby Holley
cd438601e1 Bug 1121841 - Clear the failed read after checking it. r=jya 2015-01-15 09:58:38 -08:00
JW Wang
13c5337cea Bug 1112588 - ingore 'stalled' events because the progress timer could time out before receiving any HTTP notifications on slow machines like B2G emulator. r=cpearce 2015-01-13 22:40:00 +01:00
Alfredo Yang
2d6a431a87 Bug 1120298 - add dormant functions in MediaSourceReader for gonk. r=ajones 2015-01-14 01:27:00 +01:00
Nils Ohlmeier [:drno]
ca2615c49d Bug 1121176 - use the proper Answer on pcLocal. r=bwc 2015-01-13 13:43:00 +01:00
Chris Pearce
2d7d331a93 Bug 1112822 - Don't allow MP4Reader to decode if someone shut it down. r=mattwoodrow 2015-01-15 15:49:38 +13:00
Matt Woodrow
366c7a681f Bug 1121661 - Null check mDemuxer in MP4Reader::ResetDecoder since we might not have created one yet. r=bholley 2015-01-15 14:42:49 +13:00
Brian Smith
6e127085a1 Bug 1119776, Part 1: Avoid defining snprintf when MSVC provides it (dom/media), r=ehsan
--HG--
extra : rebase_source : e4ddef65c1d98f8d300560a267d6f198258315c1
2015-01-08 22:30:35 -08:00
JW Wang
a9391d3408 Bug 1102852 - add MediaKeyMessageType to and remove destinationURL from MediaKeyMessageEvent. r=cpearce,bz 2015-01-15 11:25:47 +13:00
JW Wang
70e0ff3199 Bug 1120295 - test case for "Clear Recent History" command. r=cpearce. 2015-01-13 00:32:00 +01:00
Benjamin Chen
7cbd794ce3 Bug 1114910: - 1. fix crash at promise. 2. Re-write code relative to promise. r=cpearce 2015-01-13 15:42:53 +08:00
Jonathan Hao
754ee54a0c Bug 1114434 - Fix logic in MediaQueue::Duration(). r=jwwang 2014-12-24 18:10:24 +08:00
JW Wang
d842c12f59 Bug 1111788 - Part 3 - clear nodeIds/records which are modified after the time of "clear recent history". r=cpearce. 2015-01-11 19:22:00 +01:00
JW Wang
b5a3daefe2 Bug 1111788 - Part 2 - have GeckoMediaPluginService listen to "browser:purge-session-history" event. r=cpearce. 2015-01-08 19:27:00 +01:00
JW Wang
fbcd77f84d Bug 1110922 - disable vbr.mp3 to see if it reduces the error of AUDCLNT_E_CPUUSAGE_EXCEEDED. r=padenot 2015-01-11 20:02:00 +01:00
JW Wang
c9cb9579ea Bug 1081251 - register error handlers for all media elements in EME mochitests. r=cpearce 2015-01-09 01:46:00 +01:00
Julian Seward
b22caf6904 Bug 1119803 - Uninitialised value use in StopPrerollingVideo. r=bobbyholley. 2015-01-13 12:56:38 +01:00
Andrea Marchesini
d6ae21b741 Bug 1018320 - RequestSync API - patch 5 - mozSetMessageHandlerPromise, r=fabrice 2015-01-13 09:53:22 +00:00
Chris Pearce
59325224ff Bug 1112445 - Ignore the audio stream when determining whether we should skip-t-o-next-keyframe for async readers. r=mattwoodrow 2015-01-13 22:31:03 +13:00
Carsten "Tomcat" Book
35248aa586 Backed out changeset d9db938747d2 (bug 879717) for M-3 Test failures/timeouts on a CLOSED TREE 2015-01-13 08:48:01 +01:00
Carsten "Tomcat" Book
c8cfc999b8 Backed out changeset d099c153d94a (bug 879717) 2015-01-13 08:47:37 +01:00
Carsten "Tomcat" Book
8ac737778e Backed out changeset 19432abcb3f1 (bug 879717) 2015-01-13 08:47:35 +01:00
Carsten "Tomcat" Book
bc8b4de57e Backed out changeset f3b7db6c2164 (bug 879717) 2015-01-13 08:47:33 +01:00
Andreas Pehrson
34d7242afb Bug 879717 - Part 4. Clean up test_peerConnection_capturedVideo.html's waiting for loadedmetadata r=jesup 2014-12-19 21:43:58 +01:00
Andreas Pehrson
883a1c0b41 Bug 879717 - Part 3 - Test video dimensions set on loadedmetadata event. r=roc 2014-12-19 01:25:00 +01:00
Andreas Pehrson
d0271a6175 Bug 879717 - Part 2. Test that drawing a video element to canvas never throws. r=roc 2014-10-06 11:22:55 +02:00
Andreas Pehrson
4e646b6ec1 Bug 879717 - Part 1. Delay entering HAVE_CURRENT_DATA state until a video frame has been stored in the image container. r=roc 2014-10-10 11:34:57 +02:00
Andreas Pehrson
80e35edf78 Bug 1113600 - Part 4. Handle switching directly from audio clock to stream clock. r=roc 2015-01-13 03:23:48 +08:00
Andreas Pehrson
62ce996fb4 Bug 1113600 - Part 3. Add mochitest for capturing media mid-playback. r=roc 2014-12-21 14:46:24 +01:00
Andreas Pehrson
a22a198c37 Bug 1113600 - Part 2. Handle setting a MediaStream sync point mid-playback. r=roc 2015-01-08 13:37:22 +08:00
Andreas Pehrson
a5b7750c02 Bug 1113600 - Part 1. Send stream data right away after adding an output stream. r=roc 2015-01-08 13:36:29 +08:00
Bobby Holley
b9245f531a Bug 1120629 - Cache data directly on MP4Stream rather than relying on the media cache. r=roc 2015-01-12 15:50:09 -08:00
Sotaro Ikeda
18b1606ac8 Bug 1112410 - Handle set dormant during seeking r=cpearce 2015-01-12 15:08:55 -08:00
Ryan VanderMeulen
aed51d5e54 Merge inbound to m-c. a=merge 2015-01-12 15:26:50 -05:00
Ryan VanderMeulen
b4ff41d68e Bug 1119818 - Bump various UUIDs that were missed when IDL changes landed. r=jib, r=jdm, r=gavin, r=bz, a=me 2015-01-12 10:44:18 -05:00
Matt Woodrow
545192354b Bug 1119033 - Don't try to evict when we don't have any initialized decoders. r=ajones 2015-01-12 15:35:35 +13:00
Anthony Jones
4f0a2ee888 Bug 1105066 - Seek after switching reader; r=mattwoodrow 2015-01-12 15:10:15 +13:00
Matt Woodrow
8cd51d9f13 Bug 1105066 - Chain seeks in MediaSourceReader so that we seek audio to the same time as video; r=kentuckyfriedtakahe 2015-01-12 11:05:08 +13:00
Matt Woodrow
972dde5588 Bug 1105066 - Make SeekPromise return the time we actually seeked to; r=kentuckyfriedtakahe 2015-01-12 10:57:14 +13:00
Bobby Holley
5a7f8b32cf Bug 1119456 - Work around the fact that media cache does not quite guarantee the property we want. r=roc 2015-01-11 13:24:26 -08:00
Bobby Holley
85966c53ed Bug 1119456 - Make MP4Demuxer's blocking reads non-blocking and hoist blocking into callers with a hacky retry strategy. r=k17e 2015-01-11 13:24:26 -08:00
Matt Woodrow
d3e5c76ca9 Bug 1118528 - Increase fuzz threshold for mp4. r=ajones 2015-01-12 09:48:23 +13:00
Matt Woodrow
fb0f72ffdb Bug 1118528 - Use fuzzy comparisons in MediaSourceReader::HaveData. r=cajbir 2015-01-12 09:47:56 +13:00
Matt Woodrow
fe5df5dec4 Bug 1116284 - Don't run MP4Reader::Update after we've shut the reader down. r=cpearce 2015-01-12 09:43:11 +13:00
Matt Woodrow
e7a4379e53 Bug 1116626 - Null check mDecoder in AutoNotifyDecoded since it might have been shutdown already. r=karlt 2015-01-12 09:41:50 +13:00
Masatoshi Kimura
bf312ad056 Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00