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

12357 Коммитов

Автор SHA1 Сообщение Дата
Alastor Wu 65c50bf89e Bug 1362440 - part3 : add tests. r=jya
MozReview-Commit-ID: C4mXuPsMaF4

--HG--
extra : rebase_source : 11b69bde40b1ca336e2b9272aa2ec26c0e78507d
2017-10-30 17:48:35 +08:00
Alastor Wu 7440c83cae Bug 1362440 - part2 : parsing entire content to decide whether it's media segment. r=kinetik
The spec [1] defines what's the media segment, and the parser would return error
if the format is not correct.

[1] https://w3c.github.io/media-source/webm-byte-stream-format.html

MozReview-Commit-ID: 4hq59Pywz2t

--HG--
extra : rebase_source : 1136d2a673f11d612e0eb711db6affdce42bb525
2017-10-30 15:27:30 +08:00
Alastor Wu 58382a8ca5 Bug 1362440 - part1 : add timecode checking for parser r=kinetik
The spec [1] defines that
"Timecode (e7) MUST appear before Block (a1) or SimpleBlock (a3)".

[1] https://www.matroska.org/technical/specs/index.html

MozReview-Commit-ID: 7g8lgckuNif

--HG--
extra : rebase_source : 4945dc4b0ab4b7480bf9c6416f9776fd6313c1e1
2017-10-30 15:27:27 +08:00
Alfredo.Yang ae23abee61 Bug 1412183 - use BufferReader instead of ByteReader in AnnexB parser. r=kinetik
MozReview-Commit-ID: YZ4vo7o0Gs

--HG--
extra : rebase_source : 01d7242162cc31dfe1d703e4ded03cd8c5d93748
2017-10-25 09:58:43 +08:00
JW Wang cd62426903 Bug 1412187 - ChannelMediaResource::Resume() should call Seek() instead of CacheClientSeek(). r=gerald
CacheClientSeek() will call Seek() asynchronously and should be used by MediaCache only.
ChannelMediaResource::Resume() runs on the main thread and can call Seek() directly.
Note this is a missing change from bug 1411504 P3.

MozReview-Commit-ID: I2X1Rk5HoDV

--HG--
extra : rebase_source : 66dce75aefc4bfebecf69ebe107e9b4c9286f3a5
extra : source : 20e5463e15049095a941f501acd3fa7dd4e9b1db
2017-10-27 11:50:37 +08:00
JW Wang c94f001983 Bug 1412181 - add a proxy to be registered with ClearOnShutdown() to clear MediaCache::sThread. r=gerald
MozReview-Commit-ID: 9SXSKTP9Twb

--HG--
extra : rebase_source : 1cec3d8e307c980e2634fdc43ff9333833cb5547
extra : source : 2fa3d4a310a6e5765ee51cd3115013434d4662e5
2017-10-27 11:38:53 +08:00
Bryce Van Dyk 822e6a7a58 Bug 1367955 - Remove onended handler during ended handling to avoid video.ended race issues. r=pehrsons
Bug 1386489 means that ended is not reliably set in relation to the test
seeking machinery. This results in the following behaviour being possible:
- seekToNextFrame seeks to last frame
- the seek promise resolves and invokes check to see if video has ended
- ended is not yet set (race), so another seekToNextFrame is setup
- onended handler is invoked at some point (1st time)
- seekToNextFrame seeks again, remains at last frame
- oneended handler is invoked again due to the seek (2nd time)
- finish() has been called twice

This changeset should bandaid the above being possible.

MozReview-Commit-ID: BkskWUnaJQ9

--HG--
extra : rebase_source : 0108cf82a805136a87752d0128c1c0f2e7997ff6
2017-10-27 08:32:12 +13:00
Nathan Froyd 24a08c31db Bug 1412547 - avoid unused lambda captures in MediaDecoder.cpp; r=jya 2017-10-28 15:40:15 -04:00
Sebastian Hengst a92de1bfc3 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 5afba38563fd825a1d36aaee0debd5844aca3432
2017-10-27 12:54:29 +03:00
Sebastian Hengst 5c15da1f08 merge mozilla-inbound to mozilla-central. r=merge a=merge
--HG--
rename : testing/talos/tests/__init__.py => testing/talos/talos/unittests/__init__.py
rename : testing/talos/tests/browser_output.ts.txt => testing/talos/talos/unittests/browser_output.ts.txt
rename : testing/talos/tests/browser_output.tsvg.txt => testing/talos/talos/unittests/browser_output.tsvg.txt
rename : testing/talos/tests/profile.tgz => testing/talos/talos/unittests/profile.tgz
rename : testing/talos/tests/ps-Acj.out => testing/talos/talos/unittests/ps-Acj.out
rename : testing/talos/tests/test_talosconfig_browser_config.json => testing/talos/talos/unittests/test_talosconfig_browser_config.json
rename : testing/talos/tests/test_talosconfig_test_config.json => testing/talos/talos/unittests/test_talosconfig_test_config.json
rename : testing/talos/tests/xrestop_output.txt => testing/talos/talos/unittests/xrestop_output.txt
2017-10-27 12:45:34 +03:00
JW Wang 80e976e596 Bug 1412212. P3 - also dump debug info of AudioSink. r=JamesCheng
MozReview-Commit-ID: AnvlXrhdoI5

--HG--
extra : rebase_source : b4d979dba64ea02e85cac0d9613915441dbadd90
2017-10-27 15:36:24 +08:00
JW Wang 33a2764739 Bug 1412212. P2 - compact the output of GetDebugInfo(). r=JamesCheng
MozReview-Commit-ID: 6cAedI4Ax5r

--HG--
extra : rebase_source : d4162dace6c443fa993863c138855b19c33d7b59
2017-10-27 15:03:36 +08:00
JW Wang 0f76002549 Bug 1412212. P1 - the DUMP() macro needs no nsPrintfCString. r=JamesCheng
printf_stderr() already supports string formatting.

MozReview-Commit-ID: 6DhkrUtTP9c

--HG--
extra : rebase_source : e33578d8379903f149fa41cd76a87209ae3ee3e7
2017-10-27 14:58:33 +08:00
Alfredo.Yang 9965b731e6 Bug 1412177 - use BufferReader instead of ByteReader in wave decoder. r=kinetik
MozReview-Commit-ID: 2UBfsXYZ7gw

--HG--
extra : rebase_source : 2bff53b074f30f5bef5ce746a2f0a226f6be678a
2017-10-26 09:19:26 +08:00
JW Wang 48defae102 Bug 1411805 - Update() needs to read some prefs off the main thread. r=gerald
MediaPrefs is our friend.

MozReview-Commit-ID: 3lz5oqUR9R9

--HG--
extra : rebase_source : 31efaf14c29182b00451705b189772aac23acd34
extra : source : 7e9c68fd5fa241fc1d015b352935c2efd0daa1e8
2017-10-24 10:13:30 +08:00
JW Wang 994024afbb Bug 1411504. P8 - return an error for RecreateChannel() when the decoder is shutting down. r=gerald
Otherwise Seek() will continue to call OpenChannel() and hit null-deref for
mChannel is null.

MozReview-Commit-ID: 4nhbF9lUOSR

--HG--
extra : rebase_source : cb58448ddd9e68314b07e6160354d7be9ea2809a
extra : source : 4d50e2d60a4f9a5ababaaa5100b170dd64c73dbc
2017-10-25 09:45:14 +08:00
JW Wang 8715833c55 Bug 1411504. P7 - don't change mChannelOffset in MediaCache::Update(). r=gerald
This is a fix to P3.

Since seek is performed asynchronously by CacheClientSeek(), it is possible
for OnStopRequest() to come before Seek(). Changing mChannelOffset will
cause MediaCacheStream::NotifyDataEnded() to update mStreamLength incorrectly.

mChannelOffset should only be changed in response to channel activities such
as NotifyDataStarted() and NotifyDataReceived().

However, if MediaCache::Update() calls CacheClientSeek() without updating
mChannelOffset, next Update() might make a wrong decision and call CacheClientSeek()
again which is bad. So we add a member mSeekTarget to track if there is a pending
seek on which the stream reading decisions will be made.

MozReview-Commit-ID: VWP0vdlEYM

--HG--
extra : rebase_source : ea0d85bcbcc5d14f1554ebff3d10981a5b17e18a
extra : source : 339b9323b583849ac88e39da19670f6b26772877
2017-10-25 09:37:58 +08:00
JW Wang 8bd1a52d6a Bug 1411504. P6 - acquire the lock for the entire scope of Update(). r=gerald
For it is not safe to access mStreams without the lock off the main thread.

MozReview-Commit-ID: DjVlhxgjVj5

--HG--
extra : rebase_source : b584fe59712430acd4528e6b6cd01ae86dc5761f
extra : source : d7fd550934bfe6967638e42acb076882611792dd
2017-10-24 09:04:06 +08:00
JW Wang a1a46cc301 Bug 1411504. P5 - handle CacheClientNotifySuspendedStatusChanged/QueueSuspendedStatusUpdate off the main thread. r=gerald
MozReview-Commit-ID: 7Wc1tvd3S6x

--HG--
extra : rebase_source : ac9c1da29b4b395c75ced50efc3210f90add4710
extra : source : f4c901cfc7a7510f4ff161406e35d60229e86b98
2017-10-24 10:00:23 +08:00
JW Wang 1196be8421 Bug 1411504. P4 - handle CacheClientResume/CacheClientSuspend off the main thread. r=gerald
MozReview-Commit-ID: GRbcNo7KtKH

--HG--
extra : rebase_source : 030c8808c7702dc8792b22250e3d414154014615
extra : source : 60d50a2829cde9ff2879270f983e23092ca9f426
2017-10-24 09:38:34 +08:00
JW Wang 7a1b18c3ec Bug 1411504. P3 - handle CacheClientSeek off the main thread for we will run Update() off the main thread. r=gerald
MozReview-Commit-ID: 7eavgwkTXx0

--HG--
extra : rebase_source : 26c5c1675281612e2753549839acb73f735b7bc8
extra : source : 42efd7bd8db58c5c42cc266d90100a7ec250ac15
2017-10-24 09:23:12 +08:00
JW Wang c4b8566c71 Bug 1411504. P2 - merge NotifyDataStarted() and SetTransportSeekable(). r=gerald
SetTransportSeekable() is always called after NotifyDataStarted().
This is slightly more efficient for we don't acquire the lock twice.

MozReview-Commit-ID: 9myolomriIQ

--HG--
extra : rebase_source : f33c3be978edacf45d8144af43f45c8ad5e7b53e
extra : source : 2cefaeb1adae7238b77d5e2d1287ae0d96d9f671
2017-10-23 17:00:57 +08:00
JW Wang 1efcf7c612 Bug 1411504. P1 - always require MediaCache to have a thread to run Update() loops. r=gerald
MozReview-Commit-ID: AYVWuN9CU55

--HG--
extra : rebase_source : 0149e330533b96426bdc7817586df8bd85ec1d03
extra : source : c191b4aa350672a4b3c614a2ea5494cdcca71faf
2017-10-23 16:51:17 +08:00
Sebastian Hengst d10e26c913 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-27 00:00:25 +02:00
Nils Ohlmeier [:drno] daf7230f6d Bug 1411498: delete unused sipcc states. r=bwc,smaug
MozReview-Commit-ID: DnJrQk4hkYb

--HG--
extra : rebase_source : c615899389154cca4eecdbd6e332986837451d26
2017-10-24 23:40:02 -07:00
James Cheng 884fc56be9 Bug 1411523 - Remove 'this' from lambda captures [self, this] under dom/media r=jwwang
Capturing |this| only if |self| needs to appear more than twice in a lambda.

MozReview-Commit-ID: 38iYDznjgBH

--HG--
extra : rebase_source : 9471fd4519c5c5be6e6e10eb11db8eeb041327d1
2017-10-26 16:59:40 +08:00
Alfredo.Yang a3f0efc656 Bug 1411824 - use BufferReader instead of ByteReader in wave parser. r=kinetik
MozReview-Commit-ID: 1M9lbbgoBpX

--HG--
extra : rebase_source : a418fe623ea1e0030a5e12b4267fd6353f752e2b
2017-10-20 15:34:32 +08:00
Alfredo.Yang 8da0342978 Bug 1411821 - use BufferReader instead of ByteReader in MP3 parser. r=kinetik
MozReview-Commit-ID: BpfCZUG7C6c

--HG--
extra : rebase_source : 45716111d62faac68499f4c369e3cb948de190ce
2017-10-20 11:54:29 +08:00
Alfredo.Yang fc4a02e7c7 Bug 1411815 - use BufferReader instead of ByteReader in ContainerParser. r=kinetik
MozReview-Commit-ID: DB2J7w8PpAJ

--HG--
extra : rebase_source : 113b9832df3ac223c9adbcaa44f224d0c792892b
2017-10-19 11:12:48 +08:00
Jean-Yves Avenard b7f6b46a82 Bug 1366201 - P5. Get around FFmpeg bug with corrupted data. r=gerald
According to FFmpeg documentation, the out parameter is "set to size of parsed buffer or zero if not yet finished. " however this is only the case if no error occurred; otherwise it is left untouched.

We want the invalid content to generate a decoding error, so we set size to inputSize to ensure decoding failed later.

MozReview-Commit-ID: FZeiZUdUtLG

--HG--
extra : rebase_source : 2e81d730bacaea5bb968f704a36b403117dafcba
2017-10-25 18:25:37 +02:00
Alfredo.Yang 41a2709293 Bug 1411525 - use BufferReader in flac/ogg parser. r=kinetik
MozReview-Commit-ID: 5chnxLnpqmY

--HG--
extra : rebase_source : 85e68812f1d354813ae36731a5a36bfe7f58c2e2
2017-10-19 10:16:32 +08:00
JW Wang da256ca76e Bug 1411476. P5 - dump debug info for ChannelMediaResource. r=gerald
MozReview-Commit-ID: GjdtrlNb948

--HG--
extra : rebase_source : 248f4926435118ddc8baa0f901c5e4ec3f699c64
2017-10-25 13:57:39 +08:00
JW Wang 3fef1cee8e Bug 1411476. P4 - rewrite GetDebugInfo() functions to make string concatenation easier. r=gerald
MozReview-Commit-ID: V9cxIZGl8M

--HG--
extra : rebase_source : 10afe3e0e4c7d3d6153ea820d869e192345d755c
2017-10-25 13:13:30 +08:00
JW Wang 6c97c56766 Bug 1411476. P3 - show a more descriptive message in DecodeError(). r=gerald
MozReview-Commit-ID: 2XGYhlalecp

--HG--
extra : rebase_source : 08a70c0f74ea67feb8c456c723f6f485e26e0a2a
2017-10-25 10:38:48 +08:00
JW Wang 6490c484f5 Bug 1411476. P2 - show duration in debug logs. r=gerald
MozReview-Commit-ID: Ir7LFU6Dlei

--HG--
extra : rebase_source : c4094a10e3f312bb9a250e0ce41fc6ac8f1efe23
2017-10-25 10:36:03 +08:00
JW Wang 65fba1f9d2 Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. r=gerald
MozReview-Commit-ID: DF2BIO97aeB

--HG--
extra : rebase_source : c1ebcbfb8e24fbd79f0acdf5e7bc3b2245d7a3c5
2017-10-25 10:29:16 +08:00
Sebastian Hengst 31bf3a1a42 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4Lk5P5UYmTe
2017-10-24 11:52:35 +02:00
Yoshi Huang 26c9043304 Bug 1407498 - Don't query loadingprincipal in common case. r=baku
We queried 'loadingprincipal' attribute on the common call path, however
this should be queried if it's loaded by System Principal.

Also rename loadingprincipal to triggeringprincipal
2017-10-24 10:13:31 +08:00
Sebastian Hengst 364d36fab2 merge mozilla-inbound. r=merge a=merge
MozReview-Commit-ID: B09kHrHK42C
2017-10-23 23:50:37 +02:00
Sebastian Hengst 18f1987735 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-23 11:46:34 +02:00
Paul Adenot cd9185e874 Bug 1408456 - Convert test_analyserNodeOutput.html to a web-platform-test: test-analyser-output.html. r=karlt
This also brings in and convert some utilities we have in Gecko, that will ease
porting more tests.

MozReview-Commit-ID: 2yPZQO504kH

--HG--
rename : dom/media/webaudio/test/test_analyserNodeOutput.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-output.html
extra : rebase_source : 0a9c9c336b1b53120010a081da131c76f103a838
2017-10-17 14:47:44 +02:00
Paul Adenot 23732e9bcc Bug 1408456 - Convert test_analyserNodeMinimum.html to a web-platform-test: test-analyser-minimum.html. r=karlt
MozReview-Commit-ID: F6VNiYBXr7Z

--HG--
rename : dom/media/webaudio/test/test_analyserNodeMinimum.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html
extra : rebase_source : 4258a557e1bf07e0b1f0cbb3b2e517b2a3c56da9
2017-10-17 14:43:53 +02:00
Paul Adenot fd0d5e5373 Bug 1408456 - Convert test_analyserScale.html to a web-platform-test: test-analyser-scale.html. r=karlt
MozReview-Commit-ID: CUhtCzfoi95

--HG--
rename : dom/media/webaudio/test/test_analyserScale.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-scale.html
extra : rebase_source : caae3eefcc9a1c814083bf7154b30f8b92ae788d
2017-10-17 14:47:32 +02:00
Paul Adenot 03d3466f23 Bug 1408456 - Convert test_analyserNodeWithGain.html to a web-platform-test: test-analyser-gain.html. r=karlt
MozReview-Commit-ID: 7gIj3cdZiZB

--HG--
rename : dom/media/webaudio/test/test_analyserNodeWithGain.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-gain.html
extra : rebase_source : 7571e6d2c8413671e20d36f5687df448c8aecca7
2017-10-16 17:04:45 +02:00
Paul Adenot 8f989cdbf4 Bug 1408456 - Convert test_AnalyserNode.html to a web-platform-test. r=karlt
MozReview-Commit-ID: GR3Ze8KIAKB

--HG--
rename : dom/media/webaudio/test/test_analyserNode.html => testing/web-platform/tests/webaudio/the-audio-api/the-analysernode-interface/test-analysernode.html
extra : rebase_source : fe5552c42600a937c5de004c867bc0e6628b37bc
2017-10-16 17:16:36 +02:00
Makoto Kato 1f86929f6d Bug 1406358 - Keep SpeechDelegate object until speaking is finished. r=eeejay
The delegate property of NSSpeechSynthesizer doesn't seem to add refcount from 10.13, so we have to keep SpeechDelegate object until speech is finished.

MozReview-Commit-ID: EVtMOPytkjR

--HG--
extra : rebase_source : f2a6d97942c19990a16dd68555328ed36280eb4a
2017-10-12 17:17:38 +09:00
Karl Tomlinson 43bad3ff0d bug 1410043 remove over-zealous graph-thread assert in SetCurrentDriver() r=pehrsons
The reverts to accepting ownership of the monitor regardless of the thread, as
accepted prior to
https://hg.mozilla.org/mozilla-central/rev/e3f39de40209#l1.25

As indicated in the SetCurrentDriver() documentation, it can be called on the
main thread during Revive() before another graph thread is started.

At that point mLifecycleState = LIFECYCLE_RUNNING, and so it is not easy to
adjust AssertOnGraphThreadOrNotRunning() to accept this situation without
making it much more liberal.

An alternative would be to change the Revive() methods to set mDriver
directly, but that would differ from the usual driver-switching pattern.

MozReview-Commit-ID: 9O5qakPVML9

--HG--
extra : rebase_source : 82115938ccd164863ddf6f983e7900705844d0ed
2017-10-20 17:59:19 +13:00
Sebastian Hengst af53b8aad8 merge mozilla-central to autoland. r=merge a=merge 2017-10-23 23:52:54 +02:00
Jean-Yves Avenard 858f178676 Bug 1410090 - Remove remnant of FFOS OMX code. r=cpearce
For webrtc, the most important part of the code had already been removed in bug 1355048 and could no longer be called

MozReview-Commit-ID: Fx9XI0zR1gn

--HG--
extra : rebase_source : 360996760abab650684440fbeea258b43dccfd83
2017-10-19 16:51:04 +02:00
Jed Davis 70736cfb1b Bug 1401790 - Remove ProcessArchitecture from IPC. r=billm,jimm
This was used to support cross-architecture NPAPI plugins on OS X, but
we stopped supporting that in 54 (bug 1339182).

MozReview-Commit-ID: 2BcWYD6mguY

--HG--
extra : rebase_source : 6e509a3cc1f356ccd24f1459c43bc8fb66d7b0f4
2017-10-04 20:31:12 -06:00
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