Commit Graph

2278 Commits

Author SHA1 Message Date
Edwin Flores
b4d5ae59bc Bug 1147689 - Fix static analysis bustage - r=bustage 2015-03-26 23:17:13 +13:00
Edwin Flores
19fc7f27b6 Bug 1147689 - Preserve compatibility with eme-decrypt-v6 - r=cpearce 2015-03-26 22:58:43 +13:00
Edwin Flores
d52d526557 Bug 1147689 - Increment eme-decrypt API version to v7 - r=cpearce 2015-03-26 22:58:43 +13:00
Edwin Flores
29b990ffae Bug 1147689 - Pass the session ID(s) of an encrypted frame into EME CDMs - r=cpearce 2015-03-26 22:57:36 +13:00
Gerald Squelart
180a471b26 Bug 1135541 - Make crash reporting work for EME CDMs - r=cpearce 2015-03-26 19:55:30 +13:00
Chris Pearce
dbec6d951a Bug 1147730 part 2 - Validate input rather than not-yet-set data field in MediaKeySession::SetSessionId. r=jw_wang 2015-03-26 19:53:23 +13:00
Chris Pearce
8d9721c9f7 Bug 1147730 part 1 - Prevent data race between CDMProxy and CDM caps and video decoder startup. r=edwin 2015-03-26 19:53:05 +13:00
Jean-Yves Avenard
5e847f002d Bug 1145815: Do not report discontinuities less than 35ms. r=k17e 2015-03-25 22:32:21 +11:00
Bobby Holley
1ab90e3557 Bug 1142336 - Create one unified thread pool for media code and run the MDSM task queues on it. r=mattwoodrow
This allows for parallel MDSM execution. \o/
2015-03-25 17:46:26 -07:00
Bobby Holley
a383a7d7db Bug 852821 - Disable test on b2g. r=me 2015-03-25 17:46:25 -07:00
Bobby Holley
64fb087a10 Bug 1147495 - Add missing string to state list. r=me 2015-03-25 11:59:46 -07:00
Bobby Holley
53a9cc1d5e Bug 1136827 - Stop synchronously dispatching MediaDecoder::DecodeError from MDSM::DecodeError. r=mattwoodrow
MediaDecoder::DecodeError invokes MediaDecoder::Shutdown, which shuts down the
state machine. Given the sync dispatch, this means that this is basically already
what's happening.
2015-03-24 22:02:43 -07:00
Bobby Holley
0bed894a01 Bug 1136827 - Stop proxying DecodeError to the decode thread. r=mattwoodrow
At this point, all the callers actually call it on the state machine thread,
where it belongs.
2015-03-24 22:02:36 -07:00
Bobby Holley
9025f84150 Bug 1136827 - Call OnAudioSinkError on state machine thread. r=jww 2015-03-24 22:02:02 -07:00
JW Wang
77bab63134 Bug 1146733 - remove PlayFragmented() from eme.js r=ediwn. 2015-03-25 09:55:20 +08:00
Wes Kocher
ad79e8a717 Backed out 2 changesets (bug 1136827) for crashtest assertions CLOSED TREE
Backed out changeset 998f44ed19fb (bug 1136827)
Backed out changeset 3eb419228c1f (bug 1136827)
2015-03-24 17:21:21 -07:00
Bobby Holley
285b8ce457 Bug 1136827 - Stop synchronously dispatching MediaDecoder::DecodeError from MDSM::DecodeError. r=mattwoodrow
MediaDecoder::DecodeError invokes MediaDecoder::Shutdown, which shuts down the
state machine. Given the sync dispatch, this means that this is basically already
what's happening.
2015-03-24 15:01:48 -07:00
Bobby Holley
c0bf9623d5 Bug 1136827 - Stop proxying DecodeError to the decode thread. r=mattwoodrow
At this point, all the callers actually call it on the state machine thread,
where it belongs.
2015-03-24 15:01:47 -07:00
Jean-Yves Avenard
92147becc0 Bug 1146222: use nsAutoCString to store mimetype string. r=karlt
We use a nsAutoCString as the mimetype is typically less than 64 characters
and prevent a heap allocation (and the unecessary fragmentation linked to it)
2015-03-24 14:45:17 +11:00
Bobby Holley
fcac4e1548 Bug 1145203 - Unify FlushDecoding, ResetDecode, and ResetPlayback into a single Reset() method. r=mattwoodrow 2015-03-23 17:07:10 -07:00
Bobby Holley
d31de95621 Bug 1145203 - Remove the AwaitIdle call in FlushDecoding. r=mattwoodrow
There are two callers of FlushDecoding - One is shutdown (where we already use
promises to wait for the queue to go idle via BeginShutdown), and the other is
dormant (see the comment).
2015-03-23 17:07:09 -07:00
Wes Kocher
ab0d6fbec5 Backed out changeset f3b3547c610a (bug 1144409) for eme test failures CLOSED TREE 2015-03-23 16:06:32 -07:00
Wes Kocher
8c523bfc50 Backed out changeset 6cb38e697216 (bug 1144409) 2015-03-23 16:06:31 -07:00
Wes Kocher
356400af47 Backed out changeset c58f5ffb38e0 (bug 1142379) 2015-03-23 16:06:30 -07:00
Wes Kocher
d31297ac70 Backed out changeset f5a026d98faa (bug 1138294) 2015-03-23 16:06:28 -07:00
Bobby Holley
325acf96b9 Bug 1136873 - Deliver NotifyWaitingForResourcesStatusChanged asynchronously on the state machine task queue. r=mattwoodrow
The previous setup is wacky, and can cause the notification to reach the state
machine before the promise rejection, which causes us to stall intermittently.
We also take the opportunity to be a bit less trigger happy when we fire it
in MediaSourceReader.cpp.
2015-03-23 13:17:52 -07:00
Bobby Holley
5faed6827a Bug 1136873 - Use promises for metadata decoding. r=mattwoodrow 2015-03-23 13:17:51 -07:00
Gerald Squelart
1b5ec56fb4 Bug 1138294 - EME Mochitests with MSE stream switches. r=edwin 2015-03-23 15:12:19 -04:00
Gerald Squelart
ed55cb93ff Bug 1142379 - Encrypt audio and video tracks using separate encryption settings. r=edwin 2015-03-22 12:41:00 -04:00
Gerald Squelart
4c1646cd0f Bug 1144409 - Encrypted event should be fired once per initData; part 2: future initData. r=cpearce 2015-03-22 23:27:00 -04:00
Gerald Squelart
0693105064 Bug 1144409 - Encrypted event should be fired once per initData; part 1: first initData. r=cpearce 2015-03-22 23:26:00 -04:00
Byron Campen [:bwc]
84528d3a65 Bug 1145407: Another mochitest 3 bustage fix on CLOSED TREE. r=bustage 2015-03-23 10:29:53 -07:00
Byron Campen [:bwc]
72b40d7bde Bug 1145407: Fix mochitest 3 bustage on CLOSED TREE. r=bustage 2015-03-23 10:21:23 -07:00
Byron Campen [:bwc]
97f66738e2 Bug 1145407: Add mochitests that cause multiple tracks of the same type to be placed in the same remote stream. r=mt 2015-03-19 16:18:42 -07:00
Jean-Yves Avenard
08e886c1bc Bug 1143971: Rebase bustage fix. r=bustage ON A CLOSED TREE 2015-03-23 21:26:16 +11:00
Jean-Yves Avenard
9a1807412b Bug 1145411: Reduce Apple audio decoder verbosity. r=mattwoodrow 2015-03-23 21:09:05 +11:00
Jean-Yves Avenard
bc6e9ac326 Bug 1144617: Part2. Allow seek to end of mediasource.duration. r=mattwoodrow
When seeking to the end of a mediasource media data, we will instead seek
to the last audio and video sample. The MediaDecoderStateMachine will then
request more audio or video data that will make it hit End Of Stream and
complete the seek.
2015-03-23 21:08:05 +11:00
Jean-Yves Avenard
e8044901c0 Bug 1144617: Part1. Add MediaResource::IsLiveStream() API. r=cpearce
We can't just rely on the MediaResource size to be -1 with MSE. It needs a
dedicated method.
2015-03-23 21:08:05 +11:00
Jean-Yves Avenard
c5553526a1 Bug 1143971: Part1. Come out of waiting mode when mediasource is ended. r=mattwoodrow 2015-03-23 21:08:05 +11:00
Jean-Yves Avenard
1e9b3335bb Bug 1141333: Mark reader has ended when EndOfStream explicit. r=mattwoodrow 2015-03-23 21:08:05 +11:00
Karl Tomlinson
708218f202 bug 1144189 don't dispatch runnable again after immediate dispatch in RunAfterPendingUpdates r=roc 2015-03-18 09:29:33 +13:00
Karl Tomlinson
b76acaeb32 bug 1144341 RemoveDecoder() when initialization is aborted r=jya 2015-03-23 18:13:38 +13:00
Edwin Flores
7d338b8c72 Bug 1134434 - Fix bustage on a CLOSED TREE - r=bustage 2015-03-23 16:44:20 +13:00
Stephen Pohl
5690cc9e3f Bug 1145336: Remove old GMPs during updates. r=jwwang 2015-03-22 23:12:03 -04:00
Edwin Flores
55b656bb4b Bug 1134434 - Fire loadedmetadata before encrypted event on encrypted MP4s - r=cpearce 2015-03-23 15:31:15 +13:00
Edwin Flores
6ae01b039b Bug 1134434 - Change test_eme_non_fragmented to expect a loadedmetadata' event instead of encrypted' - r=cpearce 2015-03-23 15:31:15 +13:00
Jean-Yves Avenard
6766a88711 Bug 1145101: Part6. Remove the PDM::Shutdown() method. r=cpearce
PDM::Shutdown() was documented in some implementation as running from the main
thread which wasn't the case. It served no purpose and all can be done from the
destructor instead.
The PDM being a refcounted object can be referenced by more than one object.
Shutting it down too early could cause crash. This is now avoided.
2015-03-23 11:12:59 +11:00
Jean-Yves Avenard
c4e90672b8 Bug 1145101: Part5. Re-use the same PDM when recreating a decoder. r=mattwoodrow
This ensure proper balance of PDM/Media Data Decoder Shutdown()
2015-03-22 13:13:42 +11:00
Jean-Yves Avenard
13e41fc86a Bug 1145101: Part4. Fix coding style. r=cpearce 2015-03-23 11:12:58 +11:00
Jean-Yves Avenard
cb1ad68b58 Bug 1145101: Part3. Ensure PDM is shutdown after decoder. r=cpearce
A MediaDataDecoder object can't be used once the PDM that created it is
shutdown.
We ensure that if the PDM is in use by the SharedDecoderManager we do not
shut it down.
2015-03-23 11:12:58 +11:00