Граф коммитов

12221 Коммитов

Автор SHA1 Сообщение Дата
Alastor Wu b25ce830dd Bug 1403832 - part2 : reuse ErrorName() in MediaResult::Description(). r=jya
MozReview-Commit-ID: AN6v18RwlAw

--HG--
extra : rebase_source : 4d8e7370a166441005b5e9d7d632e526be666b10
2017-09-29 00:37:50 +08:00
Alastor Wu 1bc4324cb2 Bug 1403832 - part1 : replace Error.Code() with Error.ErrorName(). r=jya
Use ErrorName() as it provides more useful information for the error detail.

MozReview-Commit-ID: BQUPQGcLd8L

--HG--
extra : rebase_source : 734825c88dfbe79de1e61498dcc24606c50314ee
2017-09-29 00:37:45 +08:00
Bryce Van Dyk 06435b3208 Bug 1400757 - Add telemetry to MediaRecorder and TrackEncoder to track basic usage. r=francois,pehrsons
Add telemetry to collect the following:
- Number of times a MediaRecorder is started during a session
- Duration of media recordings
- How often we're timing out init of audio and video track encoders

MozReview-Commit-ID: 9Pc2oKNCH1M

--HG--
extra : rebase_source : 16414a5ffa95413458d36295e5508df4c16e6fa9
2017-09-19 07:34:02 +12:00
James Cheng 64ae68efce Bug 1403830 - [Part2] Remove unnecessary code and include header using gmp-platform.h. r=cpearce
MozReview-Commit-ID: huebQ9Ihs8

--HG--
extra : rebase_source : ff8cd329bf19f4158ac435f644c4c9dae44d890c
2017-09-28 16:18:16 +08:00
James Cheng 8f80fefaf0 Bug 1403830 - [Part1] Remove gmp-decryption.h and its related code. r=cpearce
MozReview-Commit-ID: G8RHADhfd3c

--HG--
extra : rebase_source : 125098fb689e5d031f042c9b3976a8163f41ff51
2017-09-28 15:50:28 +08:00
James Cheng ec87af6c06 Bug 1403804 - P2 - Remove remaining GMPCDMProxy term. r=cpearce
MozReview-Commit-ID: IlcqZWYlFPv

--HG--
extra : rebase_source : 7bc9bc7ef3573f491be833003e52aa8c4ccddf3e
2017-09-28 11:58:35 +08:00
James Cheng bd88dbe2fe Bug 1403804 - P1 - Remove PGMPDecryptor.ipdl and its related code from code base. r=cpearce
MozReview-Commit-ID: 4mxdcvnRl3W

--HG--
extra : rebase_source : 4c047fa94448bdde302f4b325f786f1d1b904388
2017-09-28 11:40:30 +08:00
Andreas Pehrson d918302551 Bug 1319446 - DirectMediaStreamListener, you are dead to me. r=padenot
MozReview-Commit-ID: KwztE5ogSj9

--HG--
extra : rebase_source : e8e6bb3548c5697c5db901c0310ea5067a30c895
2017-09-27 12:01:46 +02:00
Sebastian Hengst 5a95ac34b4 merge mozilla-central to autoland. r=merge a=merge 2017-09-29 11:49:46 +02:00
James Cheng 1a809037a4 Bug 1396493 - Part8 - Delete fakeopenh264.voucher. r=cpearce
MozReview-Commit-ID: 56gfZT1vdX0

--HG--
extra : rebase_source : 3ff00d96e2a8f51f028e7828732db8f312c34973
2017-09-27 02:31:30 +08:00
James Cheng d88213c50f Bug 1396493 - Part7 - Rename dom/media/gmp-plugin to dom/media/fake-cdm r=cpearce
MozReview-Commit-ID: JswVNPW3SXS

--HG--
rename : dom/media/gmp-plugin/cdm-fake.cpp => dom/media/fake-cdm/cdm-fake.cpp
rename : dom/media/gmp-plugin/cdm-test-decryptor.cpp => dom/media/fake-cdm/cdm-test-decryptor.cpp
rename : dom/media/gmp-plugin/cdm-test-decryptor.h => dom/media/fake-cdm/cdm-test-decryptor.h
rename : dom/media/gmp-plugin/cdm-test-output-protection.h => dom/media/fake-cdm/cdm-test-output-protection.h
rename : dom/media/gmp-plugin/cdm-test-storage.cpp => dom/media/fake-cdm/cdm-test-storage.cpp
rename : dom/media/gmp-plugin/cdm-test-storage.h => dom/media/fake-cdm/cdm-test-storage.h
rename : dom/media/gmp-plugin/manifest.json => dom/media/fake-cdm/manifest.json
rename : dom/media/gmp-plugin/moz.build => dom/media/fake-cdm/moz.build
extra : rebase_source : 7af2ee71047d6fa85f692fa0132d2a04533027b0
2017-09-27 02:27:29 +08:00
James Cheng ea01048e16 Bug 1396493 - Part6 - Fix unified build error due to adding a new gtest unit. r=cpearce
MozReview-Commit-ID: 8l3N9c8emDb

--HG--
extra : rebase_source : e85c543e35585a5bb3c291bf8bb9c6c44be3f7d6
2017-09-26 17:28:43 +08:00
James Cheng 7cd96467c1 Bug 1396493 - Part5 - Split out the CDM testing from TestGMPCrossOrigin.cpp to TestCDMStorage.cpp and rename GMPStorage into CDMStorage. r=cpearce
MozReview-Commit-ID: H17Iz67d4i7

--HG--
extra : rebase_source : 462dc6d559bc5d38a7b132103f023c3edfab0a2c
2017-09-26 17:24:04 +08:00
James Cheng 19984a5dd3 Bug 1396493 - Part4 - Fix the include header name after renaming by Part3. r=cpearce
MozReview-Commit-ID: 3dPKXXRqnUF

--HG--
extra : rebase_source : 010c6073ec49149b4e1db0d20d5cc6beeb9cffea
2017-09-27 21:12:39 +08:00
James Cheng b394995f8f Bug 1396493 - Part3 - Rename only the file names from gmp-* to cdm-* a. r=cpearce
MozReview-Commit-ID: AbEYahxfp4b

--HG--
rename : dom/media/gmp-plugin/gmp-fake.cpp => dom/media/gmp-plugin/cdm-fake.cpp
rename : dom/media/gmp-plugin/gmp-test-decryptor.cpp => dom/media/gmp-plugin/cdm-test-decryptor.cpp
rename : dom/media/gmp-plugin/gmp-test-decryptor.h => dom/media/gmp-plugin/cdm-test-decryptor.h
rename : dom/media/gmp-plugin/gmp-test-output-protection.h => dom/media/gmp-plugin/cdm-test-output-protection.h
rename : dom/media/gmp-plugin/gmp-test-storage.cpp => dom/media/gmp-plugin/cdm-test-storage.cpp
rename : dom/media/gmp-plugin/gmp-test-storage.h => dom/media/gmp-plugin/cdm-test-storage.h
extra : rebase_source : bb5abd64591c62d53b7aecdac960dc3f3f48f619
2017-09-27 21:06:56 +08:00
James Cheng 3bdcb38e14 Bug 1396493 - Part2 - Modify the gtest to adapt to the interface change. r=cpearce
MozReview-Commit-ID: FyuXeSipeRV

--HG--
extra : rebase_source : 69adc1656e6d9d15387b03e530c970981854fe09
2017-09-25 17:40:01 +08:00
James Cheng 06ead99170 Bug 1396493 - Part1 - Convert gmp-fake to use Chromium ContentDecryptionModule8 interface. r=cpearce
MozReview-Commit-ID: JAGAnVuEGSE

--HG--
extra : rebase_source : bc5e1e721478fc708affaa077ff73388fd312478
2017-09-25 17:40:22 +08:00
Kaku Kuo eb83d295c7 Bug 1403412 - disable VP9 estimizer on Mac; r=jya
MozReview-Commit-ID: 8RTe7lVSRwl

--HG--
extra : rebase_source : 5e67fae9fa287c4188402d8956d90e4ce47e1f32
2017-09-28 00:17:29 +08:00
Gerald Squelart 452f62c32c Bug 1403753 - Added missing #includes in some dom/media files - r=SingingTree
MozReview-Commit-ID: I5c81uRGkyi

--HG--
extra : rebase_source : a5ce3c6bf81b5726cc80a328f29338fd2233f04d
2017-09-28 11:34:05 +13:00
Wes Kocher 61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Sebastian Hengst 2d548eb88a merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-27 11:51:06 +02:00
Sebastian Hengst a3b6b15cef merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BGCq2q6xO1S
2017-09-27 11:47:52 +02:00
Wes Kocher acf8913934 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Wes Kocher a341b32d06 Merge autoland to central, a=merge
MozReview-Commit-ID: 8B7y2ULc04
2017-09-26 17:11:14 -07:00
Wes Kocher 22a72df7fe Merge inbound to m-c a=merge
MozReview-Commit-ID: 6viJ4wRxLa8
2017-09-26 15:54:51 -07:00
Joel Maher 808f4c3bd8 Bug 1389983 - fix skip syntax for dom/media/tests/mochitest/test_getUserMedia_addtrack_removetrack_events.html. r=me, a=test-only 2017-09-26 15:16:34 -04:00
Wes Kocher 9d9610f6a3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Kjjgw1Pdb3U
2017-09-26 17:15:46 -07:00
Andrea Marchesini 6b24a13ac2 Bug 1403232 - Fixing the WebVTT parser when the buffer uncompleted, r=bechen 2017-09-27 07:38:15 +02:00
Sylvestre Ledru 58dfe37aba Bug 1403292 - Add some comments to ignore the clang-format execution on these declarations r=jya
MozReview-Commit-ID: G30klPUAXTM

--HG--
extra : rebase_source : 2a6076da704b6fcc27f2abeebc71d7d09272dbf0
2017-09-26 21:11:33 +02:00
Sebastian Hengst 72d1ea4a4b merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Jean-Yves Avenard 24ce341523 Bug 1403190 - P1. Rename media.windows-media-foundation.* into media.wmf.* prefs. r=cpearce
MozReview-Commit-ID: F9rQoGVPmRt

--HG--
extra : rebase_source : e09c3065dda022208682dda52bca8dfef7ae23dc
2017-09-26 17:00:57 +02:00
Sebastian Hengst 087942d456 Backed out changeset 31a7d05125cc (bug 1403190) for breaking Windows builds due to wrong closing quotation marks in preferences file. r=backout on a CLOSED TREE 2017-09-27 10:18:02 +02:00
Jean-Yves Avenard 8755f326b6 Bug 1403129 - Don't cache decoder's description. r=gerald
MozReview-Commit-ID: 5ULVmUWUBGk

--HG--
extra : rebase_source : e68fcf4db866e766ec9f60af2ce40787e2cd539a
2017-09-26 15:26:34 +02:00
Jean-Yves Avenard 06bc9c648f Bug 1403190 - P1. Rename media.windows-media-foundation.* into media.wmf.* prefs. r=cpearce
MozReview-Commit-ID: F9rQoGVPmRt

--HG--
extra : rebase_source : 0bb194abe90e720100f2a2a09d0d905d6928aed3
2017-09-26 17:00:57 +02:00
Yoshi Huang c3e27f8363 Bug 1376971 - Part 4: query loadingprincipal in HTMLMediaElement. r=baku
Query loadingprincipal attribute on the media part.
2017-09-26 12:41:27 +08:00
Wes Kocher 7bf1b49628 Merge inbound to central, a=merge
MozReview-Commit-ID: 7EzhCCVVn7n
2017-09-25 16:41:34 -07:00
Dan Minor 30d76b125c Bug 1382182 - Build jsep using moz.build; r=ted,jesup
MozReview-Commit-ID: 9UhlBZi0yO0

--HG--
extra : rebase_source : 7ad69af2dfb61ad88fc5f87f4d17a09abbf23edc
2017-07-20 11:24:08 -04:00
Philippe Normand 082eec8e9c Bug 1399833 - set default values for variables controlled by Preferences. r=padenot
This is needed for Servo's gecko-media where there is no support for
Mozilla Preferences.

MozReview-Commit-ID: HbDT42SRrE3

--HG--
extra : source : 8952a9fc838fb2f45bf70a0ad5a3eb45bbeccec2
2017-09-14 13:29:30 +01:00
Sebastian Hengst 1a3935a05f merge autoland to mozilla-central.r=merge a=merge
MozReview-Commit-ID: JRQXsnsRpCS
2017-09-25 11:56:13 +02:00
Tom Ritter 1a9e967cb3 Bug 1402367 Lowercase windows includes for MinGW build r=dmajor
MozReview-Commit-ID: BUwvFA97lcu

--HG--
extra : rebase_source : b9497034b2d638c8cccc387f19d560cca381ee74
2017-09-22 11:02:06 -05:00
Chris Peterson 210c7f9690 Bug 870698 - Part 9: Replace Assign(NS_LITERAL_STRING("")) with AssignLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: 6vgQiU8zN3o

--HG--
extra : rebase_source : 1b536b92ef43f610db057ace6f108620e8d8b4d5
extra : source : 336e21386d5eeb16f1c9893c29377f23b67cc4b0
2017-09-06 01:43:13 -07:00
Chris Peterson a6a56ed916 Bug 870698 - Part 6: Replace Append(NS_LITERAL_CSTRING("")) with AppendLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: F750v6NN81s

--HG--
extra : rebase_source : 714dd78df0f4c33e23e5b117615bd8fd561674c5
extra : source : 742bda9e6b1ddaf34d09894204ad18ce798b79b7
2017-09-07 18:25:25 -07:00
Chris Peterson a0c8081df4 Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm
MozReview-Commit-ID: G1GhyvD29WK

--HG--
extra : rebase_source : 115842c37a40041bdca7b4e1ff0a5680b02ced15
extra : source : 90bfff9c01d80086cdc17637f310e898fea295ea
2017-09-06 01:13:45 -07:00
Samael Wang c4ecad6c4b Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : 3e5094fed014a5d152e85f21b6de796a9a7abaa9
2017-09-05 16:02:04 +08:00
Samael Wang dae9d4d191 Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl

--HG--
rename : dom/indexedDB/test/bfcache_iframe1.html => dom/indexedDB/test/bfcache_page1.html
rename : dom/indexedDB/test/bfcache_iframe2.html => dom/indexedDB/test/bfcache_page2.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame.html => dom/media/webspeech/synth/test/file_bfcache_page1.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame2.html => dom/media/webspeech/synth/test/file_bfcache_page2.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe1.html => dom/workers/test/WorkerDebugger_frozen_window1.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe2.html => dom/workers/test/WorkerDebugger_frozen_window2.html
rename : dom/workers/test/suspend_iframe.html => dom/workers/test/suspend_window.html
extra : rebase_source : 340ef1d025899138c07acf6709adb72740b9ae5c
2017-09-05 15:57:21 +08:00
Chris Peterson 45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
Chris Peterson 9f4c1f5278 Bug 870698 - Part 1: Replace Assign("") with AssignLiteral(""). r=erahm
MozReview-Commit-ID: A0u9PP49OW3

--HG--
extra : rebase_source : 7d5286959f510eb4b7df1b7e32d5b9b58719c48b
extra : intermediate-source : f552b4a78236c42bc09030b3eb008725a3edb9c8
extra : source : 26ac4a1014f6661a70e3bf9f552407e12c2c3981
2017-09-03 22:12:56 -07:00
Alastor Wu 5eddb6c449 Bug 1401147 - part2 : add test. r=jya
MozReview-Commit-ID: 2onCtimjuz4

--HG--
extra : rebase_source : 9e54641fbc2480895ff067e0d48f1eebba313911
2017-09-23 00:00:56 +08:00
Jean-Yves Avenard a47673b6ea Bug 1401147 - part1 : empty track buffer content upon detach. r=jya
After detached the source buffer, we would reset all its resource and shutdown
demuxer.

MozReview-Commit-ID: 7xEJ7q00aeF

--HG--
extra : rebase_source : c80ebb2e9ed6c9d3a672273d20ba2558b289e92d
2017-09-19 14:44:59 +02:00
Sebastian Hengst 2479eaedbf merge mozilla-central to autoland. r=merge a=merge 2017-09-22 11:50:19 +02:00
Sebastian Hengst 9e7898d195 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Nicholas Nethercote e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Jan-Ivar Bruaroey 630e3ccfc3 Bug 1399922 - Use a static mutex for getting deviceId keys in MediaParent. r=jesup
MozReview-Commit-ID: E6pzyAM4jOQ

--HG--
extra : rebase_source : f6a893508e4f5d1b426a62b6c549aba1e1f2041d
2017-09-21 10:45:56 -04:00
JW Wang 4ead787594 Bug 1401471. P4 - always access mChannelOffset within the cache monitor. r=gerald
MozReview-Commit-ID: KIQU3PrBUj1

--HG--
extra : rebase_source : 5b012b8ace153124a1f2f158efeaad9057927dd4
extra : intermediate-source : d5219d074f525e614164e7c3076a9df695c55e6c
extra : source : 8f07a48d4ac13162add83cce8677322e148d6f74
2017-09-20 16:23:21 +08:00
JW Wang 184fd3f455 Bug 1401471. P3 - store the seek target in StreamAction so we won't need to read mChannelOffset outside the cache monitor. r=gerald
MozReview-Commit-ID: Kkbs3WbSBVm

--HG--
extra : rebase_source : ee6e4119850c854c5a25bef841ffc555daa54fd1
extra : intermediate-source : 30a8f473342993067788911da6f0b999e3a5f9ce
extra : source : d0f1cd9ce8a3d12b63e198c8c8349823eb4b7dcd
2017-09-20 16:20:56 +08:00
JW Wang bfbcdad5a4 Bug 1401471. P2 - remove SEEK_AND_RESUME. r=gerald
MozReview-Commit-ID: ACdp3wVuurb

--HG--
extra : rebase_source : 0050aea48b07b406a84d8b33ebcd9bbf33c6c94e
extra : intermediate-source : 7efbc9605b94bfc93b660e673690625dd7ee74a2
extra : source : 315382f4c613b80d6f315c7dd7a36dada99b9d27
2017-09-20 16:16:07 +08:00
JW Wang 8de2a1f57f Bug 1401471. P1 - make StreamAction a struct so we can associate data with each action in the future. r=gerald
MozReview-Commit-ID: A0ZpunJgNYm

--HG--
extra : rebase_source : 3061d04f6e44d8a818ec08d59b0365b3baac5da1
extra : intermediate-source : 907b58682e04f5ee18256d5b85eae0662b83f727
extra : source : 2b76eb41fe275e65833d65a2217955e5761ad994
2017-09-20 16:12:31 +08:00
JW Wang ca87557a06 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R

--HG--
extra : rebase_source : 0d6bf80071ad0c326767db57fd9d707cec30ab89
extra : source : 6c73d7c37fb631a5e5deab3c1c692605ad5d18f3
2017-09-20 14:41:17 +08:00
JW Wang 25f00c44db Bug 1401461. P1 - protect access to ChannelMediaResource::Listener::mResource. r=gerald
MozReview-Commit-ID: 6G1x7cXNvAq

--HG--
extra : rebase_source : 2f6a8642930ec314621aab2ce6424e4f9f95e0c2
extra : source : eeb067bc2905dfa6fb5764fd42ebb78e1b71a61d
2017-09-20 14:37:18 +08:00
Alastor Wu e22a7e735d Bug 1402206 - print error name for MediaFormatReader::OnSeekFailed(). r=jya
Print error code couldn't effectively help people understand the reason of error, we should print its name.

MozReview-Commit-ID: KaBTi8zpq91

--HG--
extra : rebase_source : 64eebd9af18fcb5062ff347464045bb9327fb716
2017-09-22 16:23:08 +08:00
Jean-Yves Avenard 2cd8f30633 Bug 1401922 - P2. Only set error when non handled. r=alwu
MozReview-Commit-ID: CF2Iw0i0nD8

--HG--
extra : rebase_source : d95ae83f8e426593200cd15b3ea7d6fd19da3ec8
2017-09-21 13:29:54 +02:00
Jean-Yves Avenard ac7ed4578a Bug 1401922 - P1. Ensure an error is returned when no decoder could be created. r=alwu
PDMFactory::CreateDecoder may not always modify CreateDecoderParams::mError as not all PDM handle this optional return value.

MozReview-Commit-ID: K8WFA0o778U

--HG--
extra : rebase_source : 55c35ab0cb5282d8dfbd1bbc1a2e6e22d97d3209
2017-09-21 13:25:05 +02:00
Phil Ringnalda 1112382b61 Backed out 2 changesets (bug 1401461) for being the wrong patches
Backed out changeset 20a0000f97bc (bug 1401461)
Backed out changeset e3c36a62b5b1 (bug 1401461)

MozReview-Commit-ID: BJeIuoGJwjb
2017-09-21 20:29:39 -07:00
Phil Ringnalda 4627ae77ed Backed out 4 changesets (bug 1401471) because it depends on 1401461 which is being backed out
Backed out changeset 6a2c85349226 (bug 1401471)
Backed out changeset 554875cb6a2e (bug 1401471)
Backed out changeset f871c6aa4d90 (bug 1401471)
Backed out changeset ff9dbb6a6692 (bug 1401471)

MozReview-Commit-ID: 80kxfUqbik4
2017-09-21 20:29:08 -07:00
JW Wang eace06432d Bug 1401471. P4 - always access mChannelOffset within the cache monitor. r=gerald
MozReview-Commit-ID: KIQU3PrBUj1

--HG--
extra : rebase_source : 8984d39f5b0b29fe3233c96e5431e8641dd918fd
extra : source : 8f07a48d4ac13162add83cce8677322e148d6f74
2017-09-20 16:23:21 +08:00
JW Wang 105690ac8c Bug 1401471. P3 - store the seek target in StreamAction so we won't need to read mChannelOffset outside the cache monitor. r=gerald
MozReview-Commit-ID: Kkbs3WbSBVm

--HG--
extra : rebase_source : f77d564715998591fd91aa824906cdd90b7abdbe
extra : source : d0f1cd9ce8a3d12b63e198c8c8349823eb4b7dcd
2017-09-20 16:20:56 +08:00
JW Wang 0a4181eb82 Bug 1401471. P2 - remove SEEK_AND_RESUME. r=gerald
MozReview-Commit-ID: ACdp3wVuurb

--HG--
extra : rebase_source : 1553881dc5cf0e17f5175f0c02388666f43bdaa2
extra : source : 315382f4c613b80d6f315c7dd7a36dada99b9d27
2017-09-20 16:16:07 +08:00
JW Wang 3ed737a3b8 Bug 1401471. P1 - make StreamAction a struct so we can associate data with each action in the future. r=gerald
MozReview-Commit-ID: A0ZpunJgNYm

--HG--
extra : rebase_source : f76432a674e4535cd09a928b7151b9d530528909
extra : source : 2b76eb41fe275e65833d65a2217955e5761ad994
2017-09-20 16:12:31 +08:00
JW Wang 6ab26b050e Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R

--HG--
extra : rebase_source : 0d6bf80071ad0c326767db57fd9d707cec30ab89
extra : source : 6c73d7c37fb631a5e5deab3c1c692605ad5d18f3
2017-09-20 14:41:17 +08:00
JW Wang f69d8e8e34 Bug 1401461. P1 - protect access to ChannelMediaResource::Listener::mResource. r=gerald
MozReview-Commit-ID: 6G1x7cXNvAq

--HG--
extra : rebase_source : 2f6a8642930ec314621aab2ce6424e4f9f95e0c2
extra : source : eeb067bc2905dfa6fb5764fd42ebb78e1b71a61d
2017-09-20 14:37:18 +08:00
Kaku Kuo 88d6505246 Bug 1401902 - we should use MediaDataDecoder's address as an ID instead of MFR::DecoderData's address;r=gerald
We misused MFR::DecoderData's address as an identity in bug 1393399 but our intention was MediaDataDecoder's address.

We report telemetry data when we get the 1st decoded frame from a new MediaDataDecoder, which is identified by its address.

If we misuse the MFR::DecoderData's address as identity, it will take longer than we expect since only when
the MFR is recreated will we get a new MFR::DecoderData.

MozReview-Commit-ID: HOf5hTSoBed

--HG--
extra : rebase_source : 76731bd11eac9243a23a972f85c72203c3a3e7f1
2017-09-21 18:02:30 +08:00
Sebastian Hengst 17eaa88fb4 Backed out changeset 0ceb7e5789f4 (bug 1401461) for leaking in mochitest run on Windows 7 debug. r=backout 2017-09-21 11:16:40 +02:00
Sebastian Hengst a5de561618 Backed out changeset ddfa978c27f7 (bug 1401461) 2017-09-21 11:15:57 +02:00
Andreas Pehrson 78a302848f Bug 1296531 - Let waitForPixel and friends take a cancelPromise. r=jib
MozReview-Commit-ID: 42hT181wkvq

--HG--
extra : rebase_source : 430d7ea6156bddf98893c4b8b3d0db70c3c54831
2017-05-29 16:27:45 +02:00
Andreas Pehrson b99abdab75 Bug 1296531 - Let waitForAnalysisSuccess take a cancelPromise. r=jib
MozReview-Commit-ID: 3UHUXbg2laL

--HG--
extra : rebase_source : 65fec6f5fd95691f774d6b47a9bfa1acbdf48b06
2017-05-29 15:52:51 +02:00
Andreas Pehrson 540090020d Bug 1296531 - Make logic that passes buffered data to direct listener generic. r=jesup
MozReview-Commit-ID: GdGFJHTNBS

--HG--
extra : rebase_source : 031f02b25072a2c2e47e28c9f584c7d31a758c60
2017-05-24 18:54:40 +02:00
Sebastian Hengst fd1c572923 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-05 11:47:25 +02:00
Andrea Marchesini 970f42c82a Bug 1403706 - Remove race conditions in temporary blob - part 2 - MediaRecorder should use MutableBlobStorage, r=pehrsons, r=smaug 2017-10-05 07:41:41 +02:00
Andreas Pehrson 96e4767e6c Bug 1395853 - Add a mochitest for video codec content flow across peerconnection. r=jib
MozReview-Commit-ID: 2mZ9LkRWden

--HG--
extra : rebase_source : 3609da40f14fa434f3c2545458937782ed393591
2017-09-13 09:53:39 +02:00
Andreas Pehrson 845b05ec85 Bug 1395853 - Allow pt97 to be accepted as H264 in sdputils. r=drno
MozReview-Commit-ID: Cck57WEmjxz

--HG--
extra : rebase_source : 3fe03ed6c6b49ec8264aacaaa4c07916363ee522
2017-09-13 11:42:45 +02:00
Andreas Pehrson 1a839a7c53 Bug 1395853 - Add a mochitest for audio codec content flow across a PeerConnection. r=jib
MozReview-Commit-ID: 8cb7fgR5nO7

--HG--
extra : rebase_source : c1f33def1fe7e201bdc7eb66a49d7ddcb44fca70
2017-09-06 18:34:33 +02:00
Andreas Pehrson 2841ae1914 Bug 1395853 - Add convenience methods regarding codec ids to sdpUtils. r=drno
MozReview-Commit-ID: J4bZhZ6gm7O

--HG--
extra : rebase_source : cf2e730be85544bb0eac65b7c9e2ce0cf2da626f
2017-09-13 11:38:14 +02:00
Andreas Pehrson b8f0ecca46 Bug 1395853 - Refactor checkReceivingToneFrom to take a cancel promise. r=jib
MozReview-Commit-ID: 456FVAlZkXJ

--HG--
extra : rebase_source : c537d0492f4645cfe76c75466c078bf14fc63c73
2017-09-06 18:33:03 +02:00
Randell Jesup 87905650ba bug 1399137: make the fake openh264 encoder support mode 0 h264 r=pehrsons
MozReview-Commit-ID: LpUQMKkQq16

--HG--
extra : rebase_source : 30c9322a8223adbf70982e4f7d76cf3353e544df
2017-09-13 12:04:20 +02:00
Andreas Pehrson f6213c0568 Bug 1296531 - Don't notify of ended tracks when adding a direct listener. r=jesup
There were some cases where these tracks were detected as ended when they were
in fact not. That result in problems in the MediaRecorder.

MozReview-Commit-ID: 4CNUYRvzOgK

--HG--
extra : rebase_source : b94c29bc73e76575489a4684facc0b01bb7aeb22
extra : source : bedb7abcc84263c6a6369c4d05e8bf3287281090
2017-05-23 16:00:42 +02:00
Andreas Pehrson 447dfdfffa Bug 1296531 - Make sure test_pc_capturedVideo.html doesn't run out of source before connecting. r=jesup
MozReview-Commit-ID: EioemlMzYB7

--HG--
extra : rebase_source : 4d352c378a7080df4274126ace1a2f4c5a5d1dc3
2017-05-15 14:11:46 +02:00
Andrew McCreight a56b23fc5f Bug 1408459, part 1 - Work around compiler problem on Android 4.2 x86 opt. r=erahm,kamidphish
Removing an ununused declaration in nsTraceRefcnt.h causes a compiler
error on Android 4.2 x86 op when CubebUtils.cpp is compiled unified,
for some reason. Work around this by compiling it by itself.

MozReview-Commit-ID: F73D47TU32B

--HG--
extra : rebase_source : 23b76e55e27ab7501f1303a015f67e8be4603283
2017-10-15 09:19:31 -07:00
Jean-Yves Avenard 557904d18a Bug 1409141 - Disable D3D11 YUV buffer copy on Windows 7. r=mattwoodrow
The crashes on Windows 7 appear to occur due to the D3D11 device being used on two different threads simultaneously. We do query the driver to determine if multithreaded access is supported, but they obviously aren't that cluey about it.

MozReview-Commit-ID: GZIk1Zf9xKQ

--HG--
extra : rebase_source : d5dacbb8244021397bbaee81fb51569b06c88736
2017-10-16 22:03:18 +02:00
James Cheng 38c77e80cb Bug 1406080 - Part2 - Reject creating with unsupported cdm version in clearkey cdm and cdm-fake. r=cpearce
MozReview-Commit-ID: JvSsqZekRQ6

--HG--
extra : rebase_source : e80713dbf52aad29a32ff71a083c19479094b9a6
2017-10-07 00:06:06 +08:00
James Cheng a18e6f1765 Bug 1406080 - Part1 - Make ChromiumCDMAdapter and ChromiumCDMChild compatible with CDM version 8 and 9. r=cpearce
MozReview-Commit-ID: HXT2hcCX2jT

--HG--
extra : rebase_source : 7300b1d571defaab18638e4a7e60075c19821f1c
2017-10-11 23:39:47 +08:00
JW Wang d2e7186d25 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R

--HG--
extra : rebase_source : d6e77d812975fee2451d02faa81d76c03bbdad00
extra : source : 6c73d7c37fb631a5e5deab3c1c692605ad5d18f3
2017-09-20 14:41:17 +08:00
JW Wang 3ce1e10aba Bug 1401461. P1 - remove ChannelMediaResource::Listener::Revoke(). r=gerald
See comment 0 for the rationale. We check |aRequest != mResource->mChannel|
to know if a new channel is being loaded and the call should be aborted.

MozReview-Commit-ID: 6G1x7cXNvAq

--HG--
extra : rebase_source : 3114979192346e257f5d8040b8e0ffffa419d3f5
extra : source : eeb067bc2905dfa6fb5764fd42ebb78e1b71a61d
2017-09-20 14:37:18 +08:00
Sebastian Hengst 0dc17cba82 merge mozilla-central to autoland. r=merge a=merge 2017-09-20 11:49:13 +02:00
Sebastian Hengst bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
JW Wang 1c84dd5856 Bug 1400155 - early return from NotifyDataReceived() when the stream is already closed. r=gerald
See comment 3 for the detail. We can't assert !mClosed since NotifyDataReceived()
could be called after the stream is closed.

MozReview-Commit-ID: 4pTfjABdl9B

--HG--
extra : rebase_source : d7d8b38268f3f54242dd728fe5fd0ada17d6ee48
extra : source : 713510f4087b38f0d447529dbf601f19b3a89eae
2017-09-19 15:32:54 +08:00
JW Wang 472ab4804d Bug 1399760. P3 - keep ID of the loading channel so we check whether the data callback is from an old channel. r=gerald
The load ID works as follows:
1. A load ID is passed to MediaCacheStream::NotifyDataStarted()
   when loading a new channel.
2. Each MediaCacheStream::NotifyDataReceived() call is also associated
   with a load ID from which the data is received.
3. If |mLoadID != aLoadID| tests to be true in NotifyDataReceived(), it means
   the data is from an old channel and should be discarded.
4. MediaCache::Update() reset mLoadID for the stream before calling
   CacheClientSeek() to prevent data from the old channel from being
   stored to the wrong position.

MozReview-Commit-ID: 9kBoublLlln

--HG--
extra : rebase_source : 58e6d3fe40ec7a549cabc70b30db8006b49c0563
2017-09-20 11:41:08 +08:00
JW Wang ba7be530dd Bug 1399760. P2 - ensure mCacheStream.NotifyDataStarted() is always called in OnStartRequest(). r=gerald
This keeps us in a good shape that NotifyDataStarted() is always called
before subsequent NotifyDataReceived() calls. This is also required by P3
where we need to set the loadID before NotifyDataReceived().

MozReview-Commit-ID: 9TPodkMM4EH

--HG--
extra : rebase_source : 0079e3ae6b791c64c76ca3bc3faac46039fc48fc
2017-09-20 11:30:03 +08:00
JW Wang dd57b36053 Bug 1399760. P1 - remove the CopySegmentToCache() member function. r=gerald
MozReview-Commit-ID: 3D9RiK3PJUf

--HG--
extra : rebase_source : acf4962bb9fd4f784bbe5d13cc3428e7d60322d3
2017-09-20 11:12:48 +08:00
James Cheng 59439b26b7 Bug 1401114 - Replace 'if (NS_FAILED(' with 'if (NS_WARN_IF(NS_FAILED(' under dom/media/gmp. r=gerald
MozReview-Commit-ID: 8ThoMrmlHNx

--HG--
extra : rebase_source : ae5095a7f756576cd9f7951651f060c67bc5e2a3
2017-09-19 16:14:49 +08:00
Jonathan Watt 341ea5e4f1 Bug 1401356, part 2 - Rename nsSVGEffects to SVGObserverUtils. r=longsonr 2017-08-30 15:58:31 +01:00
Jonathan Watt 0e4feb75d3 Bug 1401356, part 1 - Rename nsSVGEffects.h/.cpp to SVGObserverUtils.h/.cpp. r=longsonr
--HG--
rename : layout/svg/nsSVGEffects.cpp => layout/svg/SVGObserverUtils.cpp
rename : layout/svg/nsSVGEffects.h => layout/svg/SVGObserverUtils.h
2017-08-30 14:14:46 +01:00
Andrew Halberstadt 7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
JW Wang 02c39abdd3 Bug 1401460 - update principals in OnStartRequest(). r=gerald
See comment 0 for the rationale.
The principal will not change after OnStartRequest().

MozReview-Commit-ID: K2HyWBBzGmC

--HG--
extra : rebase_source : 1d913390b1b94923d859bdb5f6e8d34d3f0ed60d
2017-09-20 14:23:59 +08:00
JW Wang 81acc3c247 Bug 1400166. P2 - Flush() should dispatch a task to clear arrays. r=gerald
If mBlockChanges is cleared when PerformBlockIOs() is dropping the data lock,
blockIndex will become an invalid index after it acquire the data lock again.

MozReview-Commit-ID: 5Cu2TgEO3F5

--HG--
extra : rebase_source : 1b3dce490acee6d034c3b85741deda79d209d21a
2017-09-18 11:07:52 +08:00
JW Wang 20c0330a15 Bug 1400166. P1 - move re-initialization code to Flush() for it is confusing to call Init() twice. r=gerald
MozReview-Commit-ID: 6KolHyGkqXo

--HG--
extra : rebase_source : 98ee1e8a4bebde33149e2dd6d8d0469be7ca11e9
2017-09-18 10:52:17 +08:00
Wes Kocher 519bb0922b Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Joel Maher b2d10f4be8 Bug 1389983 - Disable dom/media/tests/mochitest/test_getUserMedia_addtrack_removetrack_events.html on linux debug for frequent failures. r=me, a=test-only 2017-09-18 12:00:25 -04:00
Joel Maher 3effc6f2a5 Bug 1282262 - Disable dom/media/tests/mochitest/test_getUserMedia_mediaStreamClone.html for frequent failures. r=me, a=test-only 2017-09-18 12:00:24 -04:00
Andrea Marchesini b0b73ddd29 Bug 1388125 - CloneableWithRangeMediaResource for streams implementing nsICloneableInputStreamWithRange, r=jya 2017-09-18 13:34:43 +02:00
Andrea Marchesini 5f79fe9d48 Bug 1388125 - Move ChannelMediaResource to separate files, r=jya 2017-09-18 13:33:49 +02:00
Andrea Marchesini 3ad3aaae76 Bug 1388125 - Move FileMediaResource to separate files, r=jya 2017-09-18 13:31:08 +02:00
Andrea Marchesini 052284c159 Bug 1388125 - FileMediaResource should use BlobImpl->Size() instead of stream::Available() to know the size, r=jya 2017-09-18 13:31:00 +02:00
Sebastian Hengst 7dba57e6b9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DYPstPArJWR
2017-09-18 11:34:59 +02:00
Jean-Yves Avenard 6367aea01f Bug 1400537 - P2. Pass video framerate to decoder. r=gerald
Continuation on bug 1397307 which was incomplete.

MozReview-Commit-ID: JGGHQyjnALI

--HG--
extra : rebase_source : 067652250dcd0904c8436eebc50068c7fb8d8cbb
2017-09-17 18:06:47 +02:00
Jean-Yves Avenard 3e790e2a55 Bug 1400537 - P1. Don't assume that the PDM will properly report an error. r=alwu
Only the Windows H264 decoder supports CreateDecoderParam::mError, all the other PDM leave the value untouched.

As such, it can't be assumed that in case of failure, the mError attribute will be set.

MozReview-Commit-ID: GWHGP6Wv3fl

--HG--
extra : rebase_source : 081b71c7a53c41d9a13904e4182e3cfdb876ae43
2017-09-17 18:01:37 +02:00
Bharat Raghunathan 1880a2c631 Bug 1396794 - Removed aPacket and aLength change r=kentuckyfriedtakahe
MozReview-Commit-ID: JG9vo3dbMB

--HG--
extra : rebase_source : d699868284c5929aee3b26544fc99f454dd114ed
2017-09-16 07:18:56 +05:30
Sebastian Hengst 9f35e3578f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-17 23:35:08 +02:00
Jean-Yves Avenard afd0595779 Bug 1400598 - P1. Stop parsing bytesteam as soon as we have found the necessary data. r=gerald
MozReview-Commit-ID: 9APhbRHIMUP

--HG--
extra : rebase_source : 5f62596fab23c2b832d6cdb85764f3b4b37aa7ad
2017-09-16 23:35:17 +02:00
Jan-Ivar Bruaroey c0da003175 Bug 1381638 - Prevent sharing multiple input devices in the same process. r=jesup 2017-09-15 23:00:39 -04:00
Sebastian Hengst 1d35d25f21 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1Wa3jV6n7Wj
2017-09-16 11:35:02 +02:00
Randell Jesup eea2736c27 Bug 1396879: don't dynamically switch to/from fast-path gUM audio r=jib 2017-09-16 00:06:07 -04:00
Jean-Yves Avenard 19ca46af01 Bug 1400614 - P2. Change string output content. r=gerald
Doesn't look as nice as I had hoped.

MozReview-Commit-ID: 6GAXsVKC2sQ

--HG--
extra : rebase_source : bc06616f22f08a6ae6d14dc2fb8b4b60448120f2
2017-09-17 09:56:38 +02:00
Jean-Yves Avenard 56de0134f7 Bug 1400614 - P1. Handle case where we have no video track. r=gerald
MozReview-Commit-ID: KcHMH3pOouc

--HG--
extra : rebase_source : 5b8135156a535ea75d13c2568123d242b79dd5cc
2017-09-17 00:57:17 +02:00
John Lin ac062e7031 Bug 1394239 - don't return video frames that MDSM won't show. r=jya
In some Android ROMs, MediaCodec doesn't allocate additional buffers to reduce
consumer starvation and will not work when MDSM grips most recently returned
frame before rearching seek target. Implement SetSeekThreshold() to get actual
seek target to check if video buffers can be released back to remote decoder
immediately.

MozReview-Commit-ID: 7IetuVxCXc0

--HG--
extra : rebase_source : 8e8643dbde757d41a26de45663a8232b4c66c386
2017-09-11 12:50:48 +08:00
James Cheng 7789212fcf Bug 1399754 - [Part2] Fix wrong format string. r=cpearce
MozReview-Commit-ID: 5oXE0UvGeFt

--HG--
extra : rebase_source : 92ecf466b49f4062a85f058b802c37887cabf23a
2017-09-14 17:18:00 +08:00
James Cheng 1d71cf11e9 Bug 1399754 - [Part1] Replace CDM_LOG with GMP_LOG. r=cpearce
MozReview-Commit-ID: IG3qsRGW42E

--HG--
extra : rebase_source : 0b0cd4a394a5c15ed8fa8b631c149c962297e55e
2017-09-14 16:00:58 +08:00
Jean-Yves Avenard 83780d15b6 Bug 1400254 - Don't apply fuzz workaround when appendWindowEnd is set. r=gerald
Someone changing the attribute appendWindowStart and appendWindowEnd can be expected to know what they are doing. As such, we don't need to make sure playback starts when content timestamps are broken.

MozReview-Commit-ID: EcPORuDHpF5

--HG--
extra : rebase_source : 2e29f07d8c4c52dfee360bac9e83b4d92b3eae38
2017-09-17 15:30:34 +02:00
Alastor Wu da413dafe6 Bug 1400758 - part3 : report the error description with InitPromise for ffmpeg decoders. r=jya
MozReview-Commit-ID: 3MGmU34JY3t

--HG--
extra : rebase_source : 154697238162ff92f861e7cbaa1a6d22b1ee13f4
2017-09-18 18:10:05 +08:00
Alastor Wu 9d25af9bef Bug 1400758 - part2 : report the error description with InitPromise for agnostic decoders. r=jya
MozReview-Commit-ID: BxTTHJPwDNq

--HG--
extra : rebase_source : e634e0a7d61da02f258b7736e69afa249dd2c6ee
2017-09-18 18:10:00 +08:00
Alastor Wu 1dc98ba99e Bug 1400758 - part1 : report the error description with InitPromise for Apple's decoders. r=jya
MozReview-Commit-ID: 8rifWLm8BPt

--HG--
extra : rebase_source : 44dcc34ba665a238a3bc72a7c610484e860ddb8a
2017-09-18 18:05:21 +08:00
James Cheng 277ad84673 Bug 1400180 - Fix CID 1417508 Uninitialized members of TextTrackCue::mLine and mPosition by giving them default values. r=alwu
MozReview-Commit-ID: CB6980MNqP1

--HG--
extra : rebase_source : 732149b1fa7d5a30b662ac179e8db59f12f4f2f6
2017-09-15 17:12:38 +08:00
Jean-Yves Avenard f170080ea4 Bug 1397307 - P10. Remove uncessary loop. r=gerald
We only process a demuxed sample at a time. Waiting until one is decoded to do the next pending ones.

MozReview-Commit-ID: JlXhyPzso8U

--HG--
extra : rebase_source : c11185ca75fd5950aa4273dd9ec03d2cf9b217ba
2017-09-14 14:45:10 +02:00
Jean-Yves Avenard f1c09e4a82 Bug 1397307 - P9. Pass video frame rate to RemoteVideoDecoder and GPU process. r=mattwoodrow
MozReview-Commit-ID: BDSO332f3B6

--HG--
extra : rebase_source : 1ef2b6d7b1c4e237fa90afa99a446678f0f16e25
2017-09-12 18:29:40 +02:00
Jean-Yves Avenard b787f86de0 Bug 1397307 - P8. Pass averaged video frame rate to constructor. r=mattwoodrow
MozReview-Commit-ID: FMFz3RdFsHA

--HG--
extra : rebase_source : 868c4177da4aecbf5b7c13e441aa15fe865fd66e
2017-09-12 17:55:03 +02:00
Jean-Yves Avenard e1eaa06ce9 Bug 1397307 - P7. Display video resolution and frame rate in debug data. r=gerald
MozReview-Commit-ID: 9vsheKkAm4p

--HG--
extra : rebase_source : 701231cbb976f72819eab7de20c9a5d9c5780136
2017-09-12 17:40:42 +02:00
Jean-Yves Avenard a73b2aa424 Bug 1397307 - P6. Calculate average video frame rate as video is playing. r=gerald
We unfortunately can't store this information in the VideoInfo as typically the framerate isn't found in the container's metadata. Additionally, the VideoInfo object is readable-only as it is shared across threads.

As such, we can only estimate it as we demux samples.

MozReview-Commit-ID: 5HB33ubfGAs

--HG--
extra : rebase_source : 1d6d09da76a99524422b14d50db477a9aa222da0
2017-09-12 21:20:09 +02:00
Jean-Yves Avenard 6940b5e2e4 Bug 1397307 - P5. Avoid creating two decoders on first sample. r=gerald
Don't unnecessarily, create a decoder, flush, shutdown and create a new one on the first sample.

MozReview-Commit-ID: 8utEX5JEmq8

--HG--
extra : rebase_source : e40548e7ef4ad1a8e3c57f3070a2ffc77bf81a3f
2017-09-12 21:02:24 +02:00
Jean-Yves Avenard ac903423a4 Bug 1397307 - P4. Fix style. r=gerald
MozReview-Commit-ID: 1Q3kwsDlAhI

--HG--
extra : rebase_source : 1de597c71be3793000fc5787e1cd276bb7d2704a
2017-09-12 11:09:15 +02:00
Jean-Yves Avenard aa5caa2ae1 Bug 1397307 - P3. Remove unused method. r=gerald
Code was incorrect anyway.

MozReview-Commit-ID: Bf0O4Mhu1P6

--HG--
extra : rebase_source : 79ff66e3bec257b9f72e8af9b06b023715172d69
2017-09-11 17:37:44 +02:00
Jean-Yves Avenard c59188889b Bug 1397307 - P2. Wrap boolean in structure to prevent unwanted conversion. r=gerald
Automatic conversion (say from int to bool) makes DecoderParam difficult to extend.

MozReview-Commit-ID: G0T7jPogskN

--HG--
extra : rebase_source : 59437fd2b430ccd6be50b18c98b5a5c4ed2c8240
2017-09-08 15:45:38 +02:00
Jean-Yves Avenard d9036ddaef Bug 1397307 - P1. Make method const. r=gerald
MozReview-Commit-ID: 2UrTZroXpRG

--HG--
extra : rebase_source : d3c95c1c07fb46d28d7aea9fc8891894e7024b5a
2017-09-08 12:49:01 +02:00
JW Wang 04279e9849 Bug 1399751. P3 - pass the offset of range request to ChannelMediaResource::OnStartRequest(). r=gerald
So we don't have to look at GetOffset(). We want to reduce the use of
MediaCacheStream::mChannelOffset so it is easier to fix data races about it.

MozReview-Commit-ID: 3GAbKYA9xi4

--HG--
extra : rebase_source : bfaceb190da30e3276085fb7930468ad51e3a98f
2017-09-14 14:33:15 +08:00
JW Wang 93ecd70b5b Bug 1399751. P2 - pass a block index to FindBlockForIncomingData() so it doesn't depend on mChannelOffset. r=gerald
MozReview-Commit-ID: 7VltaDyxndl

--HG--
extra : rebase_source : 09516f6379bb5f0e6e949e150cc74d373a889464
2017-09-14 10:42:54 +08:00
JW Wang a00d1e2c0a Bug 1399751. P1 - pass a block index to AllocateAndWriteBlock() so it doesn't depend on mChannelOffset. r=gerald
MozReview-Commit-ID: EJmxrE5X6nA

--HG--
extra : rebase_source : 0d89f6e1de8082ebe0fa3a20c1c8d2e34d4e1982
2017-09-14 10:39:06 +08:00
Bryce Van Dyk 5a880668fb Bug 1336367 - Fix unified build issues from previous changes. r=pehrsons
MozReview-Commit-ID: E82sCwkCxGT

--HG--
extra : rebase_source : 7ceace01c2d91b1f65f7ab9d34ebb08dd1edb48b
2017-09-14 14:15:22 +12:00
Bryce Van Dyk 1d69fbd829 Bug 1336367 - Rename TestTrackEncoder to TestAudioTrackEncoder. r=pehrsons
The TestTrackEncoder file only contained audio encoder tests. This makes the
distinction between the already existing TestVideoTrackEncoder and these audio
tests clearer.

MozReview-Commit-ID: KmM616S72Gm

--HG--
rename : dom/media/gtest/TestTrackEncoder.cpp => dom/media/gtest/TestAudioTrackEncoder.cpp
extra : rebase_source : abd0965fd27ef0f51575ac20e908b4cc908bca47
2017-09-14 13:54:43 +12:00
Bryce Van Dyk 2cc5363e39 Bug 1336367 - Add gtest for new AudioTrackEncoder init method and behaviour. r=pehrsons
MozReview-Commit-ID: 1IWPu2lD2u6

--HG--
extra : rebase_source : 4daeef0555e637f561025440591b7954641add1d
2017-09-14 13:21:31 +12:00
Bryce Van Dyk 1f1b9997c8 Bug 1336367 - Move AudioTrackEncoder Segment init logic into new method. r=pehrsons
The AudioTrackEncoder has logic to attempt to init when given an AudioSegment.
This logic has previously been part of NotifyQueuedTrackChanges. This
changeset moves the logic to its own method. This allows for finer testing of
the init attempt behaviour.

MozReview-Commit-ID: Der1iM9J8fr

--HG--
extra : rebase_source : bb47dd483d69349482a6d8882e9768b1a8d09480
2017-09-14 07:19:27 +12:00
Bryce Van Dyk fc034c8d9f Bug 1336367 - Significantly lower TrackEncoder timeout, make best effort init audio encoder on timeout. r=pehrsons
MozReview-Commit-ID: 2J5DPfkulIF

--HG--
extra : rebase_source : 06fffca2f1fb60971d204e0dfa773d1373eb0e89
2017-09-12 09:32:17 +12:00
Sebastian Hengst 71720207e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JHeyFz4rx1v
2017-09-14 23:58:56 +02:00
Ryan VanderMeulen 277d6a438f Merge m-c to inbound. a=merge 2017-09-14 10:52:18 -04:00
Dan Minor b155d6c5ca Bug 1393687 - Add mochitest for max-fs; r=jesup
This adds a mochitest to verify that the max-fs constraint results in smaller
video for VP8 and H.264.

MozReview-Commit-ID: Hk6uyqoiwUY

--HG--
extra : rebase_source : 99602d3d98f8f17b8d71fd94ef3198d43abb7541
2017-09-12 08:24:48 -04:00
Sebastian Hengst 006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Sebastian Hengst 7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Sebastian Hengst dd669d05e1 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JWKcdNfAFqk
2017-09-13 11:25:59 +02:00
Sebastian Hengst a3ed708553 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 11:44:38 +02:00
Joel Maher 7806465584 Bug 1398244 - run mochitest-media on windows 10 instead of windows 8. r=rwood 2017-09-13 05:18:46 -04:00
Ryan VanderMeulen 68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Sebastian Hengst ecf716b8bb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
James Cheng be5b995e78 Bug 1397123 - [Part2] Decouple ChromiumCDMProxy from ChromiumCDMParent. r=cpearce
1. Pass ChromiumCDMCallback interface to ChromiumCDMParent instead of ChromiumCDMProxy directly.
2. Wrap dispatching to main thread function to clean up the redundant code.

MozReview-Commit-ID: 5HxS9Fc1yr

--HG--
extra : rebase_source : 3ac4c4b260f3196bd862e97aaf12c2422d43ad11
2017-09-11 12:17:36 +08:00
James Cheng e3b97ecea3 Bug 1397123 - [Part1] Make aMessage of CDMProxy::OnSessionMessage const. r=cpearce
MozReview-Commit-ID: Bsw6s2HE02

--HG--
extra : rebase_source : 40a0bd4d5cc20210322daed0eba04dec2273fbd7
2017-09-11 12:16:18 +08:00
Bill McCloskey fe8e58f308 Bug 1397941 - Fix DecodedStream labeling bug (r=jwwang)
MozReview-Commit-ID: KL5XzLJuWgz
2017-09-11 19:10:59 -07:00
Alastor Wu 7ed84d4e89 Bug 1397141 - part8 : update test for video under 48x48. r=jya
In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 30b9dc35f5754d6ecc7cddaf7f5a9fabf9965889
2017-09-13 15:38:24 +08:00
Alastor Wu 10f4de4d65 Bug 1397141 - part7 : update error description in MFR. r=jya
MozReview-Commit-ID: 9Sb5ogX2Bf2

--HG--
extra : rebase_source : 8a2ae32439097c583c63290009b8ca5de36b49a8
2017-09-13 15:38:06 +08:00
Alastor Wu 116ce6a963 Bug 1397141 - part6 : use MediaResult to replace nsresult r=jya
Return MediaResult instead of using nsresult, because it can contain more detailed
error information. We could also return this error with our rejected decode promise.

MozReview-Commit-ID: 80yEAbxqvWu

--HG--
extra : rebase_source : 51a56b571767c6b64f0c92353585261b28ea5616
2017-09-13 15:37:50 +08:00
Alastor Wu 686b38b20a Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: 9aKyYftBnUo

--HG--
extra : rebase_source : a497e12d98e3a2b0e0ec2afa60298cacbe1a5ea9
2017-09-13 15:37:24 +08:00
Alastor Wu 1df67c03cc Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr

--HG--
extra : rebase_source : 23d72cc72f5683305745024de913f44298d717d5
2017-09-13 15:05:52 +08:00
Alastor Wu b89748ad91 Bug 1397141 - part3 : remove the minimum resolution check. r=jya
After bug 1392143, we won't enable HW decoding for the resolution < 132 pixels.
In addition, software decoder doesn't have the minimum resolution limit, so
we can remove the minimum resolution check.

MozReview-Commit-ID: 7MiLpwjiq3s

--HG--
extra : rebase_source : 742556f6f2fb40b3e5e69212707a606d3b22ed36
2017-09-13 15:05:45 +08:00
Alastor Wu 0eecc91949 Bug 1397141 - part2 : move resolution constraints to WMFVideoMFTManager r=jya
WMFDecoderModule should only focus on whether the mime type is supported or not.
Let WMFVideoMFTManager do the checking.

MozReview-Commit-ID: K6jPfrntu7s

--HG--
extra : rebase_source : f6ba055824c3a7ebac85666e3201fd6b79e8d815
2017-09-13 15:05:37 +08:00
Alastor Wu 95cde08ed5 Bug 1397141 - part1 : update error description for getting more details r=jya
We should report the more detailed error when creating the decoder failed,
instead of just reporting "can not create decoder".

MozReview-Commit-ID: 8vunP5c3zzI

--HG--
extra : rebase_source : 327a988463bf61ad17d1f93bf0a2640d9c9735c7
2017-09-13 15:05:25 +08:00
Sebastian Hengst f992c70670 Backed out changeset 6f22cc93383c (bug 1397141) for bustage at dom/media/ipc/VideoDecoderParent.cpp:87 (undeclared variable). r=backout on a CLOSED TREE 2017-09-13 09:26:39 +02:00
Sebastian Hengst 483665f6a4 Backed out changeset 81a987374ac7 (bug 1397141) 2017-09-13 09:25:55 +02:00
Sebastian Hengst 4492018f6a Backed out changeset 57ab4c51c72b (bug 1397141) 2017-09-13 09:25:50 +02:00
Sebastian Hengst f550df3a8e Backed out changeset 9140f22570ea (bug 1397141) 2017-09-13 09:25:44 +02:00
Sebastian Hengst 7d84900829 Backed out changeset 6dade48b3326 (bug 1397141) 2017-09-13 09:25:39 +02:00
Sebastian Hengst 2e68cb77ba Backed out changeset c78c096d0be9 (bug 1397141) 2017-09-13 09:25:33 +02:00
Sebastian Hengst 6f1ea8f932 Backed out changeset eab2e401c60f (bug 1397141) 2017-09-13 09:25:28 +02:00
Sebastian Hengst d7f084f99d Backed out changeset f6f5863e50a8 (bug 1397141) 2017-09-13 09:25:22 +02:00
Alastor Wu d3b21ca470 Bug 1397141 - part8 : update test for video under 48x48. r=jya
In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 36cdd1e18cd41516319989b56e4e83888b0ecf50
2017-09-13 15:06:22 +08:00
Alastor Wu 0fc4a508a5 Bug 1397141 - part7 : update error description in MFR. r=jya
MozReview-Commit-ID: 5QPdFCMesi5

--HG--
extra : rebase_source : e62040cbeccd55a30ffe3b7b2d16010f7c86ee6f
2017-09-13 15:06:14 +08:00
Alastor Wu 3da04770d6 Bug 1397141 - part6 : use MediaResult to replace nsresult r=jya
Return MediaResult instead of using nsresult, because it can contain more detailed
error information. We could also return this error with our rejected decode promise.

MozReview-Commit-ID: HrI3QKlSJC

--HG--
extra : rebase_source : 6aba73c887e3068bf2a3f031a9a3b0698decc2e3
2017-09-13 15:06:07 +08:00
Alastor Wu 45f6a63ccf Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: CuBZOtjh4g2

--HG--
extra : rebase_source : 82c68ea3fe54b148b0cf98fe37d954efd4acbcbe
2017-09-13 15:05:59 +08:00
Alastor Wu 6db87eb5d6 Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr

--HG--
extra : rebase_source : 23d72cc72f5683305745024de913f44298d717d5
2017-09-13 15:05:52 +08:00
Alastor Wu 8b50e7758a Bug 1397141 - part3 : remove the minimum resolution check. r=jya
After bug 1392143, we won't enable HW decoding for the resolution < 132 pixels.
In addition, software decoder doesn't have the minimum resolution limit, so
we can remove the minimum resolution check.

MozReview-Commit-ID: 7MiLpwjiq3s

--HG--
extra : rebase_source : 742556f6f2fb40b3e5e69212707a606d3b22ed36
2017-09-13 15:05:45 +08:00
Alastor Wu 8c01968e21 Bug 1397141 - part2 : move resolution constraints to WMFVideoMFTManager r=jya
WMFDecoderModule should only focus on whether the mime type is supported or not.
Let WMFVideoMFTManager do the checking.

MozReview-Commit-ID: K6jPfrntu7s

--HG--
extra : rebase_source : f6ba055824c3a7ebac85666e3201fd6b79e8d815
2017-09-13 15:05:37 +08:00
Alastor Wu 34ef9f5aa2 Bug 1397141 - part1 : update error description for getting more details r=jya
We should report the more detailed error when creating the decoder failed,
instead of just reporting "can not create decoder".

MozReview-Commit-ID: 8vunP5c3zzI

--HG--
extra : rebase_source : 327a988463bf61ad17d1f93bf0a2640d9c9735c7
2017-09-13 15:05:25 +08:00
Jean-Yves Avenard f33ffdaa12 Bug 1352016 - P5. Also check AMD cards with 0x1002 device id. r=mattwoodrow
MozReview-Commit-ID: DjCMDNfsfXe

--HG--
extra : rebase_source : de6814743e405d396d9ae479ed7646fa8de021d1
2017-09-10 18:17:14 +02:00
Jean-Yves Avenard 9f62aa3667 Bug 1352016 - P1. Add method to check if NV12 rendering is usable. r=mattwoodrow
It will allow to blacklist all NVidia Tesla and AMD UVD3 GPU.

MozReview-Commit-ID: LaJqyIj0Yau

--HG--
extra : rebase_source : aa93c4379181e2cb09733f0053de55bf64787ef6
2017-09-10 17:51:35 +02:00
Sebastian Hengst 0987151cd8 merge mozilla-central to autoland. r=merge a=merge 2017-09-12 11:36:32 +02:00
JW Wang fbbf253722 Bug 1398711. P2 - write to mClosed only when the cache monitor is held. r=gerald
This fixes the data race when Seek() read mClosed off the main thread.

MozReview-Commit-ID: GO7Kk5VgVpg

--HG--
extra : rebase_source : e29353aea1e077e30fd284a80a56472d6772e9e1
extra : intermediate-source : 20a5860220a6eb54616cbe059afdaebc81e07e1f
extra : source : 0722d581e2d03eb140ea722527975534471c31b5
2017-09-08 17:46:56 +08:00
JW Wang 0c7c4a09c5 Bug 1398711. P1 - remove unused methods. r=gerald
MozReview-Commit-ID: HHezNUArhVd

--HG--
extra : rebase_source : 4e139d0640dd7335e23332af9d56b88ae499a6e2
extra : intermediate-source : cb1e92dbd1f53874c8d41e36f317c4c5c61bbacf
extra : source : e24555972c08b134654847d950a523c1a836bdb5
2017-09-08 17:35:11 +08:00
James Cheng fd751ffde2 Bug 1398102 - [Part2] Fix test fail due to wrong assumption. r=gerald
MozReview-Commit-ID: 1wRNQ2oIY1w

--HG--
extra : rebase_source : f2822a79a2af2a0a2f2e0db0000f885c550db8d7
2017-09-12 17:28:48 +08:00
JW Wang 8fb5559c5f Bug 1395855. P2 - store the offset of range request. r=cpearce
So we know what to pass to SetupChannelHeaders()
when the channel is redirected.

MozReview-Commit-ID: DbCPGA3qIyn

--HG--
extra : rebase_source : 4b8a5b620344fa261b243c0935ce49ebb7a9b4aa
extra : source : dfe1a9fe59a623f4d1972f3184a5861cfef62ffd
2017-09-09 00:37:40 +08:00
JW Wang 7a2d2e198c Bug 1395855. P1 - remove ChannelMediaResource::mOffset so we have less data race to worry about. r=cpearce
We have MediaCacheStream::mChannelOffset to keep the download positon.
We don't need 2 variables for the same purpose.

MozReview-Commit-ID: IpnEJWuA9A9

--HG--
extra : rebase_source : 8e720d878c12555d0a5528167c183ddb881b249e
extra : source : 623cf4cc3ab5ad0d9d263bac05a58699b3577277
2017-09-08 15:09:37 +08:00
JW Wang 7f866dd54e Bug 1399372 - update the principal only once per OnDataAvailable() call. r=cpearce
MozReview-Commit-ID: BWyDmKglWsl

--HG--
extra : rebase_source : a9563cf9c04e462dc4c80779b8a587f420bb5499
extra : intermediate-source : 9d12fff4917b308011d37de8172f8f5036308271
extra : source : 4150f78ba66d820509b0bae87cc47e39c2f4ade1
2017-08-29 17:57:00 +08:00
Chris Pearce 52ca837455 Bug 1399559 - Include nsXULAppAPI.h in AudioStream.cpp. r=jwwang
This ensures XRE_IsContentProcess() is defined, as it's used in this file.

MozReview-Commit-ID: JFCmvZ8aZdT

--HG--
extra : rebase_source : 5852da1b4b76f767e7d36071cdfa1f97eaedbf8c
2017-09-14 15:56:35 +12:00
Wes Kocher 7a8b3e02a0 Backed out 4 changesets (bug 1352016) for gfx crashes in test_TelemetryEnvironment.js a=backout CLOSED TREE
Backed out changeset dd7342e18e67 (bug 1352016)
Backed out changeset ebc7c92e8dc0 (bug 1352016)
Backed out changeset e79e512f803f (bug 1352016)
Backed out changeset 9eed6a69298c (bug 1352016)

MozReview-Commit-ID: CYDuqu0Hmtb
2017-09-12 17:09:40 -07:00
Jean-Yves Avenard 17b5da90db Bug 1352016 - P4. Also check AMD cards with 0x1002 device id. r=mattwoodrow
MozReview-Commit-ID: DjCMDNfsfXe

--HG--
extra : rebase_source : 671c9ae8bbf36ac825f68485072df7afd464f4c1
2017-09-10 18:17:14 +02:00
Jean-Yves Avenard 0d3f904559 Bug 1352016 - P1. Add method to check if NV12 rendering is usable. r=mattwoodrow
It will allow to blacklist all NVidia Tesla and AMD UVD3 GPU.

MozReview-Commit-ID: LaJqyIj0Yau

--HG--
extra : rebase_source : aa93c4379181e2cb09733f0053de55bf64787ef6
2017-09-10 17:51:35 +02:00
Munro Mengjue Chiang bb4430fa36 Bug 1399395 - skip devicechange event handler in shutdown stage. r=pehrsons
MozReview-Commit-ID: 8skWP7LuGvR

--HG--
extra : rebase_source : 4003690eedd10ee1676aecfc8f304593004f66ce
2017-09-14 11:16:42 +08:00
Sebastian Hengst be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Phil Ringnalda 2387b87164 Backed out 2 changesets (bug 1397123) for Android build bustage
Backed out changeset 803c2d6f4be4 (bug 1397123)
Backed out changeset 2d41a6eb4df4 (bug 1397123)

MozReview-Commit-ID: A45nVCrhbQA
2017-09-11 20:23:22 -07:00
James Cheng 48f1756606 Bug 1397123 - [Part2] Decouple ChromiumCDMProxy from ChromiumCDMParent. r=cpearce
1. Pass ChromiumCDMCallback interface to ChromiumCDMParent instead of ChromiumCDMProxy directly.
2. Wrap dispatching to main thread function to clean up the redundant code.

MozReview-Commit-ID: 5HxS9Fc1yr

--HG--
extra : rebase_source : ff3227b01003398d0410bdde5f43621f44d9e477
2017-09-11 12:17:36 +08:00
James Cheng 7cfecdecc8 Bug 1397123 - [Part1] Make aMessage of CDMProxy::OnSessionMessage const. r=cpearce
MozReview-Commit-ID: Bsw6s2HE02

--HG--
extra : rebase_source : e165dd24b22a06f5a7a9ebe2797136b4109a203f
2017-09-11 12:16:18 +08:00
James Cheng 9fcb294cc3 Bug 1398628 - Remove VIDEO_CDM_CREATED telemetry and the related code. r=cpearce,francois
MozReview-Commit-ID: 3xDiz9S90bY

--HG--
extra : rebase_source : 78c88ef859fbf402cb7f1c168663c63f3eb5073d
2017-09-11 11:51:12 +08:00
Bryce Van Dyk 347e311683 Bug 1378826 - Add test for removal of video tracks during recording. r=jesup
MozReview-Commit-ID: 7IGx27Z2jsN

--HG--
extra : rebase_source : a1f86dc1d73fe125ac72fc05de4af8c192704ad4
2017-08-22 15:28:00 +12:00
Samael Wang a175a57a4e Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : ce6e27c7d422f32dec858712eba5ed8011ee8039
2017-09-05 16:02:04 +08:00
Samael Wang 252b861c8b Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl

--HG--
rename : dom/indexedDB/test/bfcache_iframe1.html => dom/indexedDB/test/bfcache_page1.html
rename : dom/indexedDB/test/bfcache_iframe2.html => dom/indexedDB/test/bfcache_page2.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame.html => dom/media/webspeech/synth/test/file_bfcache_page1.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame2.html => dom/media/webspeech/synth/test/file_bfcache_page2.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe1.html => dom/workers/test/WorkerDebugger_frozen_window1.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe2.html => dom/workers/test/WorkerDebugger_frozen_window2.html
rename : dom/workers/test/suspend_iframe.html => dom/workers/test/suspend_window.html
extra : rebase_source : 59bcddcb0eaf0c335ded6df90b497f1fa97a63c0
2017-09-05 15:57:21 +08:00
JW Wang 0fd21f3cb8 Bug 1398659. P12 - remove unused MediaCacheStream::mHasHadUpdate. r=gerald
MozReview-Commit-ID: 98Nhi924Jip

--HG--
extra : rebase_source : f70d17d516f16b5959d8fd41e40f354843c02b04
extra : source : 9f4cf1dfc0a8588f96f2b1f7934ba5d9e5a4fbca
2017-09-08 15:46:53 +08:00
JW Wang 97ea54a3df Bug 1398659. P11 - replace mCacheStream.GetLength() with GetLength(). r=gerald
MozReview-Commit-ID: BGgObe2XG5C

--HG--
extra : rebase_source : a9dddd16ca071cef11a4546b5f9bc649b6e47e5b
extra : source : 100d0443ff9cab14ddc17eba13d824ff2b2bbef5
2017-09-08 14:38:22 +08:00
JW Wang ef21878fba Bug 1398659. P10 - remove ChannelMediaResource::mIgnoreClose. r=gerald
mIgnoreClose is always set in conjunction with a call to CloseChannel().
Since mListener->Revoke() will prevent future OnStopRequest() calls from coming,
it is unnecessary to set mIgnoreClose and therefore we can remove this member.

MozReview-Commit-ID: HEXIhIUG8WN

--HG--
extra : rebase_source : 656c1bb67fcddcca4c2c17b0bb783ad325ab52ec
extra : source : b852f796c1ba6a8bc442013b7b6058a24a33634b
2017-09-08 11:20:39 +08:00
JW Wang d53c2e2ba6 Bug 1398659. P9 - remove unused member. r=gerald
MozReview-Commit-ID: 5SSnbYQXxKD

--HG--
extra : rebase_source : 7470f0ee0a507a549be630c3f5471f576dfe098a
extra : intermediate-source : c173519b75dce7818b75fc901a3a9a1b844e4439
extra : source : c10cd05c569b09e209dc4ec6cc1df7564ab05309
2017-09-07 16:08:10 +08:00
JW Wang f6430f39ef Bug 1398659. P8 - remove the call to mCacheStream.NotifyDataLength() from OpenChannel(). r=gerald
MediaCacheStream::mStreamLength has been set either in Init() or InitAsClone().

MozReview-Commit-ID: L259ecDgjN7

--HG--
extra : rebase_source : 7df74d388808492faac73c3e41a972cb22cdb187
extra : intermediate-source : d834e02c15ed9361a02977349459fad079910642
extra : source : 45df347e1fd6b67d60212f2d87312d597656a7d6
2017-09-07 15:23:57 +08:00
JW Wang fff2af86d2 Bug 1398659. P7 - tighten up the assertions in OpenChannel(). r=gerald
MozReview-Commit-ID: IPCLOJKx3f3

--HG--
extra : rebase_source : 22e5114ebb2e37c1bcc39f87ea634a54745a52e7
extra : intermediate-source : a2fda2578d6e1264d7035196b8de5c1b92fc1427
extra : source : 4094121a462346abeaf3d5423cba28dd28ce080c
2017-09-07 15:15:18 +08:00
JW Wang 47cd403db0 Bug 1398659. P6 - remove the nsIStreamListener** parameter from OpenChannel(). r=gerald
The only caller is CacheClientSeek() which always passes nullptr to it.

MozReview-Commit-ID: 3CTkbF6ktp2

--HG--
extra : rebase_source : f53fe82ca0fc5e2926c4d2cf1346630098a9614f
extra : intermediate-source : a4823926a983af9293c9fe9857e39527735ea226
extra : source : 88a08faec452614217bebe80fc2b00a2b08f7f38
2017-09-07 15:12:15 +08:00
JW Wang c5630e40b2 Bug 1398659. P5 - let ChannelMediaResource::Open() set mListener without calling OpenChannel(). r=gerald
This is more efficient because aStreamListener won't be null.

MozReview-Commit-ID: 4b22l7cTK6y

--HG--
extra : rebase_source : 5e2366eaa79ccff2aacaf47d67805e3f939cc362
extra : intermediate-source : f6a6c58325085ce47e41a189d2e14239695bdaed
extra : source : 16b0c9ebdc4102fcd07d28a2c1a1a3b26d607f47
2017-09-05 17:51:22 +08:00
JW Wang 6dcbfcbee7 Bug 1398659. P4 - remove unused code and add some assertions. r=gerald
MozReview-Commit-ID: LRgF9qjdMXz

--HG--
extra : rebase_source : af8b8bb4272c9be0f0ab8b51356362e9676c7076
extra : intermediate-source : 640d38acf9d3cf4aa583c67fc20ea487c849a570
extra : source : 0faec6a6b214ce4d5ca59ac2b098d4a5bfe4470b
2017-09-05 17:39:57 +08:00
JW Wang be83fdf7b4 Bug 1398659. P3 - ChannelMediaResource::Open() is a no-op for a cloned resource. r=gerald
1. mChannel is null.
2. mCacheStream has been initialized by InitAsClone().

So ChannelMediaDecoder::Load() doesn't need to call OpenResource(nullptr) at all.

MozReview-Commit-ID: FeARp9fu65L

--HG--
extra : rebase_source : ee3ae9bfa6830ed18fea152e12da18e181870d2d
extra : intermediate-source : 6b78ae143afa325b378d7cc2cbd2e3e0bcfdfe93
extra : source : 098787b9606b70697a3b1762b35a488799995475
2017-09-05 17:35:24 +08:00
JW Wang 25d23f8eab Bug 1398659. P2 - remove the if statement since new() is infallible. r=gerald
MozReview-Commit-ID: 9GobL4M2mjc

--HG--
extra : rebase_source : d0ce65d3a3b29a6842009ac248ad71c16b458b56
extra : intermediate-source : 6003e4a7519bd844a2a265ea2afc2f26510ad4ad
extra : source : c2530f00a0eaee4e3ff58c96a87bffdf97517554
2017-09-05 17:31:09 +08:00
JW Wang b8f562f05e Bug 1398659. P1 - tighten up the assertions in InitAsClone(). r=gerald
We also make it return void since it now always succeeds.

MozReview-Commit-ID: H1oQWoguEzF

--HG--
extra : rebase_source : b5c6714832bed6fceb80c4afcdf4a590cc7dc567
extra : intermediate-source : 01aa9da848391bbf0b39f8dca874c0234f3202fb
extra : source : af04510d8603ffe407069ef342fdb4d3bca33509
2017-09-05 17:28:14 +08:00
Andreas Pehrson 3e7a54981e Bug 1360334 - Improve error handling. r=padenot
MozReview-Commit-ID: 5tIXzzisg0V

--HG--
extra : source : 0dc85355af3d166038ccf6e0fd161bd614b0ead2
2017-09-08 16:41:36 +02:00
Sebastian Hengst 3a76476175 Backed out changeset a3eabb355005 (bug 1360334) for build bustaget at dom/media/GraphDriver.cpp:200: cannot pass non-trivial object of type 'RefPtr<mozilla::GraphDriver>' to variadic function. r=backout on a CLOSED TREE 2017-09-09 18:00:49 +02:00
Andreas Pehrson 0bdbb7d2aa Bug 1360334 - Improve error handling. r=padenot 2017-09-08 16:41:36 +02:00
Alastor Wu 8c76ba6b0a Bug 1400195 - remove xp constraint for tests. r=jya
MozReview-Commit-ID: BawMiEVPNFA

--HG--
extra : rebase_source : 0f653a020a2cdfaff76c8ef2ee477e02796c646b
2017-09-16 02:14:23 +08:00
Alastor Wu 97421a2047 Bug 1398139 - part4 : enable test. r=jya
Fix the fail by patch1, so we can re-enable it.

MozReview-Commit-ID: It3JkvQzAdk

--HG--
extra : rebase_source : 5ad433012750c8f6c92b16b787e87b32ee03d7a6
2017-09-15 18:05:21 +08:00
Alastor Wu 3ec0a4b45b Bug 1398139 - part3 : check current time should be increased correctly in new chained part. r=jya
MozReview-Commit-ID: 3ctF8SAVcs9

--HG--
extra : rebase_source : 5557458d0615bf763cc9a093c0a5dfaefbfc377c
2017-09-15 18:05:18 +08:00
Alastor Wu a08c8019d2 Bug 1398139 - part2 : adjust sample's start time for chained ogg. r=jya
For chained ogg files, the new part would contain new timestamp from zero, so
we need to add the duration of previously decoded data to make sure the current
time is correct.

MozReview-Commit-ID: Bb1lCiKz4uQ

--HG--
extra : rebase_source : 5cfd81eb092a042e6394aa5209516ad75e741a37
2017-09-15 18:05:10 +08:00
Alastor Wu f2df60108c Bug 1398139 - part1 : revert the changing of bug 1386478. r=jwwang
This changing causes the resampling rate tolerance so that the ME.current time
might not be the same as ME.duration depending on the different resampling rate.

MozReview-Commit-ID: H2dpyw5Bghv

--HG--
extra : rebase_source : 850efb46c7980ec4234e239e38bc7dbb233cd573
2017-09-15 17:07:08 +08:00
Chris Manchester fab07bc443 Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0

--HG--
extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
2017-05-01 18:12:35 -07:00
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Jean-Yves Avenard 4de97bd6f6 Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA

--HG--
extra : rebase_source : dcfb26420f2aa2b3b8972f2a9ad35a141b37e74a
2017-09-06 17:02:21 +02:00
Wes Kocher 4d3b3a806c Backed out 6 changesets (bug 1392143) for lint failures in SanityTest.js a=backout
Backed out changeset 5e167360b1f9 (bug 1392143)
Backed out changeset c1fcfceeefae (bug 1392143)
Backed out changeset 5220b19f1fc0 (bug 1392143)
Backed out changeset ff3a335e7111 (bug 1392143)
Backed out changeset b1627a3a5d77 (bug 1392143)
Backed out changeset 40e16e34df00 (bug 1392143)

MozReview-Commit-ID: KWifvOL8d9s
2017-09-07 16:17:11 -07:00
Jean-Yves Avenard 4c2d89a946 Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA

--HG--
extra : rebase_source : da34be08b67716ebb84f249ead571cc171d8d2f7
2017-09-06 17:02:21 +02:00
Sebastian Hengst de667b9463 Backed out changeset d89fe870c4a8 (bug 1364364)
--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-07 16:49:28 +02:00
Sebastian Hengst e32d31055b Backed out changeset 0458fccefb5c (bug 1364364) 2017-09-07 16:49:22 +02:00
Samael Wang 593ae22cd9 Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq

--HG--
extra : rebase_source : 5dcc252160694a72e30ae41689f173cc0886edd6
2017-09-05 16:02:04 +08:00
Samael Wang c1f17dd82a Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl

--HG--
rename : dom/indexedDB/test/bfcache_iframe1.html => dom/indexedDB/test/bfcache_page1.html
rename : dom/indexedDB/test/bfcache_iframe2.html => dom/indexedDB/test/bfcache_page2.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame.html => dom/media/webspeech/synth/test/file_bfcache_page1.html
rename : dom/media/webspeech/synth/test/file_bfcache_frame2.html => dom/media/webspeech/synth/test/file_bfcache_page2.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe1.html => dom/workers/test/WorkerDebugger_frozen_window1.html
rename : dom/workers/test/WorkerDebugger_frozen_iframe2.html => dom/workers/test/WorkerDebugger_frozen_window2.html
rename : dom/workers/test/suspend_iframe.html => dom/workers/test/suspend_window.html
extra : rebase_source : 59bcddcb0eaf0c335ded6df90b497f1fa97a63c0
2017-09-05 15:57:21 +08:00
Sebastian Hengst 544909dd55 Backed out changeset acf2ccf34d75 (bug 1392143) 2017-09-07 14:51:01 +02:00
Sebastian Hengst 6b5abf8cab merge mozilla-central to autoland. r=merge 2017-09-07 12:40:32 +02:00
Sebastian Hengst 8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
JW Wang ac6ee9f873 Bug 1395802. P4 - we don't need lock since mChannelStatistics is always accessed on the main thread. r=cpearce
MozReview-Commit-ID: KHnhPaSTSFr

--HG--
extra : rebase_source : 0129e5d729f2ed6f5ed8b9f1c4e89b128c9f6868
extra : intermediate-source : 8c093999ba40f7ce48dc3c3cc0d10117b710868a
extra : source : b5b2a5d89b2aa25ee644e8ea3c06804d2c63cdba
2017-09-01 14:32:00 +08:00
JW Wang d3f14ac69d Bug 1395802. P3 - ensure mChannelStatistics.AddBytes() to happen on the main thread. r=cpearce
MozReview-Commit-ID: CbDl9mWZDFs

--HG--
extra : rebase_source : 6f66f540146ea7ff43543f66d4f7c450c98d7a68
extra : intermediate-source : 1834aa47f8ff342e36a1fe4e8f73c7a0aa1906c6
extra : source : de6706f3fcd29ca81254e9b20f391cc28bc3a57a
2017-09-01 14:28:06 +08:00
JW Wang 959a1c210a Bug 1395802. P2 - assert ChannelMediaResource::GetDownloadRate() runs on the main thread. r=cpearce
The only caller is ChannelMediaDecoder::GetStatistics() which runs on the main thread.

MozReview-Commit-ID: CYg3Z3rmlHd

--HG--
extra : rebase_source : c3bf0083522256a6c4f3e83bc817ee7d0ce398bf
extra : intermediate-source : 12bad420f0f3eb9a3993fada2f919d61f60ad392
extra : source : 6044445039445631bbb6cd66607b6f7f72547f18
2017-09-01 14:19:51 +08:00
JW Wang 7183d8c7c6 Bug 1395802. P1 - add AbstractMainThread() to MediaResourceCallback. r=cpearce
This is required by P3 to preserve the ordering. E.g. we want
mChannelStatistics.AddBytes() to happen before the new data is consumed
by the decoder and is made observable to the main thread. Using
SystemGroup::Dispatch() won't guarantee the ordering.

MozReview-Commit-ID: 7MP0CzTGpOs

--HG--
extra : rebase_source : 1161b7c713f57625f38b70714bb8684c2edecb2a
extra : source : 22b362b56f218acb70cc7ce3c0fd0ea113563681
2017-09-06 15:12:34 +08:00
Wes Kocher a14d71906d Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJ4WkYrJ9g6
2017-09-06 17:24:48 -07:00
Jean-Yves Avenard f7197c027f Bug 1392143 - P2. Disable hardware decoding for small videos. r=mattwoodrow
As the H264 SanityTest uses a 132x132 videos to determine if the hardware decoder is working, we always use the software decoder for smaller videos.

MozReview-Commit-ID: 8VbZTiJO9mA

--HG--
extra : rebase_source : 20cf3ae8bf62709711ac0e76e348c6e28d678025
2017-09-06 17:02:21 +02:00
JW Wang 407e3c1e2a Bug 1395842 - tighten up assertions in ChannelSuspendAgent which runs on the main thread only. r=alwu
MozReview-Commit-ID: AK3YHAz750D

--HG--
extra : rebase_source : d555164f54c3498d29b1ad408ce8f18b22497653
extra : source : acd6401380d82101d8e4b650730b49bf126bb80b
2017-09-01 15:44:38 +08:00
Phil Ringnalda c0f8dd917a Backed out 3 changesets (bug 1395017) for frequent failures in test_video_crossorigin.html
Backed out changeset 438657f4637d (bug 1395017)
Backed out changeset 243ef641e6c3 (bug 1395017)
Backed out changeset 78625f947f69 (bug 1395017)

MozReview-Commit-ID: DeBaUOPQrAD
2017-09-05 22:39:50 -07:00
Alastor Wu a1171573f0 Bug 1396547 - use Supports() in PDMFactory::CreateDecoder() instread of SupportsMimeType(). r=jya
The TrackInfo [1] created in WMFDecoderModule::SupportsMimeType() doesn't contain valid image's width and height, because the TrackInfo is created without width and height [2] and the default width and height are both -1 [3].

Thesefore, we can't correctly check whether this resolution is supported by MFT [4]. We should use Supports() instead of SupportsMimeType().

[1] https://goo.gl/QV8Jgm
[2] https://goo.gl/4siShn
[3] https://goo.gl/BDoXYf
[4] https://goo.gl/BZh4QA

MozReview-Commit-ID: 4dIJ84eaytq

--HG--
extra : rebase_source : 1ac63d25d3c7473f9bfd595432273460649a26f1
2017-09-04 18:50:23 +08:00