Commit Graph

9545 Commits

Author SHA1 Message Date
JW Wang
a2f0f971ab Bug 1328782. part 3 - remove the |VideoQueue().GetSize() > 0| check. r=kikuo
Since |GetAmpleVideoFrames() * mPlaybackRate + 1| is positive,
|VideoQueue().GetSize() >= GetAmpleVideoFrames() * mPlaybackRate + 1| must imply
|VideoQueue().GetSize() > 0|

MozReview-Commit-ID: 6cZ2XfUrmj

--HG--
extra : rebase_source : fc77e2cdebc4621fa68f94c6c3db81d4d921b851
2017-01-05 12:09:55 +08:00
JW Wang
e6bb1d40a3 Bug 1328782. part 2 - some more tweaks to the expression. r=kikuo
MozReview-Commit-ID: I1IcV88amob

--HG--
extra : rebase_source : a1be8f5496582c2117b3e30cd8010b769d970db7
2017-01-05 12:07:15 +08:00
JW Wang
dbaf1d1389 Bug 1328782. part 1 - some tweaks to the expression. r=kikuo
MozReview-Commit-ID: 3Mt1c7TrSYy

--HG--
extra : rebase_source : 75cc57e6b0fec9698e874846ad1670f31124685f
2017-01-04 17:37:34 +08:00
Markus Stange
4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
Markus Stange
927eee33e9 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : b2a55afe65d9a68d1d20d08806cb016ce040d044
2016-12-21 23:06:56 +01:00
Markus Stange
942cdc08a8 Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : 6dee759440f94e63a82c43ec295b9a6e9c020d21
2016-12-21 23:06:45 +01:00
Markus Stange
692210bd80 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : c7e335dac2e0f02782f0eb229a7181c8d01317a2
2016-12-21 11:43:50 +01:00
JW Wang
a9218bbb8e Bug 1328811. Part 4 - remove the |mState != DECODER_STATE_SEEKING| check. r=kaku
When mState is SEEKING, DispatchDecodeTasksIfNeeded() is a no-op.

MozReview-Commit-ID: 3sV6RdUwFBV

--HG--
extra : rebase_source : 12f01ab491b5f4326b08b44dd0789139db174d99
extra : source : 89cccddea7603912e264405040071ba0a98bf8de
2017-01-05 14:48:42 +08:00
JW Wang
0a36f808bc Bug 1328811. Part 3 - inline NeedToDecode{Audio,Video} for DispatchDecodeTasksIfNeeded is the only caller. r=kaku
MozReview-Commit-ID: H1K6LJCjk4B

--HG--
extra : rebase_source : 382293f2aa91a134b895458866cc590798d36edd
extra : source : c0971794c58515b498d93caeccf8d8932f48614f
2017-01-05 14:44:45 +08:00
JW Wang
38ceee4499 Bug 1328811. Part 2 - remove the comment that is not valid anymore. r=kaku
MozReview-Commit-ID: JxrBRtKPAau

--HG--
extra : rebase_source : d62438f5546a67bac9004c9dea74580e23b4dd62
extra : source : d0e189f19de690e1244ab22b922ff0b70fd55e60
2017-01-05 14:39:35 +08:00
JW Wang
ba927c6dfe Bug 1328811. Part 1 - remove the assertion. r=kaku
http://searchfox.org/mozilla-central/rev/82ebc0c5ea45477ef4a4bfb3bbff35069bd18cee/dom/media/MediaDecoderStateMachine.cpp#2980
The if statement ensures |mState != DECODER_STATE_COMPLETED|.

MozReview-Commit-ID: CyvfXj94E8s

--HG--
extra : rebase_source : 10007fda9e4c09647a7142b77415c332a69001b3
extra : source : 5936c72d33e155a2a942602b610e6d6407f9bef6
2017-01-05 14:38:52 +08:00
JW Wang
da1657f4f3 Bug 1328810 - Remove the call to DispatchDecodeTasksIfNeeded() from MDSM::StopPlayback(). r=kaku
MozReview-Commit-ID: mZL1FJmea3

--HG--
extra : rebase_source : f1c22d86d60c4078e8c9bef389d0c6f3247154f0
extra : source : ab2eb5c6f2ba7de8be8e21b1a09a2c43efeffc62
2017-01-05 14:32:53 +08:00
Wes Kocher
0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
JW Wang
f6c88fe5f9 Bug 1328831 - Remove MDSM::DispatchAudioOffloading. r=jolin
MozReview-Commit-ID: JVJOpmUHNp6

--HG--
extra : rebase_source : 7bcca5c52938b9e429c1e1833500bd85b64dc229
2017-01-05 17:38:17 +08:00
JW Wang
12437440a3 Bug 1328547. part 3 - inline NeedToDecode{Audio,Video} and remove some checks. r=kaku
1. |mState != DECODER_STATE_SEEKING| is true in DecodingState.
2. mSentFirstFrameLoadedEvent is true in DecodingState.
3. mMinimizePreroll is false because pop events fire only after MDSM starts playing.

MozReview-Commit-ID: FTkXmtEnzY5

--HG--
extra : rebase_source : 30392be881ebdb96469189a584a57b89d60cc2b4
2017-01-04 17:23:28 +08:00
JW Wang
55f78f10f6 Bug 1328547. part 2 - remove checks for IsShutdown() which is false in DecodingState. r=kaku
MozReview-Commit-ID: CmU79bt4XoR

--HG--
extra : rebase_source : 4580449f41a23924d887ff4f1d28cecf0ed77ee9
2017-01-04 17:13:49 +08:00
JW Wang
7bbc498596 Bug 1328547. part 1 - Move MDSM::Dispatch{Audio,Video}DecodeTaskIfNeeded into DecodingState. r=kaku
MozReview-Commit-ID: I2gT77VHutm

--HG--
extra : rebase_source : 39daa2eb03b780cd44e8e461d90ea38c5f163394
2017-01-04 17:10:37 +08:00
JW Wang
7e82a51137 Bug 1328781. part 2 - don't convert a double to an int64_t to avoid rounding errors. r=kikuo
MozReview-Commit-ID: 83Zxqr4aiMa

--HG--
extra : rebase_source : baadaff80de366e2ed6a88b2a8bbfaaf54b66c9d
2017-01-05 11:50:20 +08:00
JW Wang
0077fc4f6c Bug 1328781. part 1 - somewhat rewrite the expression. r=kikuo
MozReview-Commit-ID: 5959ZdWKI4k

--HG--
extra : rebase_source : 927c0edda7ff9870c555830e3f022d26e588e258
2017-01-04 17:35:04 +08:00
JW Wang
1bc32335e9 Bug 1328541 - Remove the call to DispatchDecodeTasksIfNeeded() from MDSM::MaybeStartPlayback(). r=kikuo
MozReview-Commit-ID: 9Qj01MSw4Ia

--HG--
extra : rebase_source : 5751a3f681f17656cca1bb28700a3a15ca96c6a6
2017-01-04 16:38:01 +08:00
JW Wang
8c79a1d34c Bug 1326294 - this is a debugging patch which checks if mOwner points to a valid media element object. r=gerald
MozReview-Commit-ID: HRUigVOLdx

--HG--
extra : rebase_source : d44b4315a34b60c1d1a6ba98730a938ed375a937
2017-01-04 16:18:37 +08:00
Carsten "Tomcat" Book
b4e6d275b7 merge mozilla-inbound to mozilla-central a=merge 2017-01-04 16:09:56 +01:00
JW Wang
b550988fa4 Bug 1326335 - Ensure MDSM only decodes metadata once. r=kaku
MozReview-Commit-ID: AqKbR6OuQ40

--HG--
extra : rebase_source : b8da9e4a47ae79b01ed6fc878f4232244c555aef
extra : intermediate-source : 3ce2a998b1abc4acac397b653c721f96d84452b1
extra : source : 94103894f26463ac8ab4a8a59957ccf4f79ebecf
2016-12-23 19:23:58 +08:00
Edgar Chen
68253477ee Bug 1328206 - Do not use binding_detail things in AudioContext, use Sequence instead; r=dminor 2017-01-03 11:54:37 +08:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Andreas Pehrson
4e5007c1c2 Bug 1314886 - Call mozCaptureStream() after "loadedmetadata" in test_streams_element_capture_reset. r=jwwang
MozReview-Commit-ID: 1i5VIfCWWRy

--HG--
extra : rebase_source : 00e78dc0214557bd53b773e918a56de8a56e9682
2016-12-30 10:56:49 +01:00
JW Wang
dae2fad218 Bug 1325317. Part 2 - rename the function and fix comments. r=kikuo
MozReview-Commit-ID: 3GUkH5OpSmJ

--HG--
extra : rebase_source : 421c16cf75bde625b158571439fb9b4d29e8046f
extra : intermediate-source : 22b22702bafca7da4f12e3abdb08cabcf9eff20c
extra : source : e7b0f09a40bf5f148496470bb019c11dc5431856
2016-12-22 16:56:59 +08:00
JW Wang
7b71dd0944 Bug 1325317. Part 1 - move StopMediaSink() out of MediaDecoderStateMachine::Reset(). r=kikuo
MozReview-Commit-ID: 6Bso8uxM7Ee

--HG--
extra : rebase_source : e255128028e33b2aad3566f5a3a3a09a07ac2d68
extra : intermediate-source : a3be598566377928746b5e37800d788cdcab6942
extra : source : f46b24e31cbb07243ca74206bd2e05e99b070286
2016-12-22 16:48:54 +08:00
Jan-Ivar Bruaroey
0fb5c6dc68 Bug 1329193: Use es6 classes in PeerConnection.js. r=mt
MozReview-Commit-ID: FtVZXPA9ckJ

--HG--
extra : rebase_source : 0c5d1ba14a83b553cc9cb4473035811173f9c9c8
2017-01-05 22:47:25 -05:00
Gerald Squelart
e0f7233057 Bug 1329568 - gtest for MediaMIMEType and family - r=jya
MozReview-Commit-ID: BhQR490Tn7U

--HG--
extra : rebase_source : 21313dfd4d86ae0e4c7d5de4f4f59cc96f79fec6
2016-12-30 17:41:17 +11:00
Gerald Squelart
afc4e55065 Bug 1329568 - Store original media-content string - r=jya
Some code (mostly logging) needs to know the original full MIME string, which
we would normally not need to keep in MediaExtendedMIMEType.

MozReview-Commit-ID: Jcd290ScHAb

--HG--
extra : rebase_source : 1165bc3425ed34a93564335a10ea3c6257da6f19
2016-12-28 18:56:22 +11:00
Gerald Squelart
dd8e7f0b39 Bug 1329568 - Media...Type::SizeOf... methods - r=jya,njn
When replacing strings with MediaContentType objects, some classes will want to
know about their size.

MozReview-Commit-ID: LNdaaUdJac3

--HG--
extra : rebase_source : 70bfbfa55bc6f2c7a8aa026797103cd77615df08
2016-12-22 11:54:56 +11:00
Gerald Squelart
5587e692df Bug 1329568 - Remove MediaContentType crutches - r=jya
Now that we have move all data-handling functions to MediaMIMEType and friends,
we can remove direct accesses to data from MediaContentType, to better separate
the context that MediaContentType represents, from the data it includes.

Dependent code needs to be mechanically updated to now use the proper APIs.

Note that in most places, we just extract MIME strings. Further work will take
place in later bugs, to completely replace these strings with MediaContentType
or more appropriate types...

MozReview-Commit-ID: LoX8dhX7OlB

--HG--
extra : rebase_source : cf221ac3c104f99b36cfa055afcf67d3bca26d0e
2017-01-01 09:24:24 +11:00
Gerald Squelart
062283957f Bug 1329568 - MediaCodecs - r=jya
MediaCodecs factors out the codecs string from MediaExtendedMIMEType.

It also provides utility methods to go through a list of codecs, and test the
presence of specific codecs.

Note that there is no real way (yet?) to validate the given codecs strings, we
just assume that it's a comma-separated list of codecs. Further work can be
done later on if useful.

MozReview-Commit-ID: 5n2nWmaNT2O

--HG--
extra : rebase_source : 44ca49aa3d2a795171ebff75c91bb228196bc429
2016-12-28 10:48:27 +11:00
Gerald Squelart
29896bdd35 Bug 1329568 - MediaMIMEType 'audio/' and 'video/' checks - r=jya
A lot of code wants to check if the type starts with 'audio/' or 'video/',
MediaMIMEType::IsAudio() and IsVideo() will help with that -- and could later
be optimized if needed.

Note that types starting with 'application/' will still need manual testing,
but they are rare anyway.

MozReview-Commit-ID: UBcxS69Hcb

--HG--
extra : rebase_source : 24bd67f6ec18a2a6c7d33b065ac1036aa51de2ae
2016-12-17 17:43:02 +11:00
Gerald Squelart
8a97444e89 Bug 1329568 - MediaMIMEType comparisons against others - r=jya
`==` and `!=` against other MediaMIMEType objects, and against MEDIAMIMETYPE
checked literals.
This will allow simple (and compile-time-checked!) tests like:
  if (contentType.Type() == MEDIAMIMETYPE("audio/mp4")) { ...

MozReview-Commit-ID: 5yMua5krOKD

--HG--
extra : rebase_source : 778adc5fd45624d60529c259aeb1c41d4f66eb2f
2017-01-01 10:06:26 +11:00
Gerald Squelart
7c523a416e Bug 1329568 - MediaMIMEType construction from literal string - r=jya
MediaMIMEType object can now be constructed from string literals by using e.g.:
MEDIAMIMETYPE("audio/mp4") -- Note that it's an all-caps macro.
The string will be checked for validity at compile time.

To help with this, a new class DependentMediaMIMEType can point inside another
string (usually a string literal), but can only be constructed for valid
strings -- It will fail to compile when using MEDIAMIMETYPE, or it would
assert at runtime if directly built.

MozReview-Commit-ID: 5T3AKfpGbO4

--HG--
extra : rebase_source : 4bf9da294406c9dd6bfd69d560bae4bea44cadf3
2017-01-01 09:52:06 +11:00
Gerald Squelart
633052bba8 Bug 1329568 - Restrict MediaMIMEType to IsMediaMIMEType-checked strings - r=jya
Use IsMediaMIMEType to refuse MIME types that cannot possibly be media-related.

MozReview-Commit-ID: JXhf1biL4L0

--HG--
extra : rebase_source : a33e7be7bcc16685205f767d671a7812ee843364
2017-01-03 22:07:11 +11:00
Gerald Squelart
9dcc40aa5f Bug 1329568 - Simple IsMediaMIMEType checker for strings - r=jya
Inside dom/media, we really only deal with audio and video MIME types.
IsMediaMIMEType will help check for that.

Note that 'application' is an acceptable MIME major type, as some A/V contents
do use it! E.g.: "application/ogg".

IsMediaMIMEType is constexpr to allow its use in static_assert's, so we will be
able to verify string literals at compile time.

MozReview-Commit-ID: InBicRRUeiP

--HG--
extra : rebase_source : 53796c130846763e979cea2757121fadc0e7b88d
2017-01-01 08:46:34 +11:00
Gerald Squelart
d206c54fef Bug 1329568 - MediaSource::IsTypeSupported should report a NotSupportedError if type is not supported - r=jya
Bug 1176218 made IsTypeSupported return a DOMTypeError if the type cannot be
parsed, but this was incorrect.
This was not important until now, because the basic parser accepted invalid
MIME types and therefore would never report an error there.
But the next couple of patches will introduce a stronger check that will
refuse types other that "application/...", "audio/...", and "video/...", and
would now trip the web-platform tests.

MozReview-Commit-ID: EeyFnyurEZK

--HG--
extra : rebase_source : 76f831ddc3c19e0d820454f6f949d44e15d6773c
2017-01-13 14:58:23 +11:00
Gerald Squelart
ab3c0bec0e Bug 1329568 - MediaMIMEType - r=jya
MediaMIMEType factors out the main MIME "type/subtype" string from
MediaExtendedMIMEType, as it is often useful to deal with just that part.
Like MediaContentType and MediaExtendedMIMEType, MediaMIMEType is always valid
once constructed.

MozReview-Commit-ID: 5Urlk6OLo5q

--HG--
extra : rebase_source : aef60fde09b13befa1311c6cd712eac19c438021
2016-12-01 16:57:31 +11:00
Gerald Squelart
14cc7d114d Bug 1329568 - MediaExtendedMIMEType - r=jya
This patch factors out all data handling of MIME strings from MediaContentType
to MediaExtendedMIMEType.

MediaExtendedMIMEType is pretty much a copy of the old MediaContentType, as the
functionality was fine (but will be modified in upcoming patches).
MediaContentType then just delegates the work to its embedded
MediaExtendedMIMEType field.
The main difference is that the default constructor and Populate() method have
been replaced with a single constructor that takes all the arguments at once.

MozReview-Commit-ID: GBAgPDT2DUW

--HG--
rename : dom/media/MediaContentType.cpp => dom/media/MediaMIMETypes.cpp
rename : dom/media/MediaContentType.h => dom/media/MediaMIMETypes.h
extra : rebase_source : 1c925d8e049d9d349ec4c3dd1a079f570b809970
2016-12-01 13:05:45 +11:00
Gerald Squelart
3a45982b06 Bug 1329568 - Add missing #include in MediaStreamListener.h - r=jya
This is required because the next patch adds new files, which changes the
unified-build order and exposes error due to this missing #include.

MozReview-Commit-ID: 3pmqNK1B2bR

--HG--
extra : rebase_source : 6e3dc2d4200aa4740b8f216ba1d1a131b94c26cb
2016-11-28 09:47:46 +11:00
Nils Ohlmeier [:drno]
2ca25c39f6 Bug 1318180: turn network offline events into ice disconnected event. r=bwc,jib
MozReview-Commit-ID: Kqbicl2goL2

--HG--
extra : rebase_source : 4ed7d1364af8bd1575e2ced1bd8512405e0dd669
2016-11-17 23:16:33 -08:00
Wes Kocher
6e269458be Merge inbound to central, a=merge
MozReview-Commit-ID: KIm8XUkfyZW
2016-12-30 16:56:03 -08:00
Andreas Pehrson
df4d42fabb Bug 1326386 - Restore test_gUM_active_autoplay.html. r=jesup
MozReview-Commit-ID: HKNgBRENrcY

--HG--
extra : rebase_source : ea1803f832b586e0bf10e3a9fbec96a0f0410bf2
2016-12-29 19:05:39 +01:00
Ryan VanderMeulen
9f48ae4f9f Merge inbound to m-c. a=merge 2016-12-30 10:04:47 -05:00
JW Wang
4eb1252534 Bug 1326330. Part 2 - add assertions and checks. r=JamesCheng
1. ensure the 'finish' event is notified only once.
2. assert pushing items to a finished queue.

MozReview-Commit-ID: 9lYWPANVz0m

--HG--
extra : rebase_source : c05b0c77fdee324798579e0e2ebec6ce6303cbf6
extra : intermediate-source : 80be35003c76fc9cc74f206576394b46317b7880
extra : source : 14f5d5c064fddbbcf5728fb4d19e9c0a4e45fac7
2016-12-23 19:19:04 +08:00
JW Wang
3985fd7208 Bug 1326330. Part 1 - remove unused functions. r=JamesCheng
MozReview-Commit-ID: 66XDaghbKUy

--HG--
extra : rebase_source : a25d3413d6f076366373b92fd51ff850bb1dd79e
extra : intermediate-source : a9f7a68b4bff23ec0a059f5cc2a7fca92c1501bd
extra : source : d2dbc97390bc85fba1bd0a53d780f6122cc96ac7
2016-12-23 19:17:11 +08:00
JW Wang
7be77921c0 Bug 1325321 - let DecodingState handle audio/video pop events. r=kaku
MozReview-Commit-ID: 9EjeOfn1vBU

--HG--
extra : rebase_source : 52efab5c60df935de35fb049926c639aa053e389
extra : intermediate-source : d760746364b9585128a74bf284246418eb024280
extra : source : 0537651366abb8524a3436f0208d28b3248a1c52
2016-12-22 17:28:14 +08:00
Wes Kocher
26a1ba5c14 Backed out 27 changesets (bug 1323100) for clipboard leaktest failures a=backout
Backed out changeset 84fb749698ab (bug 1323100)
Backed out changeset d6d25e8bd001 (bug 1323100)
Backed out changeset 1b0855bb0c38 (bug 1323100)
Backed out changeset b6953e3f5739 (bug 1323100)
Backed out changeset 5572f3b63215 (bug 1323100)
Backed out changeset 12fb4c533659 (bug 1323100)
Backed out changeset c36524e4e919 (bug 1323100)
Backed out changeset 1e3b3eddbe26 (bug 1323100)
Backed out changeset 061110f1ae12 (bug 1323100)
Backed out changeset 413dbd31725b (bug 1323100)
Backed out changeset 06550f7eca62 (bug 1323100)
Backed out changeset 940933b13b36 (bug 1323100)
Backed out changeset a6d75c1cd724 (bug 1323100)
Backed out changeset 681cacbbaa3b (bug 1323100)
Backed out changeset 3d53787293f6 (bug 1323100)
Backed out changeset c0340dfe4766 (bug 1323100)
Backed out changeset 9f554991549d (bug 1323100)
Backed out changeset 757539e7039a (bug 1323100)
Backed out changeset a3c9b45aa917 (bug 1323100)
Backed out changeset 23d69df98a66 (bug 1323100)
Backed out changeset 1297ded6a01d (bug 1323100)
Backed out changeset f4235b97257f (bug 1323100)
Backed out changeset 93419cb4f29f (bug 1323100)
Backed out changeset 865d1b81c804 (bug 1323100)
Backed out changeset 54acf4ef8e84 (bug 1323100)
Backed out changeset 88d17bcd8205 (bug 1323100)
Backed out changeset 0c466e5e8933 (bug 1323100)
2016-12-29 16:28:36 -08:00
Markus Stange
48513de60f Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : dffab11abf7d4b57fa54475fd22e71b84375cd7b
2016-12-29 22:32:52 +01:00
Markus Stange
11eb304af2 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : 6ebeba2b28f643a4b555e889b2f4f99a55e68485
2016-12-21 23:06:56 +01:00
Markus Stange
4e6ca03c5d Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : ce8fe0481c8e3c3d3efd3d1c15480490943ee202
2016-12-21 23:06:45 +01:00
Haik Aftandilian
7e7b9330e3 Bug 1322716 - Remove /private/var regex from GMP sandbox rules. r=jesup, r=cpearce, r=gcp
MozReview-Commit-ID: I1Y2MOum5T3
2016-12-19 18:16:31 -08:00
Markus Stange
1b72f37c98 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : ad47978ef81d048a90b9803803201eee32974024
2016-12-21 11:43:50 +01:00
Wes Kocher
2045ef4aab Merge m-c to inbound, a=merge
MozReview-Commit-ID: ESXuJFW2Tgr
2016-12-29 12:08:05 -08:00
Kilik Kuo
c0c0027fee Bug 1325543 - Avoid unnecessarily awaiting procedure for Widevine CDM installation. r=jwwang
Currently, gecko doesn't support download and installation for Widevine CDM on Android.
Returning Cdm_not_supported avoids the subsequent call to AwaitInstall() while requesting MediaKeySystemAccess.

MozReview-Commit-ID: 3mOEf9iWE1G

--HG--
extra : rebase_source : 59649e5048424c38033c3c6e6c48f89ea4997a8e
2016-12-29 20:30:31 +08:00
JW Wang
51911743dc Bug 1325905. Part 7 - add assertions to ensure Ensure{Audio,Video}DecodeTaskQueued is never called by DecodingFirstFrameState. r=kaku
MozReview-Commit-ID: 9zSuH4p0aqg

--HG--
extra : rebase_source : 315b05e6acda578f7e4ba76478ea3096cb196b1c
extra : intermediate-source : 1849928297d4fd028bd53010f6f2dc1a2af85950
extra : source : ed06f086bb403ddfa0296b6be87601188ada81c6
2016-12-21 18:26:31 +08:00
JW Wang
2942cc95b4 Bug 1325905. Part 6 - let DecodingFirstFrameState::Enter() call Request{Audio,Video} instead. r=kaku
MozReview-Commit-ID: AH1F9hMJorM

--HG--
extra : rebase_source : ffd3b9711fa7be5db2445b75a7e875bd6b44c1b5
extra : intermediate-source : 1477500ceba6772fe5b93f318f1a13f03d3dff03
extra : source : 240f60c1c35b92facdec77f22022fed4babf4f84
2016-12-22 04:32:47 +08:00
JW Wang
354ad927a8 Bug 1325905. Part 5 - let DecodingFirstFrameState override Handle{Audio,Video}Waited. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 5oydItSvnMF

--HG--
extra : rebase_source : 5da4ad2f0fbf010a78c6b4e7cbab70378a002758
extra : intermediate-source : 0a882fb53fd51a71f9a3914074e9020d4eb87c4f
extra : source : 9927e37c9383e9204cbaf1b0dbc6fbfdff48df82
2016-12-21 18:23:00 +08:00
JW Wang
5f9c0a1f53 Bug 1325905. Part 4 - let DecodingFirstFrameState override Handle{Audio,Video}NotDecoded. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 87CwSdtTwi4

--HG--
extra : rebase_source : a16404e208ae5cd9b008728249cea444a7b229e7
extra : intermediate-source : 3fbfa4532f6a54ea9e1aa7b0e9880539ca57c811
extra : source : 22a75175dd957605e70096b029a677b4d2ac2d42
2016-12-21 18:16:25 +08:00
JW Wang
8901ee07af Bug 1325905. Part 3 - split HandleNotDecoded() into HandleAudioNotDecoded() and HandleVideoNotDecoded(). r=kaku
MozReview-Commit-ID: 3RcG43pxGSv

--HG--
extra : rebase_source : 75460198f494efd087f7b16816ece042c50873c8
extra : intermediate-source : c61d6b5eab101c7e978d9253e9ef524a1b8d92f8
extra : source : 8a8878c5fdcc7d40b48c66c4efda303f2e569ba5
2016-12-21 18:00:37 +08:00
JW Wang
6b395243f2 Bug 1325905. Part 2 - move IsWaitForDataSupported() assertions into MediaDecoderReaderWrapper. r=kaku
MozReview-Commit-ID: 6KwjHONHKo

--HG--
extra : rebase_source : f6da0198c63f27d002d5118ac8a12d436d9c2586
extra : intermediate-source : 1100a896ff400a101ac166cc82e75e28b37e2c5e
extra : source : 19cab6225fc2969fd5f1f445f48c90b2de2481e7
2016-12-21 17:37:56 +08:00
JW Wang
9d8e66b8c1 Bug 1325905. Part 1 - add assertions to MDSM::Request{Audio,Video}Data. r=kaku
MozReview-Commit-ID: JjRsv2wdLUq

--HG--
extra : rebase_source : 6393b2650bec9e157ebe20cccc7d8242df34cec1
extra : intermediate-source : 0bb565e52e2bf69d64cc37b88e0cc6342d98442d
extra : source : 893f204d72ffa399a85bde9de97649a531ed54ba
2016-12-21 17:21:21 +08:00
Andreas Pehrson
c66e1073f9 Bug 1305949 - Use the same path for passing on missed data to video sink, as during normal operation. r=ctai
MozReview-Commit-ID: FDKFf1skYVe

--HG--
extra : rebase_source : 83a1b9ec57e3b83807a482009558a78c80e1774a
extra : histedit_source : b4f61d91f7832c70585a79ce5381eafcdc5c761f
2016-10-13 11:18:53 +02:00
Andreas Pehrson
63cefa6875 Bug 1305949 - Refactor code that feeds video stream sink when it gets added. r=ctai
This mostly simplifies the code, but there are two changes to the logic as well.

1) The decision to install the listener or not used to be based on if the track
   existed in mUpdateTracks, while feeding the sink would look at the
   StreamTracks as well. This now looks at StreamTracks since an ended track is
   kept there but removed from mUpdateTracks. That means that we also
   NotifyEnded() if the track was in the StreamTracks but not in mUpdateTracks.

2) I removed the code that feeds a video stream sink with the last chunk in
   case the graph's current time has passed the end of the track. Tests should
   be written so that we have guarantees that there will be video data when a
   video stream sink gets added. If this fails we should fix the root cause of
   such a timing issue instead of wallpapering it with an old frame. I think
   this could be masking other issues. We'll see how this acts out on try.

MozReview-Commit-ID: KKr9JhVpxZt

--HG--
extra : rebase_source : f775fcfbe9647e29ee107ecc7b1f39c2d91f3b0d
extra : histedit_source : 4fa675ce93dc67d7db972a07bb3236f34707e7d3
2016-09-28 16:12:20 +02:00
Phil Ringnalda
ce22845813 Merge m-c to m-i
MozReview-Commit-ID: 28f3Y4WDMFL
2016-12-27 20:38:00 -08:00
JW Wang
21a9b72957 Bug 1325004. Part 7 - remove Push(). r=kikuo
MozReview-Commit-ID: 7fNAGwKhKSN

--HG--
extra : rebase_source : b4c1b541e9a60420f1dd3f07d364881d05059d82
extra : intermediate-source : 5ddd990ae771bedabd12a86c1fa86b79d42199c9
extra : source : f619a366739ccf00692dcfa0fa1bfa02ef3ae938
2016-12-21 16:06:58 +08:00
JW Wang
75c6cf0698 Bug 1325004. Part 6 - let DecodingState call Push{Audio,Video} instead. r=kikuo
MozReview-Commit-ID: boYTgSK4hw

--HG--
extra : rebase_source : 7e7bed1edf4cde0e4e47295f20815a05ccbbe087
extra : intermediate-source : 57cd629c425d628ce65b9ea9943d9e56e866b710
extra : source : 176b75c814a4f08dc8fb88ffd3ae714ee90337fa
2016-12-21 16:05:08 +08:00
JW Wang
a0227d9704 Bug 1325004. Part 5 - let BufferingState call Push{Audio,Video} instead. r=kikuo
BufferingState will call DispatchDecodeTasksIfNeeded() if not done buffering.

MozReview-Commit-ID: Kzqqn8lXPLm

--HG--
extra : rebase_source : fa4e4d4c4b9d637b7ca577b371e8561ffc87f9b2
extra : intermediate-source : a843f7147b2cf06bd2aebaf737e59838ad7cd20a
extra : source : 7459d72992ecbd9ea45109bf57da31c8da3b57dd
2016-12-21 16:03:16 +08:00
JW Wang
aa131689bf Bug 1325004. Part 4 - let NextFrameSeekingState call Push{Audio,Video} instead. r=kikuo
MozReview-Commit-ID: 6E2BfLNh91r

--HG--
extra : rebase_source : 77c10ef30b7d65d227b91a2c2226ff89fcbd1e3e
extra : intermediate-source : dac931a547edc1398762e7c49517bb4d7b9ea015
extra : source : fa74c3a186074452e63c0bd7c50664ff04983cca
2016-12-21 15:56:18 +08:00
JW Wang
1b1f735190 Bug 1325004. Part 3 - let DecodingFirstFrameState call Push{Audio,Video} instead. r=kikuo
DecodingFirstFrameState needs only at most one audio or video sample.

MozReview-Commit-ID: 2pRrPlCUBSf

--HG--
extra : rebase_source : 16dfce121c1e1c151a6dbcbee49f179d3793b22b
extra : intermediate-source : 2be72f13608fd5029991f6ae79cc73c86f7f1a0b
extra : source : 61f35a1275101a222cea89d4dd6d873181f33e57
2016-12-21 15:54:30 +08:00
JW Wang
0ea283e2a4 Bug 1325004. Part 2 - let AccurateSeekingState call Push{Audio,Video} instead. r=kikuo
AccurateSeekingState can stop decoding once there is one sample in the queue.

MozReview-Commit-ID: 76C7vX7ua14

--HG--
extra : rebase_source : 507410f3873ed9de2166344e99e03f9b43b46ad7
extra : intermediate-source : dd7d2547486711cdd1a9c7adc2a48e1ffec168bf
extra : source : 0285b6fc5dbed808cd30375defbc415e875647a1
2016-12-21 15:51:45 +08:00
JW Wang
c9965372e4 Bug 1325004. Part 1 - add PushAudio() and PushVideo(). r=kikuo
MozReview-Commit-ID: KJdOy1Ke6Xg

--HG--
extra : rebase_source : 6e25e69c3cbdd3c2bc47e203926f2844b802747e
extra : intermediate-source : 57bfb6a53b9e4d2f7a0b21c21df5bc3f29ac9c3a
extra : source : 47cf0437e38243bb0c1b2ba3bf2bc54af2302fbb
2016-12-21 15:36:44 +08:00
Randell Jesup
ac570b16c4 Bug 1250356: rollup of changes for webrtc after applying webrtc.org v49 update r=pkerr,ng,pehrsons,etc
See ssh://hg.mozilla.org/users/paulrkerr_gmail.com/webrtc49_merge/ for the
patch development history.
2016-12-27 19:41:02 -05:00
James Cheng
4e7969fe5b Bug 1325558 - [EME][Fennec] Handle Sample wait for key for OOP decoding case. r=kikuo
MozReview-Commit-ID: KqdAdqdpAvX

--HG--
extra : rebase_source : 7c627de1ec571e4634cca9c910cb5e7353a669f2
2016-12-23 15:47:58 +08:00
Phil Ringnalda
b94a0cbd73 Merge m-i to m-c, a=merge 2016-12-24 16:51:17 -08:00
Marco Castelluccio
533966fbc4 Bug 1313339 - Also use modules loaded in the process to decide about DXVA blocklisting. r=gerald 2016-12-24 10:17:46 +01:00
Kilik Kuo
c25c957225 Bug 1325356 - Remove unnecessary SamplesWaitingForKey object in VideoDataDecoder. r=jwwang
MozReview-Commit-ID: 7uYfh3F2t2e

--HG--
extra : rebase_source : fb09263e3da9e38993feb8385d810d5abb1b692e
2016-12-23 12:49:05 +08:00
JW Wang
b245f6d89e Bug 1319295. Part 3 - enable dormant for the test. r=jya
MozReview-Commit-ID: 9dvmRXbr683

--HG--
extra : rebase_source : 89757edee2d01881902583b7c54a8f9084392248
extra : intermediate-source : 487459ad82406a06b9a5d1b4a53290c8aa3ee652
extra : source : 3e90c3305c9988daa2cef10b3209f629ccc6dd2d
2016-12-20 17:05:25 +08:00
JW Wang
155621f9d6 Bug 1319295. Part 2 - reject the seek promise with WAITING_FOR_DATA so MDSM has a chance to call WaitForData() and seek again. r=jya
MozReview-Commit-ID: I8A0rQMcTya

--HG--
extra : rebase_source : 85ef759034d44e02d653a5aa71fd75fb01bb8035
extra : intermediate-source : 7a82d4beffd3247d12e13a6c11232dfa94db4d28
extra : source : 84a184466957ecf4f2107b94ca2261f706e6da5b
2016-12-16 17:30:28 +08:00
JW Wang
e6e5696cf4 Bug 1319295. Part 1 - add a field to identify audio or video seek failures. r=jya
MozReview-Commit-ID: 3PXlISED4tm

--HG--
extra : rebase_source : 18f1b074cacdacdc4dff270662e4609cdff94b76
extra : intermediate-source : 4205a6383c79d09f962853d8b4d8ddb5797bc79e
extra : source : 2e98d6a4761e4b42311fc50b9a5bcb55741eda34
2016-12-16 16:57:27 +08:00
JW Wang
7721ac45c7 Bug 1324629. Part 5 - replace some member functions with lambda. r=kaku
MozReview-Commit-ID: 8mRePsDxUWx

--HG--
extra : rebase_source : 936f6fad7c4b1de2e5c255d12398e20ba48a85cf
extra : source : e68eeaf321baa4fe2363af2966c3522326b18fe2
2016-12-22 14:01:21 +08:00
JW Wang
0323cca4c5 Bug 1324629. Part 4 - clean up some functions and comments. r=kaku
MozReview-Commit-ID: HP2Tp8KbRoq

--HG--
extra : rebase_source : e2ac1431611f30a8d9ffb1fb3bcd30b6a52e31c6
extra : intermediate-source : c281654e20d3a91f310f6bd983c3ba2c6915afe7
extra : source : 867b2f18697a1b5a1b87b95ad6af8a4fc60e6162
2016-12-20 15:48:20 +08:00
JW Wang
d1e5b672ea Bug 1324629. Part 3 - remove AudioWait and videoWait callbacks. r=kaku
MozReview-Commit-ID: 9pXLLrYLN4c

--HG--
extra : rebase_source : c66cc3f37fd3cebb0d6a9c7525f863f2ade2a67e
extra : intermediate-source : fbb3fcf20109d9caa13e556c679aee5e692e78f2
extra : source : e8eff4dc4bc1fae74e6f228d51d9677d215ff66a
2016-12-20 14:31:29 +08:00
JW Wang
08a93dbdc4 Bug 1324629. Part 2 - remove video callback. r=kaku
MozReview-Commit-ID: 92t6GoznxL5

--HG--
extra : rebase_source : b1bf9053a396c501c918b8848d98ce920e3f09f6
extra : intermediate-source : 41414e1780251a382e900bb9ef5c011074278875
extra : source : 89fd50a16e61f3bfdfe445e1b49238ada801256b
2016-12-20 13:17:05 +08:00
JW Wang
6965b449bf Bug 1324629. Part 1 - remove audio callback. r=kaku
MozReview-Commit-ID: DbWwSNpYXLo

--HG--
extra : rebase_source : 901a519bc4864c61ee57bffe04ca61850422c862
extra : intermediate-source : 4db9b0aceda98d5a73b980582c12b8ae09b9c30b
extra : source : 3fadecee89e97b9cf9ffe464265c682ad5c5d28b
2016-12-20 12:54:23 +08:00
Kilik Kuo
dfa33df891 Bug 1325356 - Remove unnecessary SamplesWaitingForKey object in VideoDataDecoder. r=jwwang
MozReview-Commit-ID: 7uYfh3F2t2e
2016-12-23 16:00:35 -08:00
Wes Kocher
1f805d68a6 Backed out changeset 72f2f33715b4 (bug 1325356) for failing tests it added a=backout 2016-12-23 14:32:31 -08:00
Boris Zbarsky
d22d7aafa4 Bug 1320801 part 5. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's devicePixelRatio getter. r=bkelly 2016-12-22 11:05:54 -08:00
Carsten "Tomcat" Book
0aed7a4ac5 Merge mozilla-central to mozilla-inbound
--HG--
rename : testing/docker/base-build/HASH => taskcluster/docker/base-build/HASH
rename : testing/docker/base-test/HASH => taskcluster/docker/base-test/HASH
rename : testing/docker/centos6-build-upd/HASH => taskcluster/docker/centos6-build-upd/HASH
rename : testing/docker/centos6-build/HASH => taskcluster/docker/centos6-build/HASH
rename : testing/docker/decision/HASH => taskcluster/docker/decision/HASH
rename : testing/docker/image_builder/HASH => taskcluster/docker/image_builder/HASH
rename : testing/docker/recipes/tooltool.py => taskcluster/docker/recipes/tooltool.py
rename : testing/docker/tester/HASH => taskcluster/docker/tester/HASH
2016-12-22 16:25:35 +01:00
Andrea Marchesini
1605ddf333 Bug 1324181 - Better implementation of PeriodicWave constructor, r=padenot 2016-12-22 15:37:33 +01:00
ctai
6db62e5479 Bug 1325053 - Remove test_source_media.html. r=jwwang
The media attribute in source element is no longer needed in media element case. Remove related test case.

MozReview-Commit-ID: 7ckvEAl6HL4

--HG--
extra : rebase_source : d5346029fb115a0445733c90d43af00fe4919aa8
2016-12-21 23:30:23 +08:00
Cykesiopka
0bdf96120a Bug 1323998 - Stop using Scoped.h NSS types in dtlsidentity.(cpp|h) and nricectx.cpp. r=mt
Scoped.h is deprecated.

MozReview-Commit-ID: IRFLV2mfN4J

--HG--
extra : rebase_source : 4c2a73ed8c1e9c695716aafb2da099f60f889454
2016-12-21 22:09:10 +08:00
JW Wang
e34a7de0c4 Bug 1330889. Part 5 - remove MDSM::mState. r=kikuo
MozReview-Commit-ID: 648LWr4WU0F

--HG--
extra : rebase_source : 4135d2d76845cd2b90793b7bd1ba9176c39f80de
2017-01-13 15:19:13 +08:00
JW Wang
5cab9e2e2b Bug 1330889. Part 4 - remove the mState checks from MaybeStartPlayback(). r=kikuo
The same reason as P2.

MozReview-Commit-ID: GqWgiXjlTrb

--HG--
extra : rebase_source : e2664650aaf3d209af1baf539cb0bb860f701fdc
2017-01-13 15:14:27 +08:00
JW Wang
3d5bdb30e7 Bug 1330889. Part 3 - remove the mState check from HasLowBufferedData(). r=kikuo
We have |mBuffered.Ref().IsInvalid()| below to check if mBuffered is valid.

MozReview-Commit-ID: KM88fSsCTlH

--HG--
extra : rebase_source : 049951856e2d78a5c53e54a7be728b0089c8e9dc
2017-01-13 15:13:05 +08:00
JW Wang
611a8c7136 Bug 1330889. Part 2 - remove some mState checks from MDSM::ResetDecode. r=kikuo
We want to separate mechanism from policy. The policy should be encoded in
the state objects which will decided whether to call ResetDecode(). It is
also possible to add a new state which has to call ResetDecode().

MozReview-Commit-ID: 3orxW4FNuVD

--HG--
extra : rebase_source : 7f76f279624e91cbe7823acfaac11632d8da4e2e
2017-01-13 15:09:11 +08:00
JW Wang
f17f6489f7 Bug 1330889. Part 1 - remove the assertion in MDSM::FinishShutdown. r=kikuo
http://searchfox.org/mozilla-central/rev/3f614bdf91a2379a3e2c822da84e524f5e742121/dom/media/MediaDecoderStateMachine.cpp#1825
This assertion ensures we never escape the SHTUDOWN state.

MozReview-Commit-ID: 6jPgVQuiPZf

--HG--
extra : rebase_source : bc402bc7942accf04bad3f509af7ba2bde98218e
2017-01-13 15:04:11 +08:00
Wes Kocher
b0df943433 Backed out 2 changesets (bug 1329319) because it will not build a=backout
Backed out changeset ae96a44e6a8f (bug 1329319)
Backed out changeset a75ecabf7129 (bug 1329319)

MozReview-Commit-ID: HQ3on7jlZXN
2017-01-09 15:46:42 -08:00
Gerald Squelart
189314d9cf Bug 1329319 - Allow NewRunnableMethod to method of a non-refcounted base class - r=froydnj
This is done by storing the object pointer based on the exact pointee type,
instead of as hinted by the method-pointer, which could be a non-refcounted
base class.

The stored pointer type is statically-checked to be derived from (or the same
as) the class type from the method-pointer, to prevent misuses.

One change had to be done in TrackBuffersManager, as it was passing another
type and relying on implicit pointer conversions. A simple `.get()` to pass
the raw pointer type (to be stored in a RefPtr) fixed that one issue.

MozReview-Commit-ID: 4kH0XdjB5Rk

--HG--
extra : rebase_source : 3eb7fa3cb1873f71b4d5e7118d2dc48f6fdf2874
2017-01-09 11:11:16 +11:00
Gerald Squelart
5d4cad020a Bug 1320785 - Remove obsolete 'ns' from 'StorensRefPtrPassByPtr' - r=froydnj
MozReview-Commit-ID: FuhlsLVFdLi

--HG--
extra : rebase_source : c1bb8330c4ca0dbf15a68a4dbd0dfeff615163be
2017-01-09 07:55:19 +11:00
Sebastian Hengst
0e93a37b4f Bug 1329547 - Remove media test checks for Vista: Follow-up: Add back check for Windows to fix bustage. r=RyanVM 2017-01-09 21:15:15 +01:00
Nico Grunbaum
4544ec040c Bug 1328440 - make legacy getStats stats use old type field names; r=jib
MozReview-Commit-ID: EyK7dpSsEJ0

--HG--
extra : rebase_source : ac7cbb17c6e3e63c6bbf80034c30ea9cafa92f79
2017-01-03 14:57:07 -08:00
Nico Grunbaum
6a4311817a Bug 1322503 - Hyphenate rtc stats type as per spec. r=jib,smaug
MozReview-Commit-ID: 8zYkt8gOpsM

--HG--
extra : rebase_source : e307ac6bc56a5ce732f8abd2e1a9e5c755dc8fcc
2016-12-16 01:27:40 -08:00
Chris Peterson
faf39081ac Bug 1329562 - Part 2: Remove gUM screensharing.allow_on_old_platforms check for XP. r=jesup
MozReview-Commit-ID: GWCjf8mT3Wl

--HG--
extra : rebase_source : c6d267585114c8e82550dc8378596a26054dac8d
2017-01-08 12:12:03 -08:00
Chris Peterson
64471d9880 Bug 1329562 - Part 1: Remove WebRTC checks for Vista. r=jesup
MozReview-Commit-ID: IGv5weXLIwJ

--HG--
extra : rebase_source : 3bc86cba7cedf37395504f5792d0e8803df30676
2017-01-08 00:18:22 -08:00
Chris Peterson
7a353f99e3 Bug 1329547 - Remove media test checks for Vista. r=cpearce
MozReview-Commit-ID: BkIARSntDud

--HG--
extra : rebase_source : 9c0a6ad4f72ef56d3ad84da9d752c387afe99e99
2017-01-08 12:15:33 -08:00
Chris Peterson
4b28bd3f34 Bug 1329547 - Remove EME checks for Vista. r=cpearce
MozReview-Commit-ID: J1ww70KMQuw

--HG--
extra : rebase_source : 8cbf795562a02469ce1c5629c5c693700ee8fcea
2017-01-08 00:56:45 -08:00
Paul Adenot
01a3eba51c Bug 1325066 - Use correct exception for connect calls between AudioNodes and AudioParams of different contexts. r=baku
MozReview-Commit-ID: KrG4ZAya088

--HG--
extra : rebase_source : c6d7c7c4dcc58aacdeb79ff7966050aad6170f83
2016-12-21 14:45:51 +01:00
Florian Quèze
fc6379e827 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Cameron McCormack
6a2cfc71a3 Bug 1323890 - Remove comment from already re-enabled test.
MozReview-Commit-ID: AiOouXVyo1u
2017-01-05 11:21:19 +08:00
karo
c70714c3e2 Bug 1321076 - In the case of alpha, VPXDecoder uses overloaded CreateAndCopy that takes alpha plane. r=jya
MozReview-Commit-ID: AIJxPRjGvrg

--HG--
extra : rebase_source : 15da81910ab6909ba9659e1f5c7ea86e4d0ebaa4
2016-12-21 15:21:35 +13:00
karo
1da7e759db Bug 1321076 - New overloaded CreateAndCopy method that takes alpha plane and returns VideoData with SharedRGBImage, in the case of alpha. r=jya
MozReview-Commit-ID: AIJxPRjGvrg

--HG--
extra : rebase_source : fcde786d529f69ba6fe2a533e351a8b33afa1de7
2016-12-21 15:19:46 +13:00
karo
00b8886839 Bug 1321076 - Added util functions to help with YUVA to BGRA conversion. r=jya
MozReview-Commit-ID: JZDdbM2gt0g

--HG--
extra : rebase_source : 572dbf59e8a3b41e6c7366d1579a28e365062260
2016-12-21 15:00:46 +13:00
karo
a91edd5c7a Bug 1321076 - PDMFactory defaults to using VPXDecoder when alpha is present. r=jya
FFmpegDecoderModule and AndroidDecoderModule returns nullptr if alpha is
present, then PDMFactory rolls over to using VPXDecoder.

MozReview-Commit-ID: H2JaolEfJgR

--HG--
extra : rebase_source : a2b4bad848c6350041c2cff805803fb5728342d2
2016-12-21 15:00:17 +13:00
karo
60f87e60ec Bug 1321076 - Updated VPXDecoder to decode alpha frames. r=jya
VPXDecoder initializes a second context when alpha is encountered.

MozReview-Commit-ID: FMzHFvP8YK0

--HG--
extra : rebase_source : a287670aa62949e8811f678810eb3ac5e3acdbe3
2016-12-21 14:49:50 +13:00
Ting-Yu Chou
417dd84962 Bug 1322465 part 3 - Use explicit/MOZ_IMPLICIT for the unary constructors in dom/. r=Ehsan
MozReview-Commit-ID: GV26INAj3k2

--HG--
extra : rebase_source : 9943b8451a69ebd3b8141ae3f9db7c4a48d7852c
2016-12-16 15:49:53 +08:00
Chris Pearce
80a5e71248 Bug 1325185 - Fix operator precedence in GMPUtils' ToHexString(). r=gerald
MozReview-Commit-ID: 41KoItfOYts

--HG--
extra : rebase_source : b42a325a00f5939ee3c4945c1a5cee826f89c385
2016-12-22 09:20:17 +13:00
Carsten "Tomcat" Book
d1a09e06c8 Merge mozilla-central to autoland 2016-12-21 17:07:24 +01:00
Carsten "Tomcat" Book
e8b62ac15b merge mozilla-inbound to mozilla-central a=merge 2016-12-21 16:57:08 +01:00
Kaku Kuo
8ce87f653c Bug 1325003 - Remove NextFrameSeekTask again; r=jwwang
MozReview-Commit-ID: 9tdeCHJ2kxa

--HG--
extra : rebase_source : a3a9022ee458fea8b1070d094265f42b3a983b8c
2016-12-21 15:36:37 +08:00
Kaku Kuo
5c4d2f2a1d Bug 1324357 - Remove MediaDecoderReader::ForceZeroStartTime(); r=jya
MozReview-Commit-ID: Cm511lpJQ4W

--HG--
extra : rebase_source : c9d1a5a66b787ffffc221c194bb18559c006fa4b
2016-12-21 14:58:38 +08:00
JW Wang
d585e07803 Bug 1324371. Part 6 - assert |VideoQueue().AtEndOfStream()|. r=kaku
UpdateSeekTargetTime() is called only when NeedMoreVideo() is false.
if |data| is null, both |VideoQueue().IsFinished()| and |VideoQueue().GetSize() == 0| must be true
and therefore |VideoQueue().AtEndOfStream()| must also be true.

MozReview-Commit-ID: DZKiVtt6iIM

--HG--
extra : rebase_source : 084bc4d2cc8118a794cc97675d41f7010dccbe99
extra : intermediate-source : e03bfa7a48d5e3210ac00f801103b1b869b9ac2a
extra : source : d2facb5bd27127c5c3eba0b44e0cc06fb212eabd
2016-12-19 17:40:10 +08:00
JW Wang
959b560539 Bug 1324371. Part 5 - add FinishSeek() and remove MaybeFinishSeek(). r=kaku
MozReview-Commit-ID: FvbLdPQWZ82

--HG--
extra : rebase_source : 414a68922ed1f813dc73ae0ff794faa5b603bdc3
extra : intermediate-source : 5b1230b2af7799f098c43479964756fb2f299f3e
extra : source : f8c4263f206e44666e21eaaff9c47d833d7635c3
2016-12-19 17:29:01 +08:00
JW Wang
fe9d367749 Bug 1324371. Part 4 - assert NeedMoreVideo() in some functions. r=kaku
Because !mSeekJob.mPromise.IsEmpty() now always implies NeedMoreVideo().

MozReview-Commit-ID: BN0NZzaBlCF

--HG--
extra : rebase_source : ab570336cef7fd6841835d981696d03c3cdb1f60
extra : intermediate-source : 415774b6eca227442d6773bb989443befc8d6822
extra : source : 0fc219d031b6dd0b32979a571cc87422ae1f2af9
2016-12-19 17:18:03 +08:00
JW Wang
99a35fd827 Bug 1324371. Part 3 - inline IsVideoRequestPending() which has only one caller. r=kaku
MozReview-Commit-ID: 7bBDRQV9zJ1

--HG--
extra : rebase_source : fbea123a24facc894f2dde6d71227df3b49ccdb1
extra : intermediate-source : a0476aee581e92ce668c156e77098024632e361a
extra : source : 3ffc5fc0eb0b4a5143d9ea2890636025532bbdc5
2016-12-19 17:03:16 +08:00
JW Wang
e997f22de5 Bug 1324371. Part 2 - remove IsVideoSeekComplete() and finish seek without waiting for pending video requests. r=kaku
MozReview-Commit-ID: 8GRbxJEG33j

--HG--
extra : rebase_source : d6eed748d1b349ede275add493e351492368706e
extra : intermediate-source : b29d6a645eeea72524cd86343a929d52a6f0368e
extra : source : 17a7121d86a6c2ab82acdedec7ad2747db9aded0
2016-12-19 16:53:50 +08:00
JW Wang
3e8bda6ab3 Bug 1324371. Part 1 - remove IsAudioSeekComplete(). r=kaku
We don't need to wait for pending audio requests before finish seeking.

MozReview-Commit-ID: BWoivb9Gjux

--HG--
extra : rebase_source : c044c8066d7dfe8b324762145977a5d7ea84702f
extra : intermediate-source : afa7a29babfeaa8df1a10e606c090d03e4fab789
extra : source : aeb0ed38110fdfc172e25d4895e81d2a4f8a1300
2016-12-19 16:24:30 +08:00
Andrea Marchesini
7d3342df6b Bug 1324659 - AudioParam.minValue/maxValue, r=padenot 2016-12-21 10:53:38 +01:00
Andrea Marchesini
60364b27c9 Bug 1324568 - Implement AudioScheduledSourceNode, r=padenot 2016-12-21 10:53:17 +01:00
Andrea Marchesini
de7438cf52 Bug 1324352 - Implement BaseAudioContext, r=padenot 2016-12-21 10:52:50 +01:00
Cameron McCormack
d4d8ba1d5f Bug 1324624 - stylo: Mark currently failing crashtests with asserts-if(stylo,...). r=xidorn
MozReview-Commit-ID: 7iiwRwiQ8s4
2016-12-21 15:42:36 +08:00
Sebastian Hengst
ac153b5903 Backed out changeset 50a74758ee7d (bug 1324352) for failing webaudioeditor devtools tests like test/browser_audionode-actor-bypass.js. r=backout 2016-12-20 23:03:36 +01:00
Sebastian Hengst
d17f05006b Backed out changeset d70b97db8d9e (bug 1324568) 2016-12-20 23:02:48 +01:00
Sebastian Hengst
2c02931295 Backed out changeset f350bbf9e636 (bug 1324659) 2016-12-20 23:02:44 +01:00
Eugen Sawin
e586fb1608 Bug 1324789 - [1.0] Add MP3 demuxer test for a file with partial optional XING header fields. r=jya 2016-12-20 22:21:00 +01:00
Wes Kocher
b5f33578be Merge m-c to inbound, a=merge 2016-12-20 11:47:17 -08:00
Wes Kocher
584a2f0f62 Merge inbound to central, a=merge
MozReview-Commit-ID: Cr9L1dhIzP2
2016-12-20 11:41:57 -08:00
Andrea Marchesini
f9c4996182 Bug 1324659 - AudioParam.minValue/maxValue, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini
bd93c7bd15 Bug 1324568 - Implement AudioScheduledSourceNode, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini
ad79ef8d0a Bug 1324352 - Implement BaseAudioContext, r=padenot 2016-12-20 20:20:41 +01:00
Masatoshi Kimura
f10ee4bed4 Bug 1149966 - Stop using enablePrivilege() in test_getUserMedia_scarySources.html r=jib
MozReview-Commit-ID: IQl4ijKZ2gt

--HG--
extra : rebase_source : f9f1bf4e784c75b15b265d14cf0380e4f243ad13
2016-12-16 21:35:04 +09:00
Andrea Marchesini
826ada7c51 Bug 1324537 - Implement the OfflineAudioCompletionEvent constructor - part 2, r=me 2016-12-20 11:02:50 +01:00
Andrea Marchesini
4f29b70d10 Bug 1324537 - Implement the OfflineAudioCompletionEvent constructor, r=smaug 2016-12-20 10:41:30 +01:00
Jean-Yves Avenard
c1797cf144 Bug 1319992: P4. Use Mutex in place of Monitor. r=jwwang
MozReview-Commit-ID: 79z6EtZQhYu

--HG--
extra : rebase_source : c0b7bc861641178539cab15da843d0b4d6ae416e
2016-11-30 01:50:08 +11:00
Jean-Yves Avenard
20853d0607 Bug 1319992: P3. Remove no longer used seeking argument. r=jwwang
MozReview-Commit-ID: 9Oc0SHX0Rw2

--HG--
extra : rebase_source : 845ab6daa4414e57d5ce02dee1424df29d3b962d
2016-11-30 01:42:50 +11:00
Jean-Yves Avenard
a64614f927 Bug 1319992: P2. Update MediaDecoderReader documentation. r=jwwang
Remove all no longer relevant information.

MozReview-Commit-ID: 89HB0Pk1XoI

--HG--
extra : rebase_source : ca1676a82ea3ed6df7f22c20d6cb5f36a9682897
2016-11-30 01:23:38 +11:00
Jean-Yves Avenard
c9d75c91a6 Bug 1319992: P1. Run demuxing operations on its own task queue. r=jwwang
We runs all demuxing operations on a dedicated task queue.
MediaDataDemuxer's members using a synchronous API are handled via thread-safe copy that are updated along the operations.

The buffered range calculation is now handled separately and the entire operation is made asynchronous.

MozReview-Commit-ID: Gd4DCC8Ix6n

--HG--
extra : rebase_source : b90bad0a386c2a1e30acc00e3db9db6b6762aa3b
2016-11-28 21:08:01 +11:00
Jean-Yves Avenard
ff544c1387 Bug 1309865: Don't expect that an event will be fired within a given time. r=gerald
We only care that we will enter suspended mode after a minimal time. On slow machines (like the linux try box) there are so many things at play that could delay a particular event.

So we remove the upper time test.

MozReview-Commit-ID: IAZVyuetYVp

--HG--
extra : rebase_source : 467d6a32dff88791d1238c0654d81b6d4afafc31
2016-12-20 12:53:09 +11:00
Wes Kocher
cc2a84852b Merge inbound to central, a=merge
MozReview-Commit-ID: 5Ytu9rQ8iD5
2016-12-19 16:46:20 -08:00
Carsten "Tomcat" Book
97d9339674 Merge mozilla-central to mozilla-inbound 2016-12-19 16:04:33 +01:00
Sebastian Hengst
eda03c6bbf Backed out changeset f3ac066c3741 (bug 1319992) for failing test_eme_stream_capture_blocked_case1.html. r=backout 2016-12-19 12:39:21 +01:00
Sebastian Hengst
54179fc7dd Backed out changeset 45afcd8cf9ef (bug 1319992) 2016-12-19 12:38:36 +01:00
Sebastian Hengst
e1bd6fb711 Backed out changeset 3cfdc09bf851 (bug 1319992) 2016-12-19 12:38:32 +01:00
Sebastian Hengst
05f0d649cb Backed out changeset 2ae0864c76bc (bug 1319992) 2016-12-19 12:38:28 +01:00
JW Wang
6e5a36be9f Bug 1324335. Part 3 - cache mTarget before resetting it. r=gerald
MozReview-Commit-ID: KknqPo2gGJK

--HG--
extra : rebase_source : 3eb7ce45e1309506f206f6a272d18028a2e337b7
extra : source : 9cf740e59fd6d971fbff1d607cdc0aa7a03a1f3c
2016-12-19 12:43:52 +08:00
JW Wang
6198322a66 Bug 1324335. Part 2 - Make SeekJob::mTarget a Maybe<>. r=gerald
MozReview-Commit-ID: A2M3b131nHH

--HG--
extra : rebase_source : 5f70d9ee5cfdd603e5e2cb661d88aa2199bea8de
extra : source : 13caeacbf180ae1c9465e593e28784b50c13ded9
2016-12-19 12:25:14 +08:00
Jean-Yves Avenard
8591c2a530 Bug 1319992: P4. Use Mutex in place of Monitor. r=jwwang
MozReview-Commit-ID: 79z6EtZQhYu

--HG--
extra : rebase_source : 925b627288e6a7237982ea11f76f99c04e782b39
2016-11-30 01:50:08 +11:00
Jean-Yves Avenard
65b1f05d4a Bug 1319992: P3. Remove no longer used seeking argument. r=jwwang
MozReview-Commit-ID: 9Oc0SHX0Rw2

--HG--
extra : rebase_source : 40faa64eab2d6ba65d092d5709103eb6daa30565
2016-11-30 01:42:50 +11:00
Jean-Yves Avenard
4d4410d2d0 Bug 1319992: P2. Update MediaDecoderReader documentation. r=jwwang
Remove all no longer relevant information.

MozReview-Commit-ID: 89HB0Pk1XoI

--HG--
extra : rebase_source : d739ed90268d2eabe21370758b25d35e03b030a4
2016-11-30 01:23:38 +11:00
Jean-Yves Avenard
c5eae5a4c0 Bug 1319992: P1. Run demuxing operations on its own task queue. r=jwwang
We runs all demuxing operations on a dedicated task queue.
MediaDataDemuxer's members using a synchronous API are handled via thread-safe copy that are updated along the operations.

The buffered range calculation is now handled separately and the entire operation is made asynchronous.

MozReview-Commit-ID: Gd4DCC8Ix6n

--HG--
extra : rebase_source : 6a18ce2552bf4cbf88e9b8db1c9a87e70623fd15
2016-11-28 21:08:01 +11:00
Phil Ringnalda
5b605a1320 Merge m-c to autoland 2016-12-18 20:24:15 -08:00
Phil Ringnalda
a6a339991d Merge m-i to m-c, a=merge
MozReview-Commit-ID: DIIe4uRVqAO
2016-12-18 20:22:37 -08:00
Chris Peterson
95b4fcca5f Bug 1324183 - Part 2: Remove MediaUnsupportedBeforeWindowsVista console message. r=gerald
--HG--
extra : histedit_source : cc1d8955d533bda2edab8044bf7d0cb6d4fcee7c
2016-12-17 13:13:11 -08:00
Chris Peterson
4b56a6fac1 Bug 1324183 - Part 1: Remove some Windows Vista and 7 version checks in dom/media/. r=gerald
--HG--
extra : amend_source : 64fbc1c09fd0b5d1b7c560716f8b23003662fe95
extra : histedit_source : b94fa9bb663c607affe43740e3a546861d6a74fb
2016-12-17 16:59:52 -08:00
JW Wang
acc47bb24b Bug 1323931. Part 6 - remove unused functions. r=kaku
MozReview-Commit-ID: LdyMhmOicSc

--HG--
extra : rebase_source : ff80c878bc71ef8da3fe9f2cc1e6958d614ec680
extra : source : 717559278a95217160df448f0d618944b06b9a53
2016-12-16 16:09:35 +08:00
JW Wang
0fe1eae210 Bug 1323931. Part 5 - remove mSeekedAudioData and mSeekedVideoData. r=kaku
MozReview-Commit-ID: 72hBe0dv2Xr

--HG--
extra : rebase_source : feacd094938d51a053c23561206c9e8393ba7436
extra : source : 9fdc2d1f930c4b4156af3c24cf9062349f52ac09
2016-12-16 16:01:57 +08:00
JW Wang
787900835c Bug 1323931. Part 4 - no need to update mDecoded{Audio,Video}EndTime in OnSeekTaskResolved(). r=kaku
For they are updated in MDSM::On{Audio,Video}Decoded.

MozReview-Commit-ID: 55Od3V9vIf2

--HG--
extra : rebase_source : b359dad4a9cefb2c81d097d05dda741c64447131
extra : source : 2811f9da4d1c5e55aa0d45c2be6e916bf43e3e86
2016-12-16 15:40:05 +08:00
JW Wang
004a39268e Bug 1323931. Part 3 - remove mIsAudioQueueFinished/mIsVideoQueueFinished and finish queues in place. r=kaku
MozReview-Commit-ID: 2MDZSa3g7cj

--HG--
extra : rebase_source : 8b8b5dafea4b9bf582fa307f5eaa0396bb7e0c2a
extra : source : 31784c6aa17d0a83526a59b26787942651613419
2016-12-16 15:28:09 +08:00
JW Wang
47ffa75f30 Bug 1323931. Part 2 - use raw pointers to reduce unnecessary ref-counting. r=kaku
MozReview-Commit-ID: 1iVaCGLqFCy

--HG--
extra : rebase_source : 5b1fe9d4c4328c33af00d55de75e5c9c8d61a30f
extra : source : e67869b74620a3bcc726b9341a516c41634ca69c
2016-12-16 15:11:19 +08:00
JW Wang
93d05bddc1 Bug 1323931. Part 1 - remove unnecessary comments and logs. r=kaku
They are already in MDSM::On{Audio,Video}Decoded, OnNotDecoded.

MozReview-Commit-ID: COivpHEaYdp

--HG--
extra : rebase_source : 2ca8eb2866ce54e822e44ff877b1dcb9032fb316
extra : source : 9e0e761a551d896ff1d5f7dc92d77270d8f93319
2016-12-16 14:55:50 +08:00
Kaku Kuo
8199d931d7 Bug 1322800 part 14 - remove SeekTask and NextFrameSeekTask; r=jwwang
MozReview-Commit-ID: 1oHKukYqLO4

--HG--
extra : rebase_source : c993b7d2766356ebb21fa11e479b166702ca32ec
2016-12-16 15:29:50 +08:00
Kaku Kuo
63f1c9b6b0 Bug 1322800 part 13 - disconnect NextFrameSeekingState and SeekTask; r=jwwang
MozReview-Commit-ID: 9bcYSd2fsp1

--HG--
extra : rebase_source : 913422b48ad22c9e5692d9c15791dcb8d17dd68c
2016-12-15 17:25:44 +08:00
Kaku Kuo
3a6d9723a1 Bug 1322800 part 12 - move all SeekingState data members; r=jwwang
MozReview-Commit-ID: BL4vUw3zErL

--HG--
extra : rebase_source : 25ed4da1f547542c49fb65679d9e0ab2ec30db3d
2016-12-14 16:27:03 +08:00
Kaku Kuo
ff8a7135af Bug 1322800 part 11 - use SeekingState::mSeekJob.mTarget to replace NextFrameSeekTask::mTarget; r=jwwang
MozReview-Commit-ID: DkkOoAEgNfH

--HG--
extra : rebase_source : 8da36b46f44956e11dac2fa023b929da585dd6e3
2016-12-14 15:48:22 +08:00
Kaku Kuo
68dd7bfe50 Bug 1322800 part 10 - use StateObject::{Audio,Video}Queue() to replate NextFrameSeekTask::m{Audio,Video}Queue; r=jwwang
MozReview-Commit-ID: Df87tNjaeAF

--HG--
extra : rebase_source : 98a07af519176a8585d8578dd7b53e17125adde6
2016-12-14 15:41:31 +08:00
Kaku Kuo
287d70eba7 Bug 1322800 part 9 - move NextFrameSeekTask::NextFrameSeekTask(); r=jwwang
MozReview-Commit-ID: DqyjLD2vb0V

--HG--
extra : rebase_source : 2a45266f840fff9ad9812105d5e4c4cdb70e0c5c
2016-12-14 15:28:23 +08:00
Kaku Kuo
fe43467d47 Bug 1322800 part 8 - move NextFrameSeekTask::IsVideoRequestPending(); r=jwwang
MozReview-Commit-ID: 9MEHVQUt7T0

--HG--
extra : rebase_source : e60eba634fdb46af48a701ef54b2200fa5a5f6dc
2016-12-14 15:18:49 +08:00
Kaku Kuo
8224c8a483 Bug 1322800 part 7 - move NextFrameSeekTask::NeedMoreVideo(); r=jwwang
MozReview-Commit-ID: AMA5OIkVQpT

--HG--
extra : rebase_source : b0892d78c7aa2c278ac15cd97ee943214ac58694
2016-12-14 15:15:40 +08:00
Kaku Kuo
e2472a1496 Bug 1322800 part 6 - move NextFrameSeekTask::Is{Audio,Video}SeekComplete(); r=jwwang
MozReview-Commit-ID: D4grujhMgHt

--HG--
extra : rebase_source : 62f9b98b3923d8727eb89e6ab61b2dd51d459030
2016-12-14 15:10:25 +08:00
Kaku Kuo
72758e96dc Bug 1322800 part 5 - move NextFrameSeekTask::RequestVideoData(); r=jwwang
MozReview-Commit-ID: 8MH6Ztbsxxd

--HG--
extra : rebase_source : 0790bab0d0abbab824ba9992330be35b60f24e21
2016-12-14 15:04:00 +08:00
Kaku Kuo
d6ff08b72a Bug 1322800 part 4 - move NextFrameSeekTask::MaybeFinishSeek(); r=jwwang
MozReview-Commit-ID: 51EchnVlGEX

--HG--
extra : rebase_source : 8727151e308e27754bd59ca555455d30a8756b99
2016-12-14 14:57:44 +08:00
Kaku Kuo
1c4e890ece Bug 1322800 part 3 - move NextFrameSeekTask::Handle{Audio,Video,Not}{Decoded,Waited}(); r=jwwang
MozReview-Commit-ID: 4AaVfc3avOP

--HG--
extra : rebase_source : 25cf0b06f15e7eef03414a24b0e5ddac8910c82b
2016-12-14 14:51:17 +08:00
Kaku Kuo
0a2f33ed4a Bug 1322800 part 2 - move NextFrameSeekTask::CalculateNewCurrentTime(); r=jwwang
MozReview-Commit-ID: 8plgauwNBme

--HG--
extra : rebase_source : 639bcd8d72431ab5683d7832fc16e9b5f690ff86
2016-12-14 11:21:24 +08:00
Kaku Kuo
515f750816 Bug 1322800 part 1 - move NextFrameSeekTask::Seek(); r=jwwang
MozReview-Commit-ID: IOai99XSetN

--HG--
extra : rebase_source : a4b61ba24b987f119de020d4909b096c5c1ed118
2016-12-14 10:49:24 +08:00
Jean-Yves Avenard
7569b21aa8 Bug 1324381: P1. Add gtest. r=gerald
Invalid videos with negative duration. Exception had been added to handle 32 bits encoded duration, not 64 bits one.

MozReview-Commit-ID: 8jwDwpMREmc

--HG--
extra : rebase_source : 0304db69d06590b65f5c64ae481be6a75b53a24e
2016-12-19 21:04:22 +11:00
Wes Kocher
c312b6dc60 Merge m-c to autoland, a=merge 2016-12-19 16:48:50 -08:00
Jean-Yves Avenard
0f319635c2 Bug 1324306: [MSE] Bump audio memory threshold to 20MB. r=gerald
MozReview-Commit-ID: LSAv3ujW2TX

--HG--
extra : rebase_source : 649dbc4b9d847c3d734c92408467fe309748682c
2016-12-19 20:17:50 +11:00
Phil Ringnalda
62c341846e Merge m-c to m-i
MozReview-Commit-ID: L0AfoH2zrKW
2016-12-18 20:26:13 -08:00
Chris Pearce
d42aaaf304 Bug 1322305. r=gerald
MozReview-Commit-ID: BLPkf2yrASn

--HG--
extra : amend_source : 58028c34dd322ff23c6b3e4bd6b266791096e200
2016-12-04 18:21:01 +13:00
Phil Ringnalda
8794706198 Merge m-c to autoland 2016-12-20 20:20:10 -08:00
Chris Pearce
896b86d2fb Bug 1324926 - Log expiration in terms of hours remaining in MediaKeySession.SetExpiration(). r=gerald
MozReview-Commit-ID: 4D3qXmCOZrh

--HG--
extra : rebase_source : 51f06be11bd0b990ba662cb69f1c691ffa6b32c5
2016-12-21 11:49:26 +13:00
Chris Pearce
55e0da876c Bug 1324926 - Convert other EME/GMP byte logging from Base64 to Hex. r=gerald
This is marginly more readable.

MozReview-Commit-ID: DWJNFXxI7Vd

--HG--
extra : rebase_source : cb29271f3942db63da2b815e81977f98ec955968
2016-12-21 10:37:09 +13:00
Chris Pearce
9a69924b0c Bug 1324926 - Log keyId as hex when decoding video via GMP. r=gerald
MozReview-Commit-ID: DIiErrwjONo

--HG--
extra : rebase_source : 05a7b667c65ee11a80244c8c832c134cd6b05485
2016-12-21 09:54:20 +13:00
Chris Pearce
dbd88a8bc7 Bug 1324926 - Log Gecko version and buildID in GMP log. r=gerald
MozReview-Commit-ID: 3QLi8aCrqUF

--HG--
extra : rebase_source : 7148b586bd82cc042db9f76101c962d078cff8d6
2016-12-21 09:53:15 +13:00
JW Wang
dfcf976fc9 Bug 1324339. Part 8 - remove unused functions. r=kaku
MozReview-Commit-ID: a68nAvEIyx

--HG--
extra : rebase_source : b632a22ff19409c8fc543e616fa778bd7801b07b
extra : intermediate-source : 962adf7a254271521106d9cb19779c40ec06d305
extra : source : c9b554bfb0ce8a3ef7d9fc0d4c76a97dd70e5989
2016-12-19 16:01:35 +08:00
JW Wang
ebd411de76 Bug 1324339. Part 7 - remove mIsVideoQueueFinished and finish the queue in place. r=kaku
MozReview-Commit-ID: DEpQOcJnFnc

--HG--
extra : rebase_source : 04d0a80a1fa33760371ad88a514cdc8756bf02b5
extra : intermediate-source : 62d1cc6b176b54e9aadeb418dde1548958de9a12
extra : source : bae286eb3c40c27c908bdb782429054551b38c36
2016-12-19 15:56:07 +08:00
JW Wang
58428cf531 Bug 1324339. Part 6 - remove mIsAudioQueueFinished which is not set at all. r=kaku
MozReview-Commit-ID: 6Ilvqigonga

--HG--
extra : rebase_source : 3de29cc1480addbccb218df4029870da118e33b8
extra : intermediate-source : 2aad62c93f1a5779d74dca3d9de27e2d6438d40b
extra : source : ce2e1387858bab2dc8a7e2a1afb517e49b0f55a8
2016-12-19 15:51:14 +08:00