Kaku Kuo
1fa35f6899
Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
...
MozReview-Commit-ID: LuNmrtDl4BR
--HG--
extra : rebase_source : 01a82baa91c4c7d8e1ff6600f615017735313716
extra : source : bbd1f9644d39d9c935015b8dfad24e790c5a3c7a
2017-03-08 21:28:01 +08:00
Kaku Kuo
af6e44d1d0
Bug 1345403 part 1 - Track decoder tainting; r=jwwang
...
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.
MozReview-Commit-ID: Ik6aDIzrZaO
--HG--
extra : rebase_source : 1dfdedea63d18918ef7b529a87f3afeb1592b149
extra : source : 1ac0f1b9264706f65e04528757bd60028331d31f
2017-03-08 19:28:13 +08:00
Jean-Yves Avenard
04af6071b4
Bug 1345363: Don't truncate debugging information. r=jwwang
...
NS_DebugBreak truncate all output to 500 characters.
MozReview-Commit-ID: 1gEyJNge7gk
--HG--
extra : rebase_source : 0996ef25dd14cc8f5fe03672d85d37cfcc3ab14a
2017-03-10 11:21:41 +01:00
karo
85319b4cd0
Bug 1344073 - Adding consistent formatting to HTMLMediaElement::MozRequestDebugInfo debugInfo dump string. r=cpearce
...
MozReview-Commit-ID: GfRrLQcebbt
--HG--
extra : rebase_source : 846b74c63528f58e414636654b0167d6c8c1480b
2017-03-01 16:03:01 +13:00
JW Wang
57506c3907
Bug 1343787. Part 2 - move the Register() calls to Load(). r=gerald
...
MozReview-Commit-ID: 2jjZujE1qH8
--HG--
extra : rebase_source : f787346a5631acceb27d88e352d67f66e8053bf9
extra : source : 2d3a5e31f306ab2109f38e070a9881ef2affba60
2017-03-02 18:03:20 +08:00
JW Wang
603ff013e0
Bug 1343428
- Label runnables in dom/media/MediaDecoder.cpp. r=gerald
...
MozReview-Commit-ID: Jv6iXO9ZxZH
--HG--
extra : rebase_source : 1bb7d9adade46dcfc982956b2bf25ddd9901ae25
extra : source : 8e66c8373a28678e500d831993bf7661c84a34ae
2017-03-01 11:36:17 +08:00
Michael Layzell
cab1a9949b
Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
...
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-24 14:34:23 -05:00
Wes Kocher
7e8f316730
Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
...
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)
MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell
1d0870e2e1
Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
...
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-23 12:24:12 -05:00
Wes Kocher
8c4ce17711
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Vedant Sareen
7d4bd52fae
Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
...
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Wes Kocher
9738f2b4f7
Backed out 5 changesets (bug 1336510) for mass bustage a=backout CLOSED TREE
...
Backed out changeset 35d16d04d67d (bug 1336510)
Backed out changeset 41db22e0c13d (bug 1336510)
Backed out changeset 2075037694ed (bug 1336510)
Backed out changeset 71be73be6c4e (bug 1336510)
Backed out changeset 02ccacdbbb93 (bug 1336510)
MozReview-Commit-ID: Lx2kKu7JVvI
2017-02-15 13:40:12 -08:00
Michael Layzell
2b5e4ffefa
Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
...
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-15 15:32:44 -05:00
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
JW Wang
f40aaeaffc
Bug 1336356 - Ensure MediaDecode::Shutdown() is called by MediaShutdownManager::BlockShutdown(). r=gerald
...
MozReview-Commit-ID: 80AFMafXoeB
--HG--
extra : rebase_source : 8b51b6c9fe4b83b4639c7ae081854307c4308391
extra : source : 7ca33be035c12485e0d6529c529b0cda914fd405
2017-02-03 17:12:38 +08:00
JW Wang
f5d46474d6
Bug 1336345. Part 1 - register shutdown blocker only once when the 1st MediaDecoder is created. r=gerald
...
MozReview-Commit-ID: 80DEZEEhm9E
--HG--
extra : rebase_source : 25db947e54192d37f8edf9461ae011c164ad708b
extra : source : 1785526b2065f6dd314218e19e75b770bab8a08e
2017-02-03 15:12:22 +08:00
Jean-Yves Avenard
b7844bd5c3
Bug 1319987: P9. More coding style fixes. r=gerald
...
MozReview-Commit-ID: DhFRqkWQZny
--HG--
extra : rebase_source : 03ed44efc83fe9cab7fc975229ac4e5746aff96b
2017-01-27 13:20:37 +01:00
Carsten "Tomcat" Book
f040eda61d
Merge mozilla-central to autoland
2017-01-23 11:42:26 +01:00
JW Wang
e13e207c12
Bug 1332544 - replace use of mOwner with GetOwner() which provides more checks. r=gerald
...
MozReview-Commit-ID: DUTO4vR2kjU
--HG--
extra : rebase_source : 5edfabb169efdc0be938ed85d68d42f8694280d1
2017-01-20 11:47:53 +08:00
JW Wang
4fd7502e78
Bug 1331862. Part 3 - remove MDSM::DumpDebugInfo() and call RequestDebugInfo() instead. r=kaku
...
MozReview-Commit-ID: 4dEe6joFW01
--HG--
extra : rebase_source : 1e1b2ffb2403e1845402cd34cec111e2c5cc912c
extra : source : 984d34111fee30fce68660174afb8b68f515c6b9
2017-01-19 17:20:36 +08:00
JW Wang
4963f39de0
Bug 1331862. Part 2 - add functions to collect debugging info asynchronously. r=kaku
...
MozReview-Commit-ID: 4btaZqUqyLn
--HG--
extra : rebase_source : 80289bb88f7359062575e2b7f7da06e00f78cd51
extra : source : 7e011787cb911799f47b55aeba986bf05c30ed27
2017-01-19 14:18:41 +08:00
JW Wang
da6c0492b0
Bug 1331862. Part 1 - extract code to functions for reuse. r=kaku
...
MozReview-Commit-ID: 9QNTaBxGUFq
--HG--
extra : rebase_source : 98e95c60cbd66a5df4571644e4a6415f5bdbc371
extra : intermediate-source : 9dcd71ff0f89beda838f09865dfaa7f96983e430
extra : source : b0cf54f37556f520e45a001dcfa681e4a612a927
2017-01-18 17:55:59 +08:00
Bevis Tseng
f2bdbd8fd1
Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
...
MozReview-Commit-ID: 9yJi3iDtVZG
--HG--
extra : rebase_source : 39c720ccc576ed9247b5e8abb70d99d7873b3ad6
2016-11-29 13:03:36 +08:00
Carsten "Tomcat" Book
709bd29d0a
merge mozilla-inbound to mozilla-central a=merge
2017-01-19 16:05:22 +01:00
Matt Woodrow
cb44a7993f
Bug 1316652 - Silence unnecessary warning in MediaDecoder. r=jya
...
--HG--
extra : rebase_source : 39e4dbefc436fd8b82a8cd5f2231d5b83b4688cd
2017-01-19 12:40:06 +13:00
Gerald Squelart
f17dd305d6
Bug 1331289 - Use MediaContainerType in MediaResource, SourceBuffer, TrackBuffersManager, and dependencies - r=jya
...
Continuing the work of replacing MIME strings with MediaContainerType, starting
from MediaResource and following the dependencies.
Most changes are mechanical: Just change ns*String into MediaContainerType, and
MIME string literals into MEDIAMIMETYPE("a/b").
Some checks for empty/invalid strings and lowercase comparisons can go, thanks
to the always-valid always-lowercase-MIME invariants of MediaContainerType.
One special case in is MediaSourceResource, which used to have an empty string
as its type (because its own type is not relevant, but its SourceBuffers carry
types). Because the inherited GetContentType *must* be overridden, and must
return a MediaContainerType, we needed a valid type even though it should not
be seen in the real world. I've chosen "application/x.mediasource" for that.
MozReview-Commit-ID: 1aCH75Kh2e6
--HG--
extra : rebase_source : 0d9cd9b69c264e5dcfc3845f80ee107f4bcbcd9a
2016-12-28 18:59:02 +11:00
JW Wang
992114f5fd
Bug 1332160 - use nsCString internally whenever possible. r=gerald
...
MozReview-Commit-ID: 1DUaJWfbL88
--HG--
extra : rebase_source : f4a02736b0385e4be6258a185822f7855d0b0189
extra : intermediate-source : 1faaf4254a2e1ce2c096a8650b66d07c84c7fdbe
extra : source : c23fc2cea382627af8ff20ae3edea926eaa6d51a
2017-01-18 16:51:31 +08:00
JW Wang
4f5754ca55
Bug 1328130. Part 2 - remove MozPromiseRequestHolder::Begin(). r=gerald
...
MozReview-Commit-ID: JL27n0Era6E
--HG--
extra : rebase_source : e6de76db3fb35b110370497f4060ea1c3f527f23
extra : intermediate-source : 5bc39a45ef042b895a5abda59cc0796e8cfb4be3
extra : source : a7f7faded7b112e8a971ca96b091a9a22214a2bb
2017-01-11 16:33:29 +08:00
JW Wang
f4605f76d9
Bug 1328836 - Remove MDSM::DispatchMinimizePrerollUntilPlaybackStarts. r=kaku
...
MozReview-Commit-ID: 1EGHVhZqUTA
--HG--
extra : rebase_source : c90c245683c50364d869566540f47927e0f64d04
extra : intermediate-source : ceb0660e9f35a0dbbd361a4dc4eb6bcef8add385
extra : source : e1dfbdac70feedc99a950c00aeda683e38919247
2017-01-05 17:59:19 +08:00
JW Wang
8c79a1d34c
Bug 1326294 - this is a debugging patch which checks if mOwner points to a valid media element object. r=gerald
...
MozReview-Commit-ID: HRUigVOLdx
--HG--
extra : rebase_source : d44b4315a34b60c1d1a6ba98730a938ed375a937
2017-01-04 16:18:37 +08:00
Andrew McCreight
fccb0645ed
Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj
2016-12-12 09:27:58 -05:00
Nathan Froyd
826598caba
Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange
2016-12-12 08:45:46 -05:00
Andrew McCreight
e31b5489da
Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj
2016-12-12 07:58:33 -05:00
JW Wang
d0dc500d81
Bug 1319706. Part 4 - add some logs to debug 'ended' not fired. r=kaku
...
MozReview-Commit-ID: ATqszBBdo1P
--HG--
extra : rebase_source : 12f417d5dd29849ab16305f9c902ee9e9fb4e19a
extra : intermediate-source : 277bfa2e67ef58b51848c0a1d6986e8eb3222492
extra : source : 01f99c635d516b05a8f0781a6d0ff11123708481
2016-11-24 14:58:50 +08:00
JW Wang
8565b864ed
Bug 1319790 - add assertions to detect if MediaDecoder is deleted without Shutdown() being called. r=kaku
...
Also call mResourceCallback->Disconnect() in the destructor in case Shutdown() is not called to avoid dangling pointer.
MozReview-Commit-ID: 1qV4m8nWlGq
--HG--
extra : rebase_source : f40f77d64ccaace921625067ff8c51e322eec1b9
2016-11-24 11:59:18 +08:00
JW Wang
23ca2cc0a2
Bug 1317201. Part 1 - align next-frame-status updates with state changes of MDSM. r=cpearce
...
Note we remove the call to UpdateNextFrameStatus() from SeekingState::SeekCompleted()
because DecodingState::Enter() always switches to NEXT_FRAME_AVAILABLE.
MozReview-Commit-ID: Dv3NpudZwBB
--HG--
extra : rebase_source : 232f3a02dd46de4c4dfba4235e467f7866688841
extra : intermediate-source : 31ed0d7d6819eefaa1b5870553808def7f054318
extra : source : ef817b308d0b5db437d68db194cdd7ca3716b4dd
2016-11-10 16:35:48 +08:00
JW Wang
acf75cb684
Bug 1317576. Part 4 - remove unused MediaDecoder::SeekResolveValue. r=cpearce
...
MozReview-Commit-ID: 9H6e0gFvWeT
--HG--
extra : rebase_source : 268efe92dda716f73a83493a4b3deaa599118fd6
extra : source : 972ed89cd3fb09004424d42c08c806a789c67361
2016-11-14 17:00:53 +08:00
JW Wang
c1b6a6bf65
Bug 1317576. Part 3 - remove unused parameter/member. r=cpearce
...
MozReview-Commit-ID: Ff6a8MKVY8q
--HG--
extra : rebase_source : f89010012e2c5b728109282f640398cde196ab03
extra : source : 66baa9041276b503101651c118f4c6fe0c769db1
2016-11-14 16:47:07 +08:00
Chris Pearce
0a0e9d8f06
Bug 1317822 - Move GMPCrashHelper into its own file. r=gerald
...
MozReview-Commit-ID: 7CinZ2Y2Fmz
--HG--
extra : rebase_source : 3b176cbfadebf6463384105c261ff208bc58b1c2
2016-11-16 11:35:36 +13:00
JW Wang
c2bf477b21
Bug 1314884. Part 7 - remove SeekResolveValue::mEventVisibility for we always assume MediaDecoderEventVisibility::Observable in P6. r=kaku
...
MozReview-Commit-ID: 8jUaFPkQQxA
--HG--
extra : rebase_source : 4e3794979ec05c588458ed72472252910d1642b9
extra : source : 565d6e04892b0d8ea7fcd34d5d279f63ec21d245
2016-11-03 15:59:02 +08:00
Wes Kocher
008fdd9329
Merge inbound to central, a=merge
2016-11-08 13:58:20 -08:00
Matt Woodrow
9775890c70
Bug 1315581 - Notify MediaFormatReader when the compositor gets recreated. r=jya,smaug,jw_wang
2016-11-08 15:23:12 +13:00
Jean-Yves Avenard
a50a86289f
Bug 1302656: P1. Don't detach mediasource when error occurs. r=jwwang
...
MozReview-Commit-ID: 88EIb4XXcdR
--HG--
extra : rebase_source : 3e09f64f2af6993f055e353411d6f782527904ed
2016-11-01 20:33:33 +11:00
Wes Kocher
8fa7074c50
Backed out 2 changesets (bug 1302656) for WinXP wpt failures a=backout
...
Backed out changeset e8ce7f515092 (bug 1302656)
Backed out changeset 416dbe42e4a3 (bug 1302656)
2016-11-04 14:51:27 -07:00
Jean-Yves Avenard
b9350d8857
Bug 1302656: P1. Don't detach mediasource when error occurs. r=jwwang
...
MozReview-Commit-ID: 88EIb4XXcdR
--HG--
extra : rebase_source : 90ae19d74ab13ed5f6e301be4862eaed59f396db
2016-11-01 20:33:33 +11:00
JW Wang
9fcd26988d
Bug 1311872. Part 1 - remove dormant code from MediaDecoder and its friends. We will let MDSM solely decide when to enter/exit dormant. r=cpearce,jya
...
MozReview-Commit-ID: 4rRSGcruy7Z
--HG--
extra : rebase_source : 6bff3bde442dbc96ce23a4a1aabae9ec79f1b9f0
extra : intermediate-source : 456de41037090ff072925d937b001de31a479556
extra : source : 525be5a0f46950ced9efba9a7cfeda26ce73cfb8
2016-10-20 15:20:25 +08:00
JW Wang
62729fbd51
Bug 1314552. Part 2 - remove unused canonical. r=jya
...
MozReview-Commit-ID: FW6Wj1iiadS
--HG--
extra : rebase_source : cec5bf88a93732a83d358694d8fc91edb2c1dfb7
extra : intermediate-source : cbca4d33e07b848a83ead858c0299bcafdd5de71
extra : source : 183a602e6fd20c9bbdee3f27c0845b7f9aa00954
2016-11-02 17:23:37 +08:00
JW Wang
2639894677
Bug 1314547. Part 2 - remove unused public functions. r=cpearce
...
MozReview-Commit-ID: 2PndXBXmwRv
--HG--
extra : rebase_source : ede08db67cc25ffed00cc22409dc3346db81a3fb
extra : source : 7cee8e95c52a4f23bce6475c160961c42e518f22
2016-11-02 17:16:59 +08:00
JW Wang
f4ec5c59a1
Bug 1314535. Part 2 - remove unused canonical. r=jya
...
MozReview-Commit-ID: CLLYtFHsYBc
--HG--
extra : rebase_source : e0f23f918114e70650827adc1db1c44d25d6b4e7
extra : source : 96806600d1c65ae1f236588e8917851d2429783e
2016-11-02 16:47:51 +08:00
JW Wang
7ea7732b4a
Bug 1314529. Part 2 - remove MediaDecoder::SetMediaSeekable(). r=cpearce
...
MozReview-Commit-ID: 6JJrKi3KTll
--HG--
extra : rebase_source : f12b55befd8264a076f393f7e44e77f1f843fbea
extra : source : 1f4a048de0f8c75d7aab8396f50c197afdae7d38
2016-11-02 14:41:04 +08:00
JW Wang
c230fcac69
Bug 1314527 - Remove unused MediaResourceCallback::SetMediaSeekable. r=bechen
...
MozReview-Commit-ID: 9M47sUiE1Ss
--HG--
extra : rebase_source : 79d953d32afe106b085d405f48a55f647d865bfa
extra : source : 67324546b238ab667d69288496fc0b70856f75bf
2016-11-02 14:29:54 +08:00
Carsten "Tomcat" Book
b25f505550
Backed out changeset ff16d055e178 (bug 1302656) for w1 failures
...
--HG--
extra : rebase_source : 74259af8020e6ed598f617c96fe852fa99167ff7
2016-11-02 14:57:50 +01:00
Jean-Yves Avenard
99ffe3f3e7
Bug 1302656: P1. Don't detach mediasource when error occurs. r=jwwang
...
MozReview-Commit-ID: 88EIb4XXcdR
--HG--
extra : rebase_source : 93c309462b1669351d7a526d78be5a35c00d6341
2016-11-01 20:33:33 +11:00
JW Wang
d310175f8e
Bug 1311904 - move |mOwner->FirstFrameLoaded()| to the bottom of FirstFrameLoaded() to prevent shutdown from happening in the middle of FirstFrameLoaded(). r=cpearce
...
MozReview-Commit-ID: FnRsGMhxeZV
--HG--
extra : rebase_source : 4c0cc66afed965e540af73ff8d08f8d08d62aa35
extra : source : 398a3a4bc9d742333b3d4c6a59eaa6f1d71f03eb
2016-10-21 14:27:27 +08:00
Ehsan Akhgari
d5d66e16c9
Bug 1311214 - Remove b2g OMX encoder/decoder; r=cpearce
2016-10-19 17:44:31 -04:00
JW Wang
51234deb68
Bug 1309761 - Some tweaks to MediaDecoder::DumpDebugInfo(). r=bechen
...
MozReview-Commit-ID: 9e7sImUs2vz
--HG--
extra : rebase_source : 6699aea482efac0e996ccee51ecc6009c1de64e3
extra : source : 640ba5ebf3e8898796c7d34c899add9a05a6a396
2016-10-11 16:58:09 +08:00
JW Wang
8399d361ac
Bug 1304651 - Remove MediaDecoder::mPausedForPlaybackRateNull. r=kikuo
...
MozReview-Commit-ID: 7SIKYfDPCxG
--HG--
extra : rebase_source : 9ee1a39e0e9b48fb7f1a8f71c85b825ced0da04c
2016-09-22 17:02:48 +08:00
James Cheng
48efb9caad
Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
...
MozReview-Commit-ID: JboGO0w4tcE
--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Gerald Squelart
2b00ac4132
Bug 1247056 - Notify MediaDecoder about Decoder Doctor events from MDSM - r=jwwang
...
MozReview-Commit-ID: Jgt5a2yJugu
--HG--
extra : rebase_source : 2c8bfb9e7ce6dd69ef5a31b1737e5f314d14cad7
2016-09-19 03:38:06 -07:00
JW Wang
5fd2401d63
Bug 1304336. Part 2 - remove unused canonical/mirror. r=kikuo
...
MozReview-Commit-ID: 9rQcTTrW4Cn
--HG--
extra : rebase_source : 5473db2bd2f7da5a6536368cd78deac1ea0cde8c
2016-09-21 18:11:00 +08:00
JW Wang
6f9627664f
Bug 1304336. Part 1 - call DispatchSetPlaybackRate() to propagate playback rate changes instead of using a mirror. r=kikuo
...
MozReview-Commit-ID: 5C48bUItQus
--HG--
extra : rebase_source : 0d7a618fed6769a316fc033e5023dca98fc9ab33
2016-09-21 18:06:49 +08:00
Jean-Yves Avenard
6a25692b20
Bug 1299072: P10. Pass decoding error details to media element's error attribute. r=jwwang
...
MozReview-Commit-ID: 49DurV9WI5S
--HG--
extra : rebase_source : 469e6ed4e222fb6d6ac34843c3c3346a044c6023
2016-09-11 00:56:09 +10:00
Jean-Yves Avenard
00e8a7dabc
Bug 1299072: P9. Pass decoding error details to MediaDecoder. r=jwwang
...
MozReview-Commit-ID: uXWHhTozon
--HG--
extra : rebase_source : 7736b9d969dc680b08bffbc7610271d5cc0272be
2016-09-11 00:51:13 +10:00
Gerald Squelart
b94f8cfb3e
Bug 1301561 - Change media.decoder.heuristic.dormant.timeout to 10000 (ms) - r=jwwang
...
MozReview-Commit-ID: BibXsBpjIQe
--HG--
extra : rebase_source : 7e2afca18bf8e988455d2fb3eb71866f140808e5
2016-09-09 11:00:21 +10:00
JW Wang
6862b9379e
Bug 1297301. Part 1 - Remove #ifdef MOZ_RAW. r=kentuckyfriedtakahe
...
MozReview-Commit-ID: LF4if8bZZGY
--HG--
rename : dom/media/raw/RawStructs.h => netwerk/protocol/device/RawStructs.h
extra : rebase_source : 96191a564754311200d6df36b1643990efa87e51
2016-08-24 11:02:37 +12:00
Wes Kocher
f78f2d693b
Merge inbound to central, a=merge
2016-08-25 16:59:00 -07:00
Ryan VanderMeulen
2b4ac234e9
Merge m-c to inbound. a=merge
2016-08-25 08:27:17 -04:00
JW Wang
a208d2cb40
Bug 1295073 - Remove the aRealTime parameter from the MediaDecoderStateMachine constructor. r=cpearce
...
MozReview-Commit-ID: BXMVAV1R3gx
--HG--
extra : rebase_source : 0749ff95de361da3c935dfe113690aa8c5e7dc2a
2016-08-15 14:54:10 +08:00
Nicholas Nethercote
c2306345d5
Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
...
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.
The patch also does some associated clean-up.
- Replaces some uses of nsIMemoryReporterCallback with the preferred
nsIHandleReportCallback typedef.
- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
parameter names, for consistency.
- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.
- Uses the MOZ_COLLECT_REPORT macro in all suitable places.
Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Dan Glastonbury
0e76b94eb8
Bug 1297429 - Fix video suspend intermittent failures. r=jwwang
...
On Linux x64 PGO try, HTMLMediaElement was reliably invoking
decoder->NotifyOwnerActivityChanged() after SetVisible(false) was
called. This caused the pending suspend to be cancelled and the test
waits for an event that never arrives.
Fixed by adding 'forced hidden' to MediaDecoder that overrides the
element visibility that comes from HTMLMediaElement.
MozReview-Commit-ID: 5aRhxxZ5cZd
--HG--
extra : rebase_source : 5a4e1c44ddd2265eab545f8fe19c4ae47cebf7bf
2016-08-25 12:10:05 +10:00
Jean-Yves Avenard
745006a3fc
Bug 1297880: Have GetSeekable return an empty range if duration is not r=jwwang
...
yet known. r?jwwang
MozReview-Commit-ID: 4e1k42FlW1z
--HG--
extra : rebase_source : 47c94026157a278192f2388a4d92768d5454c384
2016-08-25 13:36:51 +12:00
Kaku Kuo
5ab464fd77
Bug 1295440 - Make HTMLMediaElement::SeekToNextFrame() reject promise with meaningful information; r=jwwang
...
MozReview-Commit-ID: Dgi3Ek8K3bR
--HG--
extra : rebase_source : 58d63933906f676a7e7a5ed85cf7e25e3e87dd16
2016-08-17 10:02:10 +08:00
bechen
931402dd2f
Bug 1291629 - Remove RTSP code. r=jwwang
...
MozReview-Commit-ID: AxaLwO4rTuY
--HG--
extra : rebase_source : f8a5de1be1471238d62b6bbc419b3a45f2590da6
2016-08-10 10:32:25 +08:00
JW Wang
1558178790
Bug 1294636 - Use macro to simplify the member initialization list of MediaDecoder. r=gerald
...
MozReview-Commit-ID: LdIXPTKuecf
--HG--
extra : rebase_source : 938b8e4efc8d8f89dc75acf17317888a304d5c27
2016-08-12 15:04:49 +08:00
Dan Glastonbury
f9a87adc92
Bug 1284177 - P1: Provide observable notification for video suspend. r=jwwang
...
To support mochitests, report change in video decode suspend state via
events mozentervideosuspend/mozexitvideosuspend.
MozReview-Commit-ID: EwMduLzcMVg
--HG--
extra : rebase_source : 5f1fed90964fae182f06d9fb480491728c5f1c97
2016-07-04 14:35:21 +10:00
Kaku Kuo
a6ed727230
Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz
...
MozReview-Commit-ID: KNbxVcCVqts
--HG--
extra : transplant_source : %1D%18%E5%C9o%F0%29%E7%E0%93%EEcR%C7B%3BeX%B3%87
2016-08-09 17:15:13 +08:00
Jean-Yves Avenard
41f815e7fa
Bug 1128069: [MSE] P5. Adjust currentTime to end position in MediaDecoder. r=jwwang
...
The duration in the MediaDecoder is the canonical. It has as such a more up to date value than the mirror.
Under some circumstances, the MDSM may have reached the end of media playback before the duration mirror had time to update. So perform the currentTime adjustment in the MediaDecoder instead.
MozReview-Commit-ID: 1RFr4mT5LpA
--HG--
extra : rebase_source : 3151d86561b53d5d1922c7c16f042792bfd47283
2016-08-08 13:49:51 +10:00
JW Wang
2d84b3c90e
Bug 1291633 - Don't call MediaDecoder::SeekingStarted when visibility is Suppressed. r=kaku
...
MozReview-Commit-ID: 15YOmFCoXGp
--HG--
extra : rebase_source : b5269f7a4883ff08dbfdb797df9eb78334315108
2016-08-03 17:18:54 +08:00
JW Wang
6d1ce3ea1a
Bug 1292449. Part 3 - Assert IsShutdown() is false in MediaDecoder::Shutdown(). Shutdown() should be only called once. r=kaku
...
MozReview-Commit-ID: 6iFKkTTb7qD
--HG--
extra : rebase_source : 773cdf796a11a0ca7b6577c348ec411c422a0342
2016-08-01 16:11:20 +08:00
JW Wang
862e36e74c
Bug 1292449. Part 2 - Assert IsShutdown() is false in NotifyBytesDownloaded(). r=jya
...
1. Called from SourceBuffer::AppendDataCompletedWithSuccess() where mMediaSource->GetDecoder() is not null.
2. Called from MediaDecoder::ResourceCallback::NotifyBytesDownloaded() which is disconnected in Shutdown().
MozReview-Commit-ID: 103pxZP02Bb
--HG--
extra : rebase_source : 72e8a9c29d5ca6a4932de3a119497b05bfadbe68
2016-08-01 16:01:16 +08:00
JW Wang
63442be770
Bug 1292449. Part 1 - Assert IsShutdown() is false in NotifyDataArrived(). r=jya
...
1. Called from SourceBuffer::AppendDataCompletedWithSuccess() where mMediaSource->GetDecoder() is not null so this must happen before Shutdown().
2. Called from SourceBuffer::Ended() where mMediaSource->GetDecoder() is not null.
3. Called from MediaDecoder::ResourceCallback::TimerCallback() which is canceled in Disconnect().
MozReview-Commit-ID: 5dqVuOcrABy
--HG--
extra : rebase_source : a134f552c4fae2317cbf93dc1e861199d4c91346
2016-08-01 15:58:10 +08:00
JW Wang
aace2f0c8d
Bug 1290809 - Remove MediaDecoder::IsEndedOrShutdown(). r=gerald
...
MozReview-Commit-ID: 4XUcJyQlmfk
--HG--
extra : rebase_source : fc2a044ca2776744ef0fff32300faf647666e73c
2016-08-01 15:22:32 +08:00
JW Wang
8ce157e06f
Bug 1290364 - clear mOwner in Shutdown(). r=cpearce
...
MozReview-Commit-ID: 2CsYKcSrEOJ
--HG--
extra : rebase_source : 3fd60ea1dbbf57c168fa8cebb9bb5594ee8c19fb
2016-07-29 14:44:22 +08:00
Carsten "Tomcat" Book
0cd188453a
Merge mozilla-central to autoland
2016-08-05 12:15:20 +02:00
JW Wang
cff471d7a8
Bug 1283724 - throttle notifications from stochastic network activity to save computation of buffer ranges. r=jya
...
MozReview-Commit-ID: BRBv2Flqu3u
--HG--
extra : rebase_source : fe28566c79f2f31a5054e4cda35d96c938985299
2016-08-01 14:39:39 +08:00
ctai
b7fcb47572
Bug 1201363 - Replace VideoFrameContainer with MediaStreamVideoSink in MSG. r=jesup
...
Replace the pointer of VideoFrameContainer with the pointer of MediaStreamVideoSink.
MozReview-Commit-ID: 5bqEMpemwuR
--HG--
extra : transplant_source : %008z%D8W%EE%87%8E%E9/%2CT%26%EBvo%AE%099%A6
2016-05-27 14:33:48 +08:00
JW Wang
32c54a1d7b
Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
...
MozReview-Commit-ID: Cg5UoFngxFr
--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
JW Wang
64c1909e96
Bug 1290780. Part 9 - Assert IsShutdown() is false in DurationChanged(). r=kaku
...
1. The watch manager disconnect callbacks in Shutdown().
2. SetExplicitDuration() asserts !IsShutdown().
3. SetInfinite() asserts !IsShutdown().
MozReview-Commit-ID: FwWf4m5OAOP
--HG--
extra : rebase_source : 374e9c4ef31abf56f0be76826c98cd852bef1e7a
2016-07-28 16:57:09 +08:00
JW Wang
e7c35e7871
Bug 1290780. Part 5 - Assert IsShutdown() is false in PlaybackEnded() since the callback is disconnect in Shutdown(). r=kaku
...
MozReview-Commit-ID: hYJjKZFhA6
--HG--
extra : rebase_source : 706b770c7f11fa53cdb2bb9f9eeae89a146601a6
2016-07-28 15:16:32 +08:00
JW Wang
e073bd7c27
Bug 1290780. Part 4 - Assert IsShutdown() is false in SeekingStarted() since the callback is disconnected in Shutdown(). r=kaku
...
MozReview-Commit-ID: 7Q9EAhy3O7w
--HG--
extra : rebase_source : a68a9d50d0c2c669dd4c5ae0897e06c1538811d1
2016-07-28 15:13:31 +08:00
JW Wang
3d1ea356e3
Bug 1290780. Part 3 - Assert IsShutdown() is false in UpdateLogicalPositionInternal(). r=kaku
...
1. It is called from OnSeekResolved() which asserts !IsShutdown().
2. It is called from UpdateLogicalPosition which asserts !IsShutdown().
MozReview-Commit-ID: J8iuHdUamLS
--HG--
extra : rebase_source : 97215383aa7c409f8b63f5a6726b81df53252227
2016-07-28 15:09:03 +08:00
JW Wang
b6a261b9f3
Bug 1290780. Part 2 - Assert IsShutdown() is false in MediaDecoder::OnSeekResolved() since the seek request is disconected in Shutdown(). r=kaku
...
MozReview-Commit-ID: Cc0iF3Lc7d2
--HG--
extra : rebase_source : 107592fc8f3a5a301599f43ebbc1c7c7c708f017
2016-07-28 15:04:36 +08:00
JW Wang
6c38af47f2
Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
...
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().
MozReview-Commit-ID: EnKHF61FBXf
--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang
6ca3a55b72
Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
...
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.
MozReview-Commit-ID: BjYoLOLuPfC
--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang
31dcc3816b
Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
...
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.
MozReview-Commit-ID: Ixy5OMZHxIm
--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang
f3ffeca57a
Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
...
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().
MozReview-Commit-ID: 8m4jtcl91hT
--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang
a2d26a630a
Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
...
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.
MozReview-Commit-ID: DDr7Bg8jkF2
--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang
348c35b5dd
Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
...
MozReview-Commit-ID: 9tWLW4JE0Uv
--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang
00ce40fb6c
Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
...
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.
MozReview-Commit-ID: 4GZwrI85aXj
--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang
61a6cb705b
Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
...
MozReview-Commit-ID: HU3ybjFZMsE
--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang
0a748cd015
Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
...
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.
MozReview-Commit-ID: 6OaPYcCOCii
--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang
3ac12f3e3d
Bug 1289993. Part 1 - Disconnect seek requests when shutting down MediaDecoder. r=kaku
...
MozReview-Commit-ID: 6av1OiJatCr
--HG--
extra : rebase_source : 66891c09e3c35029e7d8f1e605b026968019e353
2016-07-28 14:28:26 +08:00
Carsten "Tomcat" Book
119eea6bdd
Backed out changeset 9966bbe6b534 (bug 1289976) for assertion failures in MediaDecoder.h
2016-07-30 19:52:46 +02:00
Carsten "Tomcat" Book
b5951bbc7f
Backed out changeset 2cb402f74a51 (bug 1289976)
2016-07-30 19:52:32 +02:00
Carsten "Tomcat" Book
eda09c15e0
Backed out changeset 7368d06f677b (bug 1289976)
2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book
a1b168271d
Backed out changeset 93a556b5e244 (bug 1289976)
2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book
169eb9f17a
Backed out changeset bac5f65e6931 (bug 1289976)
2016-07-30 19:52:30 +02:00
Carsten "Tomcat" Book
dfea28ba46
Backed out changeset ce6b4f84c86e (bug 1289976)
2016-07-30 19:52:29 +02:00
Carsten "Tomcat" Book
1938c88013
Backed out changeset cd25be005e38 (bug 1289976)
2016-07-30 19:52:28 +02:00
Carsten "Tomcat" Book
e880c3527f
Backed out changeset 2931db85cc99 (bug 1289976)
2016-07-30 19:52:26 +02:00
Carsten "Tomcat" Book
1f40b92079
Backed out changeset ba01eb85da0a (bug 1289976)
2016-07-30 19:52:25 +02:00
JW Wang
1e61811c7e
Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
...
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().
MozReview-Commit-ID: EnKHF61FBXf
--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang
62af9d2687
Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
...
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.
MozReview-Commit-ID: BjYoLOLuPfC
--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang
7bdd2a6dd4
Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
...
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.
MozReview-Commit-ID: Ixy5OMZHxIm
--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang
194e23bdb4
Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
...
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().
MozReview-Commit-ID: 8m4jtcl91hT
--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang
c4b1ec5baf
Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
...
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.
MozReview-Commit-ID: DDr7Bg8jkF2
--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang
97dff3f268
Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
...
MozReview-Commit-ID: 9tWLW4JE0Uv
--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang
d2d8295bf6
Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
...
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.
MozReview-Commit-ID: 4GZwrI85aXj
--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang
294fff9de7
Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
...
MozReview-Commit-ID: HU3ybjFZMsE
--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang
a9482dfc9c
Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
...
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.
MozReview-Commit-ID: 6OaPYcCOCii
--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang
8e6ae76d98
Bug 1289334 - HTMLMediaElement::ResetConnectionState() should shut down the decoder. r=cpearce
...
MozReview-Commit-ID: 7IZ2Y4Da7xZ
--HG--
extra : rebase_source : 492b0caa52fca17d2c399c2f0e2c426c6f55872f
2016-07-26 16:37:45 +08:00
JW Wang
a2a7e29ce7
Bug 1289301 - Remove the call to Shutdown() from MediaDecoder::NetworkError(). r=cpearce
...
MozReview-Commit-ID: EuDKW2KZQ9n
--HG--
extra : rebase_source : 7330327d6194a6fa45905d1ff52d258e58b96a4b
2016-07-26 14:33:16 +08:00
JW Wang
e92dafa46f
Bug 1289296 - Assert |!IsShutdown()| in MediaDecoder::NetworkError(). r=kaku
...
MozReview-Commit-ID: HL8piKSPU1B
--HG--
extra : rebase_source : ae6aa90016c734646aec7a1828dfcd02ba92cc96
2016-07-26 14:28:29 +08:00
JW Wang
4d7a72bc94
Bug 1289295 - Remove the call to Shutdown() from MediaDecoder::DecodeError(). r=cpearce
...
MozReview-Commit-ID: DcpaEFEsaWD
--HG--
extra : rebase_source : fd63ff2faa79911b9ccfeed55d9e7348674ed1dc
2016-07-26 14:18:47 +08:00
JW Wang
4d4146a965
Bug 1289290 - Assert |!IsShutdown()| in MediaDecoder::DecodeError() r=kaku
...
MozReview-Commit-ID: EoUtle6quy
--HG--
extra : rebase_source : 47077044c8379c24cd732ab3707c24e28cb298f9
2016-07-26 14:01:54 +08:00
JW Wang
0b638406f0
Bug 1289004. Part 3 - Remove MediaDecoder::mShuttingDown. r=cpearce
...
MozReview-Commit-ID: DoJ4UFuyz2h
--HG--
extra : rebase_source : 531df3335548186338fc2eb5b5b4b0bb4cc6c101
extra : source : d4f4a98303c3ddc14986478aa44f137cce87af30
2016-07-13 16:48:27 +08:00
JW Wang
12fd7814cd
Bug 1289004. Part 2 - Add MediaDecoder::IsShutdown(). r=cpearce
...
MozReview-Commit-ID: 50muOKcUqYi
--HG--
extra : rebase_source : d97e968c980dcc146824bb6703747f23b0a5b651
extra : source : 2ca76a5cecbb9c6ef107794eab32bb13633880a2
2016-07-13 16:45:30 +08:00
JW Wang
694dff250f
Bug 1289004. Part 1 - Constify and devirtualize some functions. r=cpearce.
...
MozReview-Commit-ID: 8f14ekpinCR
--HG--
extra : rebase_source : ca1d62df789639817e4c7da01919783038db22f0
extra : source : 5dc15cac9b631fd10b03902b3ba627fd763a49aa
2016-07-13 16:35:37 +08:00
JW Wang
db58db163a
Bug 1288344. Part 2 - Remove MediaDecoder::mWasEndedWhenEnteredDormant. r=cpearce
...
MozReview-Commit-ID: edGkP9mv6L
--HG--
extra : rebase_source : 4833d10975c6dd241d41bf86f81b08a9fe76784c
2016-07-12 14:34:06 +08:00
JW Wang
237d5b4a0d
Bug 1288344. Part 1 - Don't change play state when entering/exiting dormant state. r=cpearce
...
MozReview-Commit-ID: 24damxCvWl8
--HG--
extra : rebase_source : 31058b1ace6d1d8e462b24f96845bb81251445d7
2016-07-12 14:32:36 +08:00
JW Wang
4e620890c7
Bug 1287350. Part 2 - Call WatchManager::Shutdown() to prevent notifications from watchables. r=jya
...
MozReview-Commit-ID: 79GojLNE4Gn
--HG--
extra : rebase_source : 888c389f0a99365da907a4dc56c8095cddfdbf55
2016-07-15 15:44:02 +08:00
JW Wang
f090553820
Bug 1287350. Part 1 - extract some code to {Connect,Disconnect}Mirrors. r=jya.
...
MozReview-Commit-ID: Ayf109fFhRU
--HG--
extra : rebase_source : bff7df290062d40c40b61a05bc054fbfa9cd3ddc
2016-07-15 15:35:41 +08:00
Sebastian Hengst
120f502e2a
Backed out changeset 3851902daa94 (bug 1201363)
2016-08-03 19:33:25 +02:00
Carsten "Tomcat" Book
423bdfd2fd
Merge mozilla-central to mozilla-inbound
...
--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
2016-08-03 17:08:41 +02:00
ctai
e28782c9ba
Bug 1201363 - Replace VideoFrameContainer with MediaStreamVideoSink in MSG. r=jesup
...
Replace the pointer of VideoFrameContainer with the pointer of MediaStreamVideoSink.
MozReview-Commit-ID: 5bqEMpemwuR
--HG--
extra : amend_source : 7eb1e87fdcbc61f2f9831fa3a6d803cc50306604
2016-05-27 14:33:48 +08:00
JW Wang
2dc3a59bbe
Bug 1285887 - MediaDecoder::PlayStateStr() should call ToPlayStateStr() to eliminate redundant code. r=bechen
...
MozReview-Commit-ID: pwhafUHxOL
--HG--
extra : rebase_source : c43ecb4bf00fb31ccb07f4efac5a16e51cfe91f4
2016-07-11 17:42:34 +08:00
Chris Pearce
de045590ac
Bug 1267918
- Add GMPCrashHelper for HTMLMediaElement. r=gerald
...
This ensures that unencrypted GMP decoding crash reporting works.
MozReview-Commit-ID: 84TAV5F9Ie0
--HG--
extra : rebase_source : c0bf3021be9fa0833a7b375967572f1019e4e279
2016-06-29 11:42:07 +12:00
Chris Pearce
58f2e7cb65
Bug 1282585 - Ensure content process doesn't crash if CDM crashes before MediaKeys attaches to media element or media element loads. r=jwwang
...
MozReview-Commit-ID: 2CpiDv6u4RP
--HG--
extra : rebase_source : bf0077826135e16667253c212b4897830c452e55
2016-06-29 16:09:24 +12:00
JW Wang
f7267b13db
Bug 1274030 - clean VideoFrameContainer when "xpcom-shutdown" event received. r=cpearce
...
MozReview-Commit-ID: 92zeiNXSkjf
2016-05-22 21:39:55 +08:00
Sotaro Ikeda
4093745a3c
Bug 1273612 - Do not enter dormant when MediaDecoder is not paused r=jwwang
2016-06-22 20:45:22 -07:00
Kaku Kuo
9ace015fa5
Bug 1276272 - part 3 - implement promise-based HTMLMediaElement::seekToNextFrame(); r=jwwang
...
MozReview-Commit-ID: JaUQe5GK6bF
--HG--
extra : rebase_source : 63ffb58ca29776757cd869579e149a4330311e08
2016-06-09 20:27:39 +01:00
JW Wang
006ae9baa3
Bug 1193124 - Ensure logical position is updated after seek. r=jwwang
...
MozReview-Commit-ID: KD4ylXbaDfu
--HG--
extra : rebase_source : c3e856ce515eeeec17b0dd9c64332fcff4d6deb5
2016-04-18 18:57:47 +08:00
Dan Glastonbury
78730160f5
Bug 1224973 - Part 3: Plumb element visibility into MDSM. r=jya,jwwang
...
change MediaDecoder::mIsVisible to be a Canonical<bool> and plumb through to
the MediaDecoderStateMachine. This will be used to trigger suspending the
decoding of video frames.
MozReview-Commit-ID: F3Dpf0ogE7c
2016-05-12 09:53:51 +10:00
Dan Glastonbury
9f98a19f8c
Bug 1224973 - Part 2: Set MediaDecoder visibility via NotifyOwnerActivityChanged. r=cpearce,jwwang
...
Make MediaDecoder::SetElementVisibility private.
MozReview-Commit-ID: GjCuSNPalkE
2016-05-12 09:53:02 +10:00
Dan Glastonbury
d4be2cf480
Bug 1224973 - Part 1: Remove MediaDecoderOwner->IsHidden(). r=cpearce,jwwang
...
Used only by dormant mode calculations, remove IsHidden() and replace with
mIsVisible in MediaDecoder.
MozReview-Commit-ID: CksjiXsbsrb
2016-05-12 09:52:43 +10:00
Chris Pearce
46a1552995
Bug 1271242 - Remove GMPDecryptorCallback::SetCapabilities(). r=jwwang
...
Now that GMPParent detects whether gmp-clearkey can decode using AAC/H.264
using WMF before reporting gmp-clearkey's GMPParent can decode AAC/H.264, we
don't need the GMPDecryptorCallback::SetCapabilities() callback from the GMP to
signal to the PDMFactory that the GMP can decode. We can now trust what the
GMPService tells us.
So we can remove the "waiting for CDM caps" step in the state machine's startup
sequence. And all the plumbing. :)
If we need more caps, like for an decode-and-render path, we can declare those
as API strings in the info file.
MozReview-Commit-ID: E0QhU4cYhjo
--HG--
extra : rebase_source : 7d15ab6a45bac88c15c053f416d941b5fe0807b0
2016-05-10 10:28:38 +12:00
Alastor Wu
9771068fea
Bug 1235612 - Part 5: Rename NotifyAudibleStateChanged. r=jwwang
...
MozReview-Commit-ID: LRikTbqoOch
--HG--
extra : rebase_source : 1d69b9d55c232d2723cf9f7159087ec6795b6e19
2016-05-03 17:59:43 +08:00
JW Wang
bf6581352a
Bug 1267933. Part 2 - add comments per comment 5. r=gerald.
...
MozReview-Commit-ID: 5mRVvwoWOEE
2016-05-05 10:29:06 +08:00
JW Wang
0a9e6a6567
Bug 1267933 - rewrite the shutdown sequence of MediaShutdownManager. r=jya,gerald.
...
MozReview-Commit-ID: 8n7JlXOby0z
2016-05-04 16:13:25 +08:00
Jean-Yves Avenard
74cc8abae0
Bug 1269048: Prevent null deref in debugging information. r=jwwang
...
MozReview-Commit-ID: FKq9dtrdegg
--HG--
extra : rebase_source : 19c71b8aa43a0f5f96b44821cc690f5295dcf79a
2016-05-02 08:49:18 +10:00
JW Wang
823e6216e3
Bug 1265978. Part 2.5 - also dump reader data. r=jya.
...
MozReview-Commit-ID: 3m71yGg6lbN
2016-04-22 14:18:34 +08:00
JW Wang
94b009f556
Bug 1265978. Part 2 - add methods to MediaDecoder and MDSM to dump debugging info. r=jya.
...
MozReview-Commit-ID: Dbc5FT627uL
2016-04-22 14:18:26 +08:00
JW Wang
753cf80b90
Bug 1259473 - per comment 14, move actions involving |this| to Init() from the constructor. r=jya.
2016-04-01 23:10:44 +08:00
Andreas Pehrson
e1b8d01dd1
Bug 1208371 - Hook up DecodedStream with PrincipalHandle. r=mt,jwwang
...
MozReview-Commit-ID: 1LmiFyfjhsr
--HG--
extra : rebase_source : e1ceca65cd1f5ff64ab6fff8fafc1ddd08f44b87
2016-02-02 13:14:13 +08:00
Bryce Van Dyk
939ab2b661
Bug 657791 - Update seekable range handling for cueless WebMs. r=kinetik
...
MediaDecoder previously had 3 states within GetSeekable(), media is either
seekable, seekable but not supported by transport, or not seekable. Due to
changes to make cueless webms playable, a 4th option is needed: a file that is
not fully seekable, but may support seeking from the transport, such as these
webms, should only be seekable in the buffered range.
MozReview-Commit-ID: ISeFkngtrGU
2016-02-04 17:31:21 +13:00
Eugen Sawin
c0b51aec88
Bug 1255050 - [1.1] Restrict media plugin decoder usage to Android ICS. r=snorp
2016-03-10 23:14:13 +01:00
Jean-Yves Avenard
53c49526d6
Bug 1246521: P2. Add MediaDecoder::OwnerHasError method. r=gerald
2016-02-08 16:38:26 +11:00
Kaku Kuo
300161c223
Bug 1242338 - fix numerical issue in MediaDecoder::Seek(); r=jwwang
...
--HG--
extra : transplant_source : T%A6%E5%E4%C7%EC%AA%7Ba%5E%F9%BA%9B%91%DC%18%E1%F9%FF%A5
2016-01-25 19:15:27 +08:00
Alastor Wu
abde274a94
Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang
...
--HG--
extra : rebase_source : 74629c314b3d828a5d9b514bf6cca87f7c1f57de
2016-01-21 10:27:38 +08:00
Sebastian Hengst
9249e58bdf
Backed out 2 changesets (bug 1238906) for bustage in M(2) on OSX and Windows. r=bustage
...
Backed out changeset e729b30ba7b4 (bug 1238906)
Backed out changeset 1857bca40ac4 (bug 1238906)
2016-01-18 13:11:43 +01:00
Alastor Wu
bbcb84cc7b
Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang
...
--HG--
extra : transplant_source : %A6I%CA%AC%95%AD%0C%7D%40K%8C_%8B%3D%15%BC%F7%FB%86%27
2016-01-18 10:50:47 +08:00
Jean-Yves Avenard
2f79455810
Bug 1237809: P3. Ensure element dimensions are up to date. r=jwwang
...
The VideoContainer contains more up to date video size information than the MediaInfo received by MediaDecoder::MetadataLoaded
2016-01-13 13:55:58 +11:00
JW Wang
4627500b49
Bug 1237616 - Remove the aForceBuffering arugment from MediaDecoder::Resume(). r=cpearce.
2016-01-12 08:04:32 +08:00
Jean-Yves Avenard
3c25c690a7
Bug 1207220
: Ensure MediaShutdownManager waits until all MediaDecoder have completed their shutdown. r=cpearce
...
XPCOM when shutting down expects all tasks to be run synchronously. As such, we must ensure that the remaining MediaDecoder are shut down before continuing on the next task.
In particular destroying gfxPlatforms must only ever happen after, as it is possible for the MediaDecoderReader to make use of gfx resources during shutdown.
2016-01-05 11:55:50 +11:00
Jean-Yves Avenard
8f79430f0e
Bug 1234092: P1. Remove GStreamer support. r=kentuckyfriedtakahe
...
It was now unused by default.
2015-12-23 01:14:22 +11:00
Chris Peterson
90c0e0da61
Bug 1232223 - Part 3: Remove MOZ_WAVE #ifdefs because Wave is always supported. r=jya
2015-12-18 00:51:16 -08:00
Chris Peterson
88051371a9
Bug 1232223 - Part 1: Remove MOZ_WEBM #ifdefs because WebM is always supported, though not necessarily enabled. r=jya r=glandium
2015-12-12 13:49:07 -05:00
Jean-Yves Avenard
08597229bb
Bug 1229987
: P4. Stop pre-rolling when encountering WAITING_FOR_DATA. r=cpearce
...
This allows to start displaying frames even when we have less than 5 frames.
2015-12-18 19:26:54 +11:00
JW Wang
84171dfe8c
Bug 1230004. Part 2 - have MDSM::BeginShutdown return a promise and remove MDSM::mDecoder. r=cpearce.
2015-12-03 15:59:44 +08:00
JW Wang
a62c25461b
Bug 1230004. Part 1 - cache data in MDSM so it won't need to ask MediaDecoder. r=cpearce.
2015-12-03 15:59:30 +08:00
Jean-Yves Avenard
dc75044746
Bug 1229256: P2. Use buffered range to determine next frame availability. r=jwwang
...
To avoid potential regression with some of our tests expecting our old particular behaviour, we only use the buffered range to determine the next frame status if the old method determined that the next frame was unavailable due to the MediaDecodeStateMachine not having decoded the next frame yet.
2015-12-03 12:38:10 +11:00
Jean-Yves Avenard
b968a258a5
Bug 1229256: P1. Only check readyState update upon buffered range completion. r=jwwang
...
When MediaDecoder::NotifyDataArrived is called, the buffered range hasn't been updated as of yet, causing unnecessary calls to UpdateReadyState().
Delay the readyState update until the buffered range is modified.
2015-12-03 12:38:10 +11:00
JW Wang
e4cbe0c128
Bug 1228939 - 1. add mSeekable to MediaInfo. 2. use MediaEventSource to notify the decoder when the media is not seekable. 3. remove unused code. r=jya.
2015-12-02 15:42:32 +08:00
JW Wang
f304127126
Bug 1228923 - Merge some MediaEventSource for MDSM. r=jya.
2015-12-01 09:34:02 +08:00
JW Wang
6e21f29356
Bug 1227797 - Use MediaEventSource to publish playback events for MDSM. r=jya.
2015-11-30 13:06:19 +08:00
Benjamin Chen
9008199c76
Bug 1198576 - Remove MediaCodecReader. r=bwu
2015-11-25 16:18:01 +08:00
Chris Pearce
cea22429d5
Bug 1226450 - Report audio/video codecs used in HTMLMediaElement and WebAudio via telemetry. r=jya
2015-11-25 12:52:48 +13:00
JW Wang
fb3cd6a536
Bug 1226569. Part 2 - assert functions that should never be called after shutdown. r=jya.
2015-11-23 10:35:56 +08:00
JW Wang
328ebd72a1
Bug 1226569. Part 1 - Use MediaEventSource to publish MetadataLoaded and FirstFrameLoaded events. r=jya.
2015-11-23 10:35:18 +08:00
Jean-Yves Avenard
3fbc97331d
Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
...
Following bug 1209410, it was no longer used.
2015-11-19 10:40:33 +11:00
JW Wang
fbb85ac25a
Bug 1219142. Part 1 - add AbstractMediaDecoder::DataArrivedEvent() to publish events. r=jya.
2015-11-18 09:00:56 +08:00
JW Wang
5dd1840487
Bug 1221009. Part 3 - add assertions to functions that shouldn't be called after shutdown. r=roc.
2015-11-16 07:51:22 +08:00
JW Wang
14c8d627dd
Bug 1221009. Part 2 - remove unused code. r=roc.
2015-11-16 07:51:03 +08:00
JW Wang
c87926273d
Bug 1221009. Part 1 - add a class to forward notifications from MediaResource to MediaDecoder. r=roc.
2015-11-16 07:50:55 +08:00
sajitk
582e1a55fa
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
2015-11-15 14:49:01 +01:00
JW Wang
8dedbfa33d
Bug 1223599 - Remove the throttling argument from AbstractMediaDecoder::NotifyDataArrived(). r=jya.
2015-11-11 17:59:16 +08:00
Wes Kocher
f3a9eb2a26
Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
...
--HG--
extra : commitid : BMVKq6cPeho
2015-11-11 09:36:56 -08:00
sajitk
3cbe348cdd
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
...
--HG--
extra : rebase_source : c73098485fa005d914304fb6e7f8eba3c15e66dc
2015-11-11 06:52:00 +01:00
JW Wang
4f2d0e76bc
Bug 1220558. Part 1 - remove unused arguments from MediaDecoderReader::DispatchNotifyDataArrived() and its callees/callers. r=jya.
2015-11-11 07:43:38 +08:00
JW Wang
399eff85fc
Bug 1220646 - don't access mOwner which is invalid after shutdown. r=kinetik.
2015-11-03 20:26:57 +08:00
JW Wang
89a23d426c
Bug 1219169. Part 1 - Remove AbstractMediaDecoder::OnStateMachineTaskQueue(). r=jya.
2015-11-02 10:36:48 +08:00
JW Wang
48028b5b2a
Bug 1217653 - MediaDecoder::GetOwner() should return null after shutdown. r=kinetik.
2015-10-28 14:17:28 +08:00
JW Wang
a7589ce310
Bug 1218280. Part 1 - create MediaResourceCallback for MediaResource to send notifications. r=roc.
2015-10-27 10:28:26 +08:00
Eric Rahm
5b38c55967
Bug 1174785 - Part 2: Convert xpcom over to LogModule. r=froydnj
...
--HG--
extra : rebase_source : 58d3b32bd0174f2540512cef810cafdd3556ef6b
2015-10-19 12:50:14 -07:00
JW Wang
f4b4ec1c67
Bug 1215023. Part 2 - remove null check of mOwner. We check mShuttingDown to know whether it is valid to call functions of mOwner. r=kinetik.
2015-10-19 13:55:38 +08:00
JW Wang
6d842ecf29
Bug 1215023. Part 1 - make MediaDecoder::mOwner a const member. We will check mShuttingDown before calling functions of mOwner. r=kinetik.
2015-10-19 13:55:26 +08:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
JW Wang
5147e1f0af
Bug 1214989. Part 3 - remove MediaDecoder::Init() and its callers. r=gerald.
2015-10-15 11:39:45 +08:00
JW Wang
e470e1616d
Bug 1214989. Part 1 - add MediaDecoderOwner to the constructors of MediaDecoder and sub-classes. r=gerald.
2015-10-15 11:36:21 +08:00
Eric Rahm
88d7e6c28e
Bug 1190592
- Part 1: Add mediasource memory reporter. r=jya
...
This adds asyncrounous reporting of MSE resources.
2015-08-20 18:10:33 -04:00