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

12357 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 8d0319bfa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gu7wIBFJOqe
2017-10-21 00:05:19 +02:00
Andreas Pehrson b46de63fa2 Bug 1403186 - Add guards and sanity checks for Activated vs Stopped state. r=jib
MozReview-Commit-ID: 8Rdm3I0Z4SP

--HG--
extra : rebase_source : eccb161b3378961c0a4e01f809a1ac957ae32338
2017-10-02 15:13:15 +02:00
Andreas Pehrson 47611af5a5 Bug 1403186 - Don't call NotifyFinished if not activated. r=jib
MozReview-Commit-ID: JTUIXhK6mfi

--HG--
extra : rebase_source : 8158cf363516013a7dce35a6271dac75ac444ed3
2017-10-03 11:52:18 +02:00
bechen@mozilla.com c09e4a8ee9 Bug 1183495 - part3: Remove mozSrcObject usage. r=jwwang
MozReview-Commit-ID: Gtpne3O0pBQ

--HG--
extra : rebase_source : 87544aa023e5ac079a8ae02de77e2aeab91e97cf
2017-10-20 11:23:41 +08:00
Masatoshi Kimura dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
James Cheng 9406b5b8a2 Bug 1410689 - Early return before creating ChromiumCDM8BackwardsCompat to avoid leak. r=gerald
MozReview-Commit-ID: JQtJxBgzSFC

--HG--
extra : rebase_source : 3fb457062d773f1b44d3bc3bb7051a494e12a787
2017-10-23 11:29:58 +08:00
Tyson Smith 3b3d19504e Bug 1393272 - Add crashtest. r=me
--HG--
extra : rebase_source : 563170306adaadf247f761fb89c18ae91142c856
2017-10-20 08:36:12 -04:00
Paul Adenot e2b0ed260c Bug 1409391 - Remove raw yuv tests and test vectors. r=cpearce
MozReview-Commit-ID: D8TIw6SKgPz

--HG--
extra : rebase_source : 267b7c2bd102a4e37223b279008761a44294073e
2017-10-18 15:47:09 +02:00
James Cheng bcfbcfbc4a Bug 1410022 - Remove redundant PDM::Supports check caused by bug 1407919 part6. r=gerald
MozReview-Commit-ID: EoAARcmhjlV

--HG--
extra : rebase_source : 560d91e004f0787278e7e3181e58c953c27368e5
2017-10-19 18:03:09 +08:00
Sebastian Hengst ac57f6f7df merge mozilla-central to autoland. r=merge a=merge 2017-10-19 11:52:58 +02:00
Matthew Gregan 1e76a370ab Bug 1407487 - P3: Exclude Android when enabling cubeb-remoting. r=kamidphish
MozReview-Commit-ID: 1bi07WmNqgb
2017-10-19 18:02:54 +13:00
Dan Glastonbury dbd544f296 Bug 1407487 - P1: Remove --enable-cubeb-remoting. r=kinetik,rillian
Replace with conditional compilation enabled for Linux targets.

MozReview-Commit-ID: GjD0Ix8aeJW
2017-10-19 18:02:50 +13:00
Ryan VanderMeulen cb612851ed Merge inbound to m-c. a=merge 2017-10-18 21:01:34 -04:00
Alex Gaynor 279b3dd5ce Bug 1409747 - fixed compilation on macOS with the sandbox disabled; r=haik
MozReview-Commit-ID: F9lNO8OPKS4

--HG--
extra : rebase_source : dbf7e1858f712182bab5c85fbd70b5b4293c5db5
2017-10-18 10:27:34 -04:00
Bob Clary 012a6c1870 Bug 1409365 - disable dom/media/test/crashtests/1180881.html on Android 5.0, r=gbrown 2017-10-18 14:46:15 -07:00
James Cheng 6512232414 Bug 1407919 - Part7 - Check bit depth in PDM::Supports. r=gerald,jya
MozReview-Commit-ID: ATW9sZeDCTu

--HG--
extra : rebase_source : d4df293dee735548aa8174e1158b7a87c51c3bec
2017-10-17 01:04:37 +08:00
James Cheng 638d7ea11b Bug 1407919 - Part6 - Check bit depth in WebMDecoder to determine if we support HDR. r=gerald
MozReview-Commit-ID: Jq569mlINNh

--HG--
extra : rebase_source : 57a352d9e621fc9a204f8865784332ec9aab96a5
2017-10-17 15:45:09 +08:00
James Cheng fe306cda12 Bug 1407919 - Part5 - Extract bit depth information from codec parameter string into VideoInfo::mBitDepth. r=jya
MozReview-Commit-ID: GUwSrpbhOxA

--HG--
extra : rebase_source : 2efbf5f6cb61b99059b2d7ae05676af72266d2c2
2017-10-17 11:20:44 +08:00
James Cheng 0052736720 Bug 1407919 - Part4 - Add mBitDepth field into VideoInfo. r=jya
MozReview-Commit-ID: GfQndec1cyB

--HG--
extra : rebase_source : 86f940b5e4a9497fa51dc16c3bbe813698b260bf
2017-10-17 11:17:23 +08:00
James Cheng ed18e57446 Bug 1407919 - Part3 - Add a gtest for testing the extraction function. r=gerald
MozReview-Commit-ID: 7CocV0rLtk7

--HG--
extra : rebase_source : 5fd1ac5e5623b2e4637b0e78541582432a87ac44
2017-10-13 21:17:35 +08:00
James Cheng b40f82f1ce Bug 1407919 - Part2 - Use the helper function to tell if it is a vp8/9 codec string. r=gerald
MozReview-Commit-ID: G0AKSExgm3R

--HG--
extra : rebase_source : 252395963f0f0f9d8d853e83e5cfa4b1f7fc3948
2017-10-13 14:18:29 +08:00
James Cheng 86e88e8319 Bug 1407919 - Part1 - Add an extraction function to parse the RFC-6381 VP9 codec string. r=gerald,jya
MozReview-Commit-ID: Ii0L4IPtzJJ

--HG--
extra : rebase_source : 9d1780e76908095a234a4eed13e792d75a714596
2017-10-13 13:55:05 +08:00
Jesse Ruderman 8a71e39fe1 Bug 497734 - Add crashtests. r=me 2017-10-18 09:43:11 -04:00
Sebastian Hengst f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Phil Ringnalda cf776f840e Backed out 2 changesets (bug 1407487) for Android and hazard build bustage and Linux webspeech test timeouts
CLOSED TREE

Backed out changeset 806976ac38b8 (bug 1407487)
Backed out changeset 0ff7dc9aebd9 (bug 1407487)

MozReview-Commit-ID: HLDEXTRvG7l
2017-10-17 19:49:43 -07:00
Sebastian Hengst f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst 34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Bob Clary c0eb52d90b Bug 1409203 - disable dom/media/tests/mochitest/test_peerConnection_videoCodecs.html on Android, r=gbrown 2017-10-17 07:20:40 -07:00
Randell Jesup 6ccd0752b4 Bug 1407680: Set DelayAgnostic and ExtendedFilter options r=dminor
This was lost due to API changes in the update to upstream v57
2017-10-17 16:27:20 -04:00
Boris Zbarsky fb684cc726 Bug 1409152. Add an nsTArray::ContainsSorted method. r=froydnj 2017-10-17 15:39:59 -04:00
Alastor Wu c8a9b504ed Bug 1408987 - Part 2: Make mManager thread-safe. r=jya
mManager would be accessed in both main thread and task queue, and be set on task
queue, so we need to make sure it's thread-safe.

MozReview-Commit-ID: m76KeEsDgB
2017-10-17 16:53:54 +08:00
Alastor Wu bbdf374f35 Bug 1408987 - Part 1: Add OnTaskQueue() assertion to clarify functions' running thread. r=jya
MozReview-Commit-ID: 36sqB5SlOd
2017-10-17 15:58:44 +08:00
Dan Minor 1d0e9fe0b4 Bug 1404250 - Ensure that target bitrate is between minimum and maximum bitrates in VideoConduit; r=pehrsons
MozReview-Commit-ID: Am19abfrETx

--HG--
extra : rebase_source : 7906e80ab0a07cc5ffb7940a4f362b709a4bacbc
2017-10-10 10:43:09 -04:00
Alastor Wu def6113401 Bug 1409274 - remove the lock for SourceBufferTaskQueue. r=jya
It would only be accessed on task queue now, so we don't need to lock it.

MozReview-Commit-ID: 6jd36TQW4aA

--HG--
extra : rebase_source : e8bb53a226154312496149ab8f6b00dead49a3b6
2017-10-17 15:46:26 +08:00
Sebastian Hengst 32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
JW Wang ee83cd683f Bug 1400674 - fix the algorithm of filling audio gaps with silence. r=jya
MozReview-Commit-ID: Hjsboq6PdlN

--HG--
extra : rebase_source : b92dbbe184563b71bb9cfc541a310ae60d41d68d
2017-10-13 17:24:24 +08:00
Ethan Lin f585fef0f1 Bug 1408296 - Enable some crashtests for webrender. r=kats
MozReview-Commit-ID: 543ZYLhacx8

--HG--
extra : rebase_source : 247ddffeba52e7a7fbe864c2644be66b164ceb24
2017-10-13 11:56:04 +08:00
Chris Pearce 2ba329dae6 Bug 1409178 - Move DecoderTraits::CreateDecoder() to ChannelMediaDecoder::Create(). r=jwwang
Now DecoderTraits doesn't need to depend on ChannelMediaDecoder.

MozReview-Commit-ID: D4AUiV2eGWy

--HG--
extra : rebase_source : 38e6c4cdd0f7e32473c6945550bca6fd0cc72bf2
2017-10-16 22:55:26 +02:00
Chris Pearce 48475f5f0b Bug 1409178 - Merge InstantiateDecoder and DecoderTraits::CreateDecoder. r=jwwang
CreateDecoder is the only caller of InstantiateDecoder, and all CreateDecoder
does is call InstantiateDecoder.

MozReview-Commit-ID: KwwL2el8L4x

--HG--
extra : rebase_source : bff225558fd2de535c2cb010eb35b95c6d9469e5
2017-10-16 22:42:32 +02:00
Chris Pearce eb61536947 Bug 1409178 - Remove MediaDecoder::InitStatics() since it's a no-op. r=jwwang
MozReview-Commit-ID: Leo5wNaxpjg

--HG--
extra : rebase_source : 2555c7dc26ca6867e79322bd572085a0cdfeb3b2
2017-10-16 22:39:02 +02:00
Chris Pearce 1d354be8e8 Bug 1409060 - Don't include necko-config.h in MediaDecoder.h. r=jwwang
MozReview-Commit-ID: 2RmqxUayD0L

--HG--
extra : rebase_source : ac868ce7df6a308a9005ce89c725616006c666ba
2017-10-16 17:54:18 +02:00
bechen@mozilla.com fbee889f6c Bug 1408693 - Add a lock to protect the sGPUCrashDataMap. r=jwwang
MozReview-Commit-ID: 7NDcoGMkKZ3

--HG--
extra : rebase_source : 206af0de83a1fb4fb5258202a25de8484a9e2bef
2017-10-16 14:03:04 +08:00
Kris Maglione 60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Andreas Pehrson 784074488d Bug 1407842 - Wrap fullscreen api calls with SpecialPowers. r=jib
MozReview-Commit-ID: 9bCO80q2sJB

--HG--
extra : rebase_source : d2bc481190e78c4876f4058f531b582df705e809
2017-10-12 11:38:27 +02:00
Dan Glastonbury 3490136c59 Bug 1407487 - P1: Remove --enable-cubeb-remoting. r=kinetik,rillian
Replace with conditional compilation enabled for Linux targets.

MozReview-Commit-ID: GjD0Ix8aeJW

--HG--
extra : rebase_source : 18dd93eda0a9ebc1846a876caa4f5d27d8b75909
2017-10-12 10:32:29 +10:00
Sebastian Hengst fea24c0daf merge mozilla-central to autoland. r=merge a=merge
--HG--
extra : rebase_source : 819bdfcc5e3f50cb5a3d8d76ce1f88ceeb0dd5a9
2017-10-17 23:54:52 +02:00
Ralph Giles 1809099a2f Bug 1409105 - Downsample av1 images unconditionally. r=kinetik
Adding partial support for 10/12-bit video images seems to have
broken the native pixel-stride support we were using to pass
8-bit AV1 frame data formatted in 16-bit pixel values, resulting
in vertical green lines.

Revert to the earlier behaviour of always downsampling to 8 bit data.
This is slower for the demo stream, but at least displays correctly.

MozReview-Commit-ID: 8kSd9kph9DE

--HG--
extra : rebase_source : 040795b4d99a2001397c0021f34d39535aa4aa2d
2017-10-17 12:24:50 -07:00
Sebastian Hengst ffcd2ce160 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ef359be373a97cad5a91f0150a46add4c3d8ab7c
2017-10-18 15:54:23 +02:00
Jean-Yves Avenard 38b456068a Bug 1409272 - P2. Pre-roll vorbis by 80ms when seeking. r=gerald
The value by which we pre-roll is inconsequential, so long as we seek to the previous packet than the one we want. So 80ms will do.

MozReview-Commit-ID: 8iPOtjReZnb

--HG--
extra : rebase_source : 42908c6afc84cf783356fb7311ffe99b4ec76d96
2017-10-17 16:07:26 +02:00
Jean-Yves Avenard 85eb08473d Bug 1409272 - P1: Remove unnecessary and/or unused variables. r=jwwang
MozReview-Commit-ID: J9qiqEfU05N

--HG--
extra : rebase_source : 1cd492bc252b19598115c03165e034faced12ffd
2017-10-12 19:07:09 +02:00
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Randell Jesup 336209d98d Bug 1408716: Remove unneeded dynamic_cast r=drno 2017-10-15 07:47:14 -04:00
Chung-Sheng Fu 6eb3e9c2c9 Bug 967895 - Ask for placeholder data when image extraction is not allowed (Tor 6253). r=jrmuizel
MozReview-Commit-ID: AJ5F6M5S83U

--HG--
extra : rebase_source : 894b16575ebbccc26c5b639d7526cb473501d9d2
2017-08-22 14:23:41 +08:00
Kilik Kuo 58868278cc Bug 1393272 - Use original width and height if either the scaled width or height is 0. r=jya
MozReview-Commit-ID: 3y4c5zJZD0a

--HG--
extra : rebase_source : ec0d168f544be8dea1cbf63d9b2c253ea139286c
2017-10-12 16:40:50 +08:00
Jean-Yves Avenard e891f573a5 Bug 1407940 - P2. Only ever access mTaskQueue in a thread-safe fashion. r=alwu,gerald
mTaskQueue is only read on the main thread, but read and written on the demuxer's taskqueue. We need to ensure that accesses are synchronised.

MozReview-Commit-ID: Gbc15iYgZOe

--HG--
extra : rebase_source : 006ff3f73c9895fa2f29e56123e690cdf66fe2c5
2017-10-12 13:30:47 +02:00
Jean-Yves Avenard 51e48cb035 Bug 1407940 - P1. Use Mutex in place of Monitor. r=gerald
MozReview-Commit-ID: Dy2WhS0YOq1

--HG--
extra : rebase_source : 9ce10f7c7c811d0f73ef39a6439cac92686f9793
2017-10-12 11:15:20 +02:00
Ryan VanderMeulen cc54a93021 Bug 1257700 - Add crashtest. r=me 2017-10-12 22:41:13 -04:00
Gerald Squelart ae565b2faa Bug 1407917 - Simplify DDLogger string-logging functions - r=jwwang
Removed non-eager DDLogValue() functions, too confusing for not much value;
users should use macros first anyway.

Changed `EagerLogValue(..., const char (&aLiteral)[N])` to take `const char*`,
it's cleaner and simpler.


MozReview-Commit-ID: J7xcoPkp6Nf

--HG--
extra : rebase_source : 41040c98b89c3035c823a4a9775e727038c07590
2017-10-12 17:51:41 +11:00
Alastor Wu b8237a2029 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : ecce8ac75587470c15268ab729b068f049702a8a
2017-10-12 10:49:25 +08:00
Alastor Wu b4c4772190 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 9e455022ba9360fb549222e9ad1238a3ae9d88ad
2017-10-12 10:49:21 +08:00
Alastor Wu 023e34cbe4 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : 0d20f1b8648acaf2ed8e75b2631e905629c2abaf
2017-10-12 10:49:10 +08:00
Alastor Wu 5a164c7e06 Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu d9f5f478d9 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Gerald Squelart 6e866f3624 Bug 1407909 - Rename DDLogClass to DDLogCategory - r=jwwang
MozReview-Commit-ID: GOTQnNM3MrV

--HG--
rename : dom/media/doctor/DDLogClass.cpp => dom/media/doctor/DDLogCategory.cpp
rename : dom/media/doctor/DDLogClass.h => dom/media/doctor/DDLogCategory.h
extra : rebase_source : 6275018142832a46c3ad145dd5f0edbc00501cc2
2017-10-12 16:15:35 +11:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Tom Ritter 701ee70a22 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : fe434db73a8da686391462c12b91648348abcdc9
2017-10-09 15:01:48 -05:00
Sebastian Hengst 0ed8d9a86e Backed out changeset 26e324eb052d (bug 1247189) for crashing in /media-source/mediasource-errors.html. r=backout
--HG--
extra : amend_source : 39152d1a0836f9f1e22cc4cc6a0a759f4258e81b
2017-10-11 12:45:50 +02:00
Sebastian Hengst 953fafcc3c Backed out changeset 5b9af87e76a9 (bug 1247189) 2017-10-11 12:45:45 +02:00
Sebastian Hengst 6479b83569 Backed out changeset 36a63b9f8dcb (bug 1247189) 2017-10-11 12:45:40 +02:00
Sebastian Hengst ebb7218fe9 Backed out changeset 85d236f46b00 (bug 1247189) 2017-10-11 12:45:34 +02:00
Sebastian Hengst e80bd4f030 Backed out changeset 9be5bbb35797 (bug 1247189) 2017-10-11 12:45:29 +02:00
Sebastian Hengst 57b7c19650 merge mozilla-central to autoland. r=merge a=merge 2017-10-11 11:51:32 +02:00
Sebastian Hengst ed86a2c11f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AgDEPuT8DNK
2017-10-11 11:41:04 +02:00
Sebastian Hengst 044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
JW Wang 1a47dd3c0c Bug 1397708 - remove HTMLMediaElement::mBegun. See comment 12 for the root cause. r=cpearce
When network state is changed to IDLE, mBegun is also set to false. [1]
And then when HTMLMediaElement::DownloadResumed(false) is called, network
state is not changed to LOADING for mBegun is false [2]. This prevents us
from firing 'progress' events for the network state is IDLE.

See comment 12 for more details.

[1] http://searchfox.org/mozilla-central/rev/b53e29293c9e9a2905f4849f4e3c415e2013f0cb/dom/html/HTMLMediaElement.cpp#6077
[2] http://searchfox.org/mozilla-central/rev/b53e29293c9e9a2905f4849f4e3c415e2013f0cb/dom/html/HTMLMediaElement.cpp#5673

MozReview-Commit-ID: DOfqKZXAqaz

--HG--
extra : rebase_source : 881b632447d4a78461c235fffad37595f44cc095
extra : source : 2c01d77d3a7e605bf060e17d41afa86ee0f46396
2017-10-10 07:04:18 +08:00
JW Wang acb1219279 Bug 1406821 - improve error logging to facilitate debugging mochitest timeouts in OPT builds. r=kinetik
MozReview-Commit-ID: KTmGRueZkxF

--HG--
extra : rebase_source : f6eb1fcdf9cda7cb6b9e8610c567451111386686
extra : intermediate-source : f06e68706b55b602ccb650641da8186bf74ad1a3
extra : source : 1ad5c0d65ecc4875bd5dc388606bf42e363f9353
2017-10-09 10:18:37 +08:00
Jean-Yves Avenard d34a7ebdc5 Bug 1407243 - Don't immediately fire canplaythrough for infinite/live streams. r=jwwang
MozReview-Commit-ID: 2LQFa8PHvO5

--HG--
extra : rebase_source : 3534a963202658870221fca9cc238185d7e55156
2017-10-10 16:14:24 +02:00
James Cheng 019e9610a0 Bug 1407523 - Add more detailed message when GetCDM failed. r=cpearce
MozReview-Commit-ID: qEpvjyc6bY

--HG--
extra : rebase_source : 09e0579a76362d409749daf9b53e6a21da3818e3
2017-10-11 14:04:16 +08:00
Alastor Wu 8ef6776c31 Bug 1247189 - part5 : use IsCurrentThreadIn() as a main criteria to determine whether we're on the task queue or not. r=jya
The use of the TrackBuffersManager once detached is explictly forbidden, as such
OnTaskQueue() can only be used before the DetachTask ran: we now strongly assert
as such.

MozReview-Commit-ID: ycOI4QRElb

--HG--
extra : rebase_source : 44ea3d0eb292e5c285d0aa4e10eefa41f20beed7
2017-10-11 16:12:13 +08:00
Alastor Wu f519e79462 Bug 1247189 - part4 : ensure we always detach TBM from demuxers. r=jya
Ensure the TBM would always be detached from demuxers, before calling
TBM::detach().

MozReview-Commit-ID: DLWZHB3M3GG

--HG--
extra : rebase_source : 0334b71534cfaccaf1d8985d827fe4e5d5bf0e9f
2017-10-11 11:01:08 +08:00
Alastor Wu a4ae0238e3 Bug 1247189 - part3 : don't process any task after detached. r=jya
From [1], the task was executed after finished detach task. It would be caused
by queuing two detach tasks in the task queue.

If the previous detach task is still waiting in the task queue when we're calling
the second detach(), then we might have two detach tasks in the queue.

[1] https://treeherder.mozilla.org/logviewer.html#?job_id=134315866&repo=try&lineNumber=2540

MozReview-Commit-ID: HohgKqeZy0s

--HG--
extra : rebase_source : b1dc3193d839ef3776195901339fae24f328207b
2017-10-11 11:00:57 +08:00
Alastor Wu afaf8c616f Bug 1247189 - part2 : remove reference to TrackBuffersManagers once detached. r=jya
Should never access the TrackBuffersManager once the SourceBuffer has been detached.

MozReview-Commit-ID: EgVINj9B1vZ

--HG--
extra : rebase_source : 4b4dc3e5c4b507fe4cc40e80f507b575a8b87eb3
2017-10-11 10:55:21 +08:00
Alastor Wu e750a6aff2 Bug 1247189 - part1 : should detach TBM after detaching it from demuxers. r=jya
After detaching TBM, we should not access it anymore. So we should finish all
other related detaching process, before detaching TBM.

MozReview-Commit-ID: 8bNzqXVHVyy

--HG--
extra : rebase_source : e135eb3d0fd4e5c41bbac4ebfc8d6fcbd1b32d5b
2017-10-11 10:49:05 +08:00
Jan-Ivar Bruaroey 6a80cdfeb9 Bug 1406988 - Assert MediaManager invariant where applicable, and check for existence everywhere else. r=pehrsons
MozReview-Commit-ID: KfGP96IE17G

--HG--
extra : rebase_source : d03aeea5f8809b07d2172ee706a616b863526505
2017-09-29 15:06:51 -04:00
Andreas Pehrson 2acc2e8b7e Bug 1406027 - Always use the mixer so AudioCallbackDriver can track processed samples. r=padenot
This is unnecessary work but simpler than adding a path to, or refactoring, AudioCallbackDriver::DataCallback.

MozReview-Commit-ID: GLNoBqxEuwz

--HG--
extra : rebase_source : b5ef6b2e1506e68d41b22ad557968d70214fbd9f
2017-10-06 12:42:11 +02:00
Karl Tomlinson 449d985d8e bug 1406831 don't tolerate just owning the monitor if AssertOnGraphThreadOrNotRunning() is not called on the correct thread r=pehrsons
Owning the monitor is not sufficient for consistent state if state can be
accessed without the monitor.

The requirements for SetCurrentDriver() are tighted to require both the
monitor and correct thread, as CurrentDriver() can be called either with the
monitor or on the graph thread.

MozReview-Commit-ID: 90q7Pfa8jxn

--HG--
extra : rebase_source : 6cbcc334dc2bd355d2e9afdebda45a9624edda4b
2017-09-28 15:30:48 +13:00
Karl Tomlinson 4bd4041ca0 bug 1406831 tighten AssertOnGraphThreadOrNotRunning() to not accept graph thread after mDetectedNotRunning r=pehrsons
This also permits setting mDriver to null after mDetectedNotRunning, which is
useful for fixing bug 1406830.

MozReview-Commit-ID: EEgAxqPQPRI

--HG--
extra : rebase_source : 56e1583a0090e683e92463536637d0f1460cb727
2017-09-28 12:17:22 +13:00
Karl Tomlinson b6f526449e bug 1406831 simplify AssertOnGraphThreadOrNotRunning() r=pehrsons
mLifecycleState is always > LIFECYCLE_RUNNING when mDetectedNotRunning

MozReview-Commit-ID: Ds6ybTv4miA

--HG--
extra : rebase_source : 71aea6693026dc919ea6d2096f55152ae12bc58e
2017-09-28 12:10:59 +13:00
Sebastian Hengst ca5a50735f merge mozilla-central to autoland. r=merge a=merge 2017-10-10 06:17:48 -03:00
Sebastian Hengst 1a4a26905f merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Jean-Yves Avenard 0de5aed9f7 Bug 1405110 - P2. Never attempts to upload to D3D11 surface in parent process. r=mattwoodrow
Accessing the graphic device driver from the parent process, should the drivers crash have serious consequences (the whole browser dies).

MozReview-Commit-ID: EXXRBnDobQw

--HG--
extra : rebase_source : d5609f1e088c7bbe92d6e46e66e1fb5538d5caac
2017-10-09 11:10:18 +02:00
Karl Tomlinson 3a143e4a1f bug 1404220 assign zero to AUDIO_FORMAT_SILENCE enumerator r=padenot
I don't know whether or not another zero initial AudioChunk member value
makes initialization more efficient, but zero for silence is more intuitive
for humans.

MozReview-Commit-ID: JEYv65btMul

--HG--
extra : rebase_source : 3089362ce4773da91c7139a3127e1491cbcf1dc5
2017-10-09 15:48:49 +13:00
Karl Tomlinson 5ea2376fe3 bug 1404220 remove explicit unit volume AudioChunk settings, which are now initialized at construction r=padenot
MozReview-Commit-ID: EahkZtZAb18

--HG--
extra : rebase_source : 15e82320ed6712ebc642deabac9dc1e766c01836
2017-10-06 18:48:12 +13:00
Karl Tomlinson 03ead4bc67 bug 1404220 reset mBufferFormat (and mVolume) when resetting mSharedChannels r=padenot
MozReview-Commit-ID: BP4fJLarEyE

--HG--
extra : rebase_source : 3d1e7550267c4e284aafb869015f63ae3d918e51
2017-10-09 16:56:55 +13:00
Karl Tomlinson f3b25c6e88 bug 1404220 provide default initializers for all AudioChunk members r=padenot
This avoids any risk of undefined behavior when evaluating uninitialized
members, during copies for example, and makes it safe to test mBufferFormat
when null.

MozReview-Commit-ID: IMAyZ1CSHbk

--HG--
extra : rebase_source : b02431634732cf63d6fe9ede5eb1400a2baa6308
2017-10-06 18:28:11 +13:00
Sebastian Hengst aa7c8d6587 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-09 23:58:00 +02:00
Joel Maher 5f7217fd0d Bug 1403307 - Disable dom/media/test/test_mediarecorder_pause_resume_video.html on debug for frequent failures. r=me, a=test-only 2017-10-09 15:44:29 -04:00
Sebastian Hengst 92ee8df522 Backed out changeset 71790f0ea832 (bug 967895) 2017-10-09 19:18:12 +02:00
Sebastian Hengst aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote 8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Sebastian Hengst b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Alex Chronopoulos 643923ac4c Bug 1400889 - Keep constant output channels in MediaStreamGraph. r=padenot
MozReview-Commit-ID: JlQdxU0aNOf

--HG--
extra : rebase_source : 25b6f223c2158a4eb9175731cdbb8521de4ce312
2017-10-03 17:56:53 +03:00
John Lin 00a6c9045b Bug 1403849 - p3: add telemetry to record tunneled playback support. r=francois,jya
MozReview-Commit-ID: 52HCnvYT56P

--HG--
extra : rebase_source : f2b3b390e326328b90cce2dfc659972fed7ed02e
2017-09-29 18:12:09 +08:00
JW Wang e1a489f570 Bug 1405962. P2 - use thread-safe ref counting. r=gerald
These listeners will be AddRefed/Released off the main thread when
OMT data delivery is enabled.

MozReview-Commit-ID: CSOBgNNf3OW

--HG--
extra : rebase_source : d9085c6447e51d3aa9cad79fa1e25d986fdee792
extra : intermediate-source : 21be6f0003e6d3ccf4448e6574ea5d3122665155
extra : source : 8ce13766af359b5e55524e47ea74bcfc0e0133f8
2017-09-20 17:14:01 +08:00
JW Wang b2cbe2833f Bug 1405962. P1 - give MediaCache a thread on which we will run data callbacks from the HTTP channel. r=gerald
MozReview-Commit-ID: Av7bFGx9SW

--HG--
extra : rebase_source : 296a6137ee63328e11eb11a8ee3430979cf8e5a8
extra : intermediate-source : 9634a9cd63e188799fe691cfe7108a173db503d5
extra : source : 43860a593eb810088adac150c0fa85cf8133ce17
2017-09-13 16:51:12 +08:00
Chris Pearce fe9919cbfa Bug 1405697 - Move MediaPrefs include from MediaResource.h into cpp file. r=jwwang
This moves the include into the file where it's used, and means I don't need
to import it into gecko-media crate yet.


MozReview-Commit-ID: JnEgtwnLxgO

--HG--
extra : rebase_source : 84f9b98e3c64dc1a337a12b714fd4c8bc45429a1
extra : source : 396e995935c6ada2a069c56cd1ede3c9ef418f31
2017-10-05 09:27:15 +02:00
Chris Pearce 0a258eeace Bug 1405697 - Move MediaResourceIndex implementation to MediaResource.cpp. r=jwwang
MozReview-Commit-ID: 7GCgaA8jJmU

--HG--
extra : rebase_source : 7125dcf91c360e783f6ea6c4e425071c39cd85cf
2017-10-04 21:25:19 +02:00
Chris Pearce c16ed38cc5 Bug 1405697 - Move BaseMediaResource implementation into cpp file. r=jwwang
This means MediaResource.cpp now only contains the stuff for the MediaResource
super class, and MediaResourceIndex.

MozReview-Commit-ID: 5xFxibn0aJ4

--HG--
extra : rebase_source : 4cb940008abb62c43759689cdc9e034d25b7e36f
2017-10-04 20:34:07 +02:00
Chris Pearce 47c2e3ae92 Bug 1405697 - Move BaseMediaResource declaration to its own file. r=jwwang
This means we can simplify MediaResource.h to only include the abstract
interface, and MediaResourceIndex.

I also had to add a few includes here and there to fix the non-unified build.


MozReview-Commit-ID: 4R7LTXq25dm

--HG--
rename : dom/media/MediaResource.h => dom/media/BaseMediaResource.h
extra : rebase_source : edef4a65df4dcb92f8536052d170d78f95315753
2017-10-04 20:57:11 +02:00
Chris Pearce 56d3b01075 Bug 1405697 - Move SEEK_VS_READ_THRESHOLD to where it's used. r=jwwang
It's only used in MediaCache.cpp, so it may as well be defined there.

MozReview-Commit-ID: HcA499xFOUg

--HG--
extra : rebase_source : f25c30d6e9be10549af80d5dfa963ef66abac576
2017-10-04 16:55:50 +02:00
Chris Pearce 1c86050c57 Bug 1405697 - Move HTTP_REQUESTED_RANGE_NOT_SATISFIABLE_CODE to the file it's used in. r=jwwang
It's only used in ChannelMediaResource.cpp, so it may as well be in there.

MozReview-Commit-ID: 5lyeFOoUsUN

--HG--
extra : rebase_source : 15aa06371c90e379e31383d2a8527d865944a4c3
2017-10-04 16:53:19 +02:00
Chris Pearce 53624e3480 Bug 1405697 - Move ChannelSuspendAgent to ChannelMediaResource.h. r=jwwang
It's only used by things in there anyway.

MozReview-Commit-ID: 4Pk12ab6e7U

--HG--
extra : rebase_source : ef9600770d6166fece0d1ae038d0b84cc87f1065
2017-10-04 16:35:11 +02:00
Chris Pearce 9f0aad7b2e Bug 1405697 - Move MediaChannelStatistics to its own file. r=jwwang
It currently resides in MediaResource.h, but it's only used in a
ChannelMediaDecoder and ChannelMediaResource, so it doesn't need to be in the
abstract header.


MozReview-Commit-ID: GskE5mjMav1

--HG--
extra : rebase_source : b42321ddcb1966d4de7203f04852c14f6d271acd
2017-10-04 16:30:32 +02:00
JW Wang 06967bc27c Bug 1402584 - add logs for debugging. See comment 5 for the detail. r=gerald
MozReview-Commit-ID: 48zKkVt5hbK

--HG--
extra : rebase_source : 91a12ef83c5b2560eafe9f41226bfa87413aba92
2017-10-02 13:51:04 +08:00
Jean-Yves Avenard d28995afd5 Bug 1215089 - P10: Enable 10/12 bits video with OGL compositor. r=mattwoodrow
MozReview-Commit-ID: AOSZla0ZX4S

--HG--
extra : rebase_source : b128a7979602fe78111a9c656bf3801fa26dbf56
2017-09-30 01:22:40 +02:00
Jean-Yves Avenard fa09392130 Bug 1215089 - P8: Only enable 10/12 bits videos with software compositor. r=mattwoodrow
MozReview-Commit-ID: 2tdeH2kdZ3P

--HG--
extra : rebase_source : 4c257032868d6c295c72b1b2a3c64d046e903d7f
2017-09-29 21:39:50 +02:00
Gerald Squelart 53d5092208 Bug 1394995 - Initial implementation of DecoderDoctorLogger - r=jwwang
DecoderDoctorLogger and its related classes offer a cheap way to gather log
messages from media stack objects, and then process these messages to extract
object lifetimes and messages related to separate HTMLMediaElement's.

MozReview-Commit-ID: AIf2nAMjoDy

--HG--
extra : rebase_source : cf10185538aded870b9005e88563751f3638ae65
2017-08-28 11:54:12 +12:00
Gerald Squelart fb0f980782 Bug 1394995 - MultiWriterQueue - r=jwwang
Templated queue allowing safe and fast multi-threaded pushes.
Popping is not thread-safe (but concurrent pushes are still allowed.)

MozReview-Commit-ID: BHQ3nOlHkLX

--HG--
extra : rebase_source : 4a5dd6b603cbfe9bdd86df339469e870761d742a
2017-09-15 15:10:17 +12:00
Gerald Squelart 43a5a26e7b Bug 1394995 - RollingNumber - r=jwwang
Unsigned-number value-class with modified comparison operators that keep
ordering consistent across overflows.
I.e., numbers before the overflow (close to the maximum) will be considered
smaller than numbers after the overflow (close to 0).
(Note that such comparisons break down for numbers separated by more than half
the type range.)

MozReview-Commit-ID: 1hdK2JknlqZ

--HG--
extra : rebase_source : 7be3c1be6bc846e17dd5b396fcf097076b9096c1
2017-09-15 14:31:13 +12:00
Gerald Squelart 00c6bbf432 Bug 1394995 - Moved DecoderDoctor files to dom/media/doctor/ - r=jwwang
MozReview-Commit-ID: 9fEmeizzAAw

--HG--
rename : dom/media/DecoderDoctorDiagnostics.cpp => dom/media/doctor/DecoderDoctorDiagnostics.cpp
rename : dom/media/DecoderDoctorDiagnostics.h => dom/media/doctor/DecoderDoctorDiagnostics.h
extra : rebase_source : 38d149815101f222bd42aec7c2f481768c7ab335
2017-08-28 10:37:44 +12:00
JW Wang f23594e114 Bug 1402584. P1 - Backed out changeset 442e8020e2ac. r=gerald
MozReview-Commit-ID: JqZJDTMyKGm
2017-10-08 17:07:55 +02:00
Sebastian Hengst e25887767b Backed out changeset e17425d9f940 (bug 1402584) for frequent mda failures on Windows 10, e.g. in dom/media/test/test_seek-2.html. r=backout
--HG--
extra : amend_source : 6e736c36d615c4662faf63612ef72935eeaa27c9
2017-10-08 01:16:34 +02:00
JW Wang bc8e42651b Bug 1402584. P1 - Backed out changeset 442e8020e2ac. r=gerald
MozReview-Commit-ID: JqZJDTMyKGm

--HG--
extra : rebase_source : 944bc58aa562de066854668746e4af158d747484
extra : source : 394da3f085e52296e62af852add26e72fa688a62
2017-10-07 07:58:19 +08:00
Sebastian Hengst ee63f2e30a Backed out changeset 0317bcff40bc (bug 1406687) for build bustage at testing/gtest/gtest/src/gtest.cc:3871: 'Unused' was not declared in this scope. r=backout 2017-10-09 18:52:39 +02:00
Tom Ritter 22d2cdf063 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : c54b129c6815096035e262322f40aa0884b1ae56
2017-10-09 00:26:16 -05:00
Chung-Sheng Fu 21db685671 Bug 967895 - Ask for placeholder data when image extraction is not allowed (Tor 6253). r=jrmuizel
MozReview-Commit-ID: AJ5F6M5S83U

--HG--
extra : rebase_source : 2d2de5d6c4a7245759fefed468bcc7d82c9cd000
2017-08-22 14:23:41 +08:00
Jean-Yves Avenard 95990a22df Bug 1403622 - Allow VP8 HW decoder where known not to crash. r=cpearce
Windows 10 Falls Creator Update build 16287 is known to have the fix to the problem that made bug 1403063 necessary.

MozReview-Commit-ID: 5m3ZWMes1yl

--HG--
extra : rebase_source : 5f6cd508de75f7e315f4334f76d64b389e4f2ce3
2017-10-09 10:43:54 +02:00
JW Wang 09ecf06972 Bug 1406328 - shut down the MediaCache thread in ShutdownThreads phase. r=gerald
To avoid leaks caused by Dispatch() failures. See comment 0 for the detail.

MozReview-Commit-ID: 3lYxQNj1GPl

--HG--
extra : rebase_source : 8df990476a49544b475df39be789e3cb27853609
extra : intermediate-source : 012f42a1a9d46b0dafa31ca03da1c2bc4fc76d2e
extra : source : c6acb9362de9ab8d130104aaf102de2ecb27dc8f
2017-10-06 17:41:21 +08:00
JW Wang ba8adddaa7 Bug 1405025. P2 - revert Bug 1390443 P1. r=jya
Since we don't use state-mirroring to dispatch nextFrameStatus changes, we
can now revert the workaround of bug 1390443 P1. See bug 1390443 comment 0
for more details.

MozReview-Commit-ID: FRxXUnGC3x2

--HG--
extra : rebase_source : 67192634e001c635e2f15cc77545df79fed11b2d
extra : intermediate-source : 7c02f95ff9d1864fcc53216304b15c266634c753
extra : source : 6a46f27ac74f2c5b013ff8ace3ce8a77279a99b5
2017-10-06 15:58:59 +08:00
JW Wang 4026dc6f84 Bug 1405025. P1 - ensure 'seeking' is fired before 'waiting'. r=jya
Use MediaEventSource instead of state-mirroring to notify nextFrameStatus
changes so we have more control over the order of events.

MozReview-Commit-ID: 3DGtMbghEQm

--HG--
extra : rebase_source : 774fc3da290c033769871a1bd7230177ff24d5bf
extra : intermediate-source : 6583b9281492be1a3bb0771b600cd80efd487af8
extra : source : 00570c319bfbd94970d4c637c7bf81b52d79ca02
2017-10-06 15:48:38 +08:00
Sebastian Hengst ffb949f627 merge mozilla-central to autoland. r=merge a=merge 2017-10-09 11:23:26 +02:00
Tom Ritter f49999833d Bug 1406380 Fix -Wreorder warnings r=njn
MozReview-Commit-ID: 7Zh2pvAMpXR

--HG--
extra : rebase_source : 5052112ad66a66cd2974c4140c3fd430dcaa3adc
2017-10-09 01:36:36 -05:00
Sebastian Hengst 6c8164a609 Backed out changeset 3ceb919e7e82 (bug 1406328) for build bustage at dom/media/MediaCache.cpp:301: 'ShutdownPhase' has not been declared. r=backout 2017-10-09 09:07:01 +02:00
JW Wang 31d4e49bd9 Bug 1406328 - shut down the MediaCache thread in ShutdownThreads phase. r=gerald
To avoid leaks caused by Dispatch() failures. See comment 0 for the detail.

MozReview-Commit-ID: 3lYxQNj1GPl

--HG--
extra : rebase_source : 3ea4958ba21e691f83dbdf36fd820e597d6c5d68
extra : intermediate-source : 012f42a1a9d46b0dafa31ca03da1c2bc4fc76d2e
extra : source : c6acb9362de9ab8d130104aaf102de2ecb27dc8f
2017-10-06 17:41:21 +08:00
Ryan VanderMeulen 329ca88d38 Bug 1270303 - Add crashtest. r=me
--HG--
extra : rebase_source : 55b93b84fe7d13e56c6670ad79c524a2bfe74a31
2017-10-11 11:52:39 -04:00
Ryan VanderMeulen 7080ccf348 Bug 1197935 - Add crashtest. r=me
--HG--
extra : rebase_source : a863e8aaf72a82436399800a35b4b2f12501779b
2017-10-11 11:52:39 -04:00
Ryan VanderMeulen 9be0c9e6b3 Bug 1180881 - Add crashtest. r=me
--HG--
extra : rebase_source : 7eac4a27703f821b35e96100be172eff4bae166e
2017-10-11 11:52:38 -04:00
Joel Maher 5ab59bd06c Bug 1401090 - Disable test_FrameSelection.html,test_HaveMetadataUnbufferedSeek.html,test_EndedEvent.html on android for frequent failures. r=me, a=test-only 2017-10-11 08:45:03 -04:00
Sebastian Hengst 3c466b2f77 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 11:54:59 +02:00
Jonathan Watt 60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Jan-Ivar Bruaroey b1ad09a50b Bug 1400912 - Remove default values in CamerasChild's LockAndDispatch. r=padenot 2017-09-26 13:03:42 -04:00
Jean-Yves Avenard e9ab6e6eaf Bug 1215089 - P4: Add support to 10 and 12 bits YUV images to FFmpeg decoder. r=kentuckyfriedtakahe
This allows for decoding VP9 profile 2 and 3.

At this stage, it is not possible to render the decoded frames.

MozReview-Commit-ID: DFXMvaM8Ynb

--HG--
extra : rebase_source : e17f24a00595461910f6d0cbd8ef4ba25453e8c5
2017-06-29 23:11:06 +02:00
Jean-Yves Avenard 72e08420b1 Bug 1215089 - P3: Add mBitDepth member to YCbCr data structure. r=kamidphish,mattwoodrow
MozReview-Commit-ID: BNLawJOfj3w

--HG--
extra : rebase_source : f538373e317e3e1e5452c0a0d6e00e810148ea87
2017-06-29 23:09:20 +02:00
Jean-Yves Avenard f57ec08586 Bug 1215089 - P2: Add YUV422 support to ffmpeg decoder. r=kentuckyfriedtakahe
This allows for VP9 profile 1 support.

MozReview-Commit-ID: KymoerXNyzA

--HG--
extra : rebase_source : db8eef696ae19ff7065e34863a1ee4b576369229
2017-06-29 23:07:03 +02:00
Gerald Squelart b0442493e5 Bug 1405531 - Remove unused MediaDataDemuxer::HasTrackType - r=jwwang
The only actual code use in MediaSourceDemuxer can trivially be folded into
its caller GetNumberTracks in the same class.

MozReview-Commit-ID: E6zh98zmJwJ

--HG--
extra : rebase_source : 9358dc37523d6cd7c1a4d5ec62a790db6a092063
2017-10-04 11:40:29 +11:00
Tom Ritter 3912879fa7 Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT r=cpearce
MozReview-Commit-ID: GpOCB2TKGG7

--HG--
extra : rebase_source : 7947c96bfd170183b4e0028cd505a456a10d4b5e
2017-10-02 14:28:24 -05:00
Kartikaya Gupta 22bed6311a Bug 1367879 - Skip test that fails frequently with webrender enabled. r=jmaher
MozReview-Commit-ID: IHTDYmwrsBP

--HG--
extra : rebase_source : 17d403f58faf1e7e1939c3a3eb6e6ed82f49032b
2017-10-04 10:33:12 -04:00
Sebastian Hengst acc85d321d Backed out changeset 7415ed519323 (bug 1215089) for failing mochitest gl's dom/canvas/test/webgl-mochitest/test_video_fastpath_theora.html | texImage2D should not generate any error here, at least on OS X and Linux. r=backout 2017-10-04 16:27:46 +02:00
Sebastian Hengst 46807fbb50 Backed out changeset 3fc22c028eab (bug 1215089) 2017-10-04 16:26:09 +02:00
Sebastian Hengst 7e38be29ab Backed out changeset 2fb3a9820103 (bug 1215089) 2017-10-04 16:26:04 +02:00
Sebastian Hengst 4c598e730b Backed out changeset 34396bd260e5 (bug 1215089) 2017-10-04 16:25:40 +02:00
Sebastian Hengst cc5dc6b3ef Backed out changeset 752c2be759b6 (bug 1215089) 2017-10-04 16:25:29 +02:00
Byron Campen [:bwc] 0c94395051 Bug 1377299: Add packet dump hooks r+drno r=drno,smaug
MozReview-Commit-ID: Jr7n49OOduG

--HG--
extra : rebase_source : 8880b8b6bf842f996f99e86fc45510e59e70a665
2017-06-29 19:14:06 -05:00
Jean-Yves Avenard 5da07f937c Bug 1215089 - P9: Enable 10/12 bits video with OGL compositor. r=mattwoodrow
MozReview-Commit-ID: AOSZla0ZX4S

--HG--
extra : rebase_source : cfd0df81c30e4b84c66bf7e8f8e12b6b650f02e0
2017-09-30 01:22:40 +02:00
Jean-Yves Avenard 7359a43d40 Bug 1215089 - P7: Only enable 10/12 bits videos with software compositor. r=mattwoodrow
MozReview-Commit-ID: 2tdeH2kdZ3P

--HG--
extra : rebase_source : 81505446b84c15ceb4d1ba721adff52aea87a25a
2017-09-29 21:39:50 +02:00
Jean-Yves Avenard c063cb00e7 Bug 1215089 - P3: Add support to 10 and 12 bits YUV images to FFmpeg decoder. r=kentuckyfriedtakahe
This allows for decoding VP9 profile 2 and 3.

At this stage, it is not possible to render the decoded frames.

MozReview-Commit-ID: DFXMvaM8Ynb

--HG--
extra : rebase_source : d9a639c2a65b1fd37d44336310af999e420155fe
2017-06-29 23:11:06 +02:00
Jean-Yves Avenard 89b1091f27 Bug 1215089 - P2: Add mDepth member to YCbCr data structure. r=kamidphish
MozReview-Commit-ID: BNLawJOfj3w

--HG--
extra : rebase_source : 6cd0336506a8feda874f6bd6525da73a745d5100
2017-06-29 23:09:20 +02:00
Jean-Yves Avenard 4bac0ed257 Bug 1215089 - P1: Add YUV422 support to ffmpeg decoder. r=kentuckyfriedtakahe
This allows for VP9 profile 1 support.

MozReview-Commit-ID: KymoerXNyzA

--HG--
extra : rebase_source : 37bcf92e71a0e3b55d70e52e0e3b34d544f67631
2017-06-29 23:07:03 +02:00
Rob Wu 11d4ea9489 Bug 1404661 - Fix typo in comment of flac::FrameHeader::Parse r=kamidphish
MozReview-Commit-ID: 7AlN8i4WYu5

--HG--
extra : rebase_source : 376dfaa2d6bf539972fb31932f8cce561a5d5421
2017-10-01 02:26:38 +02:00
Wes Kocher 382a7d90d6 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
Andrea Marchesini 9067ec472c Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
JW Wang 23e496f3ed Bug 1404771. P3 - constify some members and fix comments. r=gerald
MozReview-Commit-ID: CMJgmY9Al0k

--HG--
extra : rebase_source : 4bacbc52a0bab984d43802c0a93078297423eaf5
extra : intermediate-source : e19cd1f94a3f876cf9763e4296ca8f145897040f
extra : source : 7da3a65c6620166a88367dc6d1f92184fa07f515
2017-09-20 16:43:19 +08:00
JW Wang ad01d1a091 Bug 1404771. P2 - always access mThrottleReadahead within the lock. r=gerald
So it is easier to run Update() loops off the main thread in the future.

MozReview-Commit-ID: LdxzQf6B3GK

--HG--
extra : rebase_source : 157984edf8ea08270fe61376e67183715b5bd4d4
extra : intermediate-source : f4045ce626977d392c799fae8f3d4f19efe3039f
extra : source : 778256b7055f4a470889eeae063660595d34337f
2017-09-20 16:37:32 +08:00
JW Wang 1ed6e3a966 Bug 1404771. P1 - fix the comment of mStreamLength. r=gerald
mStreamLength is always accessed within the lock. So it is safe to read/write
mStreamLength on all threads.

MozReview-Commit-ID: 9zJ2cwRrL5L

--HG--
extra : rebase_source : 10f282aa1c2fce2b9c0f431afb85e9d8ec7fab74
extra : intermediate-source : 38cac3d9015404aa3d1ddfd438ac57bd915fa0a7
extra : source : 60594740401732695f12f5f5232fa0f8e6681111
2017-09-20 16:29:46 +08:00
Andreas Pehrson 94fb70a59f Bug 1380346 - Apply applyConstraints() properly. r=jib
MozReview-Commit-ID: EOuHS9nYT8S

--HG--
extra : rebase_source : 5d162b361ecfa6611317805a305a6ffcd33e16a2
2017-09-14 19:20:26 +02:00
Andreas Pehrson c855ea91ce Bug 1380346 - Verify screensharing content in mochitest. r=jib
This verifies that screen content is captured correctly by drawing to a canvas
that is full screen and comparing to pixels in the captured stream.

Note that going fullscreen requires the tab (and window) to be in the foreground
and having focus.

MozReview-Commit-ID: 9SNXaCPm9da

--HG--
extra : rebase_source : bcd1fb1954acacbe4b7c51055f73ffc74a0e978f
2017-09-14 19:02:46 +02:00
Andreas Pehrson 9bf120375b Bug 1380346 - Modernize test_gUM_basicScreenShare.html. r=jib
MozReview-Commit-ID: ATNRw5avBaD

--HG--
extra : rebase_source : 472f4041bc7829d4c0bb9b4b800ca0f8b88cf0e0
2017-09-13 17:09:20 +02:00
Wes Kocher eb9a2ed0f2 Merge inbound to central, a=merge
MozReview-Commit-ID: IqwKWn7ceHC
2017-09-29 14:47:25 -07:00
Paul Adenot 318f0f3c3b Bug 1326003 - Fix callsite on a CLOSED TREE.
MozReview-Commit-ID: FWfWMOKDjJq
2017-09-29 17:48:43 +02:00
maxLan 9c5102c149 Bug 1326003 - Remove dead code: WebAudioDecodeJob::mContentType. r=padenot
MozReview-Commit-ID: B35bgs91mep

--HG--
extra : source : f54176397a55ff09bab897d2026edff5ce477f86
2017-09-29 16:02:43 +02:00
Andrea Marchesini 728ee9036d Bug 1404326 - Fixing comments in MediaRecorder.cpp, r=padenot 2017-09-29 16:11:47 +02:00
Andreas Farre 2e8f0b10d0 Bug 1403586 - Don't disble budget throttling due to gUM. r=smaug,padenot 2017-09-29 15:21:45 +02:00
Sebastian Hengst 5253bb7207 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2gWLO0vz64b
2017-09-29 13:30:42 +02:00
Matthew Gregan 2bf67b1eb5 Bug 1403043 - Avoid reentering libcubeb from data_callback. r=jwwang
AudioStream::DataCallback uses cubeb_get_backend_id to work around a bug in
libcubeb's winmm backend, but calling libcubeb APIs from within libcubeb
callbacks is not safe.  Move the query to AudioStream::Init and check a simple
bool from within the callback instead.
2017-09-29 17:19:47 +13:00
JW Wang cf7433d7d9 Bug 1404187 - group timeout messages for MediaTestManager. r=kaku
So different test timeouts from the same test case will fall under the same bug.

MozReview-Commit-ID: LDstAhOpkYK

--HG--
extra : rebase_source : 9f2b52f237f18f3fecdd076295da4d43e5b30219
2017-09-29 11:25:31 +08:00
Kaku Kuo 6a5b40688d Bug 1401757 part 1 - set MDSM::mMinimizePreroll to false once seekToNextFrame() is engaged; r=jwwang
MozReview-Commit-ID: KFWbOAw7dig

--HG--
extra : rebase_source : 06a5e9c875b01437370b878248b65ec1c87cecff
2017-09-28 17:57:31 +08:00
Munro Mengjue Chiang e39858f1cd Bug 1402377 - Stop the corresponding track instead of the whole stream when an external device is plugged out. r=jib,pehrsons
MozReview-Commit-ID: 7gbB5sgn6xI

--HG--
extra : rebase_source : 9dc0b1cc8d1dd55c4fb71f444c165498f0e7f7ad
2017-09-27 10:16:46 +08:00
Alastor Wu 6881f03d05 Bug 1403478 - part2 : merge 'test_SeekableBefore*' and 'test_SeekableAfter*' into 'test_SeekableBeforeAndAfter*'. r=jya
MozReview-Commit-ID: 3tfdEEV78k8

--HG--
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStream.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStream.html
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStreamSplit.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStreamSplit.html
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStreamSplit_mp4.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStreamSplit_mp4.html
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStream_mp4.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStream_mp4.html
extra : rebase_source : 98e2e7c90f9b22526889eca869160999307e0cf7
2017-09-29 11:58:44 +08:00
Alastor Wu 27e06f23ea Bug 1403478 - part1 : check v.seekable before and after calling ms.endOfStream(). r=jwwang,jya
This patch does two things,

(1) check v.seekable after calling ms.endOfStream()
As test name suggests, we check seekable after calling endOfStream()

(2) check the time range of v.seekable
The seekable represents the ranges of the media resource [1], so it would be changed after calling ms.endOfStream().

Before calling the endOfStream(), seekable should be [0, ms.duration)
After calling the endOfStream(), seekable should be [0, ms.buffer.end(0))

[1] https://www.w3.org/TR/html51/semantics-embedded-content.html#dom-htmlmediaelement-seekable

MozReview-Commit-ID: 56AIZYVsHhW

--HG--
extra : rebase_source : a1f1df601dc8523cd5d4e58b41cada3c79d494c1
2017-09-29 11:33:46 +08:00
Wes Kocher 134e495909 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6RdWW73Lc0A
2017-09-28 17:16:12 -07:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
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