Commit Graph

13321 Commits

Author SHA1 Message Date
Paul Adenot
683f9406da Bug 1444976 - Implement a lock-free asynchronous logging system to be used from real-time audio and video code. r=froydnj
This outputs to MOZ_LOG and using an MPSC lock-free queue so we can log to a
particular module from any thread.

MozReview-Commit-ID: INtlki4PEJs

--HG--
extra : rebase_source : c1d488fdd65bfa7ede12c12004921415aaaa1d55
extra : source : f9482471bbd83882f8da3f0ce929f72858abfa04
2018-03-20 18:14:47 +01:00
Cosmin Sabou
4595d43d3a Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
Jean-Yves Avenard
abe6e049cd Bug 1435212 - Add support for FFmpeg 4.0. r=bryce
MozReview-Commit-ID: JlDFSUyGQu

--HG--
extra : rebase_source : 310135ac5453b01164910bd3bf50b6107dcbc710
2018-04-19 10:19:15 +02:00
Byron Campen [:bwc]
30281ed197 Bug 1444363: Don't dispatch Encode/Decode to main in the fake h264 impl, because the callsite is on main in the first place. r=bryce
MozReview-Commit-ID: Iznr1jNr75Z

--HG--
extra : rebase_source : 6c61c2194f3147f69b65ad163f639d9578a900d9
2018-04-16 10:52:29 -05:00
Andreea Pavel
5a4b5686f6 Merge mozilla-central to autoland a=backout on a CLOSED TREE
--HG--
extra : rebase_source : 3bbd9b3ffa46ec76f58d6d4d6ce672dd909b8457
2018-04-18 21:36:17 +03:00
Andreea Pavel
14ac5e554d Backed out 3 changesets (bug 1444976) for failing android at dom/media/tests/mochitest/test_getUserMedia_mediaStreamTrackClone.html a=backout
Backed out changeset 79b7ee8b01ee (bug 1444976)
Backed out changeset 35ca96cabe3c (bug 1444976)
Backed out changeset 2512c9c24244 (bug 1444976)
2018-04-18 21:25:14 +03:00
Coroiu Cristina
374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Boris Zbarsky
d49151ed50 Bug 1452183 part 1. Stop using nsIDOMDocumentFragment in IDL files. r=mccr8 2018-04-17 21:13:03 -04:00
Paul Adenot
f00a090b8a Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
MozReview-Commit-ID: 7mmDHVS2t8f

--HG--
extra : rebase_source : a6b0bd42a63f3fc6e4a6307249ed447d749f96c4
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02:00
Takuro Ashie
897da97e65 Bug 1306529 - OmxDataDecoder: Fix a stall issue on shutting down r=jya
Because the shutdown closure awaits finishing itself by
TaskQueue::AwaitShutdownAndIdle(), the function blocks infinitely.

The code is wrongly introduced at the following commit:

  * https://bugzilla.mozilla.org/show_bug.cgi?id=1319987
    * https://hg.mozilla.org/mozilla-central/rev/b2171e3e8b69

This patch calls it on mTaskQueue intead of mOmxTaskQueue to
avoid the issue.

MozReview-Commit-ID: 4qmX2QlniEG

--HG--
extra : rebase_source : 17ef7f95f7205307980dd0924821b005ada06c56
extra : source : eb0a2bb44f95f195343fed284efcdd524a7bb868
2018-03-27 16:37:21 +09:00
Takuro Ashie
956ef94c09 Bug 1306529 - Add initial implementation of PureOmxPlatformLayer r=jya
It's a concrete class of OmxPlatformLayer for accessing OpenMAX IL
libraries directly. It will be usable on various embedded linux systems.
Note that it's not enabled by default yet. Add the following config to
your mozconfig.

  ac_add_options --enable-openmax

TODO: Implement zero-copy mode

MozReview-Commit-ID: EMEXAKzzR64

--HG--
extra : rebase_source : ee6acf7d046e8ce6e18a53988a4ea308b8d4d44f
2018-04-18 11:38:12 +09:00
Andreas Pehrson
1c41efddfa Bug 1454625 - Don't update settings from constraints if already updated from frame. r=padenot
MozReview-Commit-ID: KgiPUnXCWoM

--HG--
extra : rebase_source : 2f378128008ed8c95fb7f3cb3b6601c54ef4c88b
2018-04-17 17:09:11 +02:00
Andreas Pehrson
3be3fab400 Bug 1454625 - Schedule settings update before setting mImage. r=padenot
MozReview-Commit-ID: 9IasAgJImuI

--HG--
extra : rebase_source : 67fc9036b72c19f8fa73084053d617537e0cdaca
2018-04-17 11:14:19 +02:00
Paul Adenot
a28be80f69 Bug 1444976 - Use the AsyncLog to implement a tracing subsystem for real-time media. r=pehrsons
Use it like this:

MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_LOG=MSGTracing:5,sync,raw MOZ_LOG_FILE=trace.log ./mach run

Now open `chrome://tracing` and load the file.

Lanes are threads, thread 0 is the audio callback thread, the other thread have
normal numbers.

Thread 1 shows the theoretical budget we have for a particular audio callback.

MozReview-Commit-ID: 87woGiFT4ID

--HG--
extra : rebase_source : b4310af51efa83c6670ba4e37433f7a23a575bba
extra : source : 14929579ba3f71f14c9d81b6ed88563d35da11e0
2018-03-20 18:22:08 +01:00
Paul Adenot
5e0440d951 Bug 1444976 - Implement a lock-free asynchronous logging system to be used from real-time audio and video code. r=froydnj
This outputs to MOZ_LOG and using an MPSC lock-free queue so we can log to a
particular module from any thread.

MozReview-Commit-ID: INtlki4PEJs

--HG--
extra : rebase_source : c1d488fdd65bfa7ede12c12004921415aaaa1d55
extra : source : f9482471bbd83882f8da3f0ce929f72858abfa04
2018-03-20 18:14:47 +01:00
Nicholas Nethercote
59e46f2358 Bug 1451535 - Remove NS_ConstExprIsAscii() functions. r=froydnj 2018-04-17 20:03:52 +09:00
Andreas Pehrson
60784fe3c7 Bug 1450954 - Test that a screenshare track's getSettings return sane dimensions. r=jib
MozReview-Commit-ID: GDSQLfXBFBU

--HG--
extra : source : 159a7327328f98867447b62e1a4f0fc8148aea3f
extra : histedit_source : 03c8fc1c0d151a0614adc1af64b445cdcff02a2e
2018-04-10 15:04:25 +02:00
Brindusan Cristian
667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
shindli
805cb19c1d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-17 01:45:58 +03:00
Margareta Eliza Balazs
12088e3639 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-16 21:51:56 +03:00
Noemi Erli
28e582447f Backed out changeset d0cf37de4a14 (bug 1450954) for failing in dom/media/tests/mochitest/test_getUserMedia_basicScreenshare.html on a CLOSED TREE 2018-04-16 21:48:02 +03:00
Margareta Eliza Balazs
dbef13782c Backed out 2 changesets (bug 1451278) for breaking windows pgo builds a=backout
Backed out changeset ac685df07bfc (bug 1451278)
Backed out changeset 5944ccd5060d (bug 1451278)
2018-04-16 21:41:03 +03:00
Nicholas Nethercote
2224229b3d Bug 1451278 - Remove NS_ConstExprIsAscii() functions. r=froydnj
MozReview-Commit-ID: DG2HUOa7x6y

--HG--
extra : rebase_source : a0e2f24f96cb688d11984827acb1361abc4988e6
2018-04-16 08:37:25 +10:00
Nico Grunbaum
b5c0e1c02f Bug 1449832 - restore screen share scaling code to prevent cropping r=pehrsons
MozReview-Commit-ID: KctPLbF4PSa

--HG--
extra : rebase_source : 8a3a63a1df890e2343dec44f4cdfe1193d317a9a
2018-04-12 14:26:14 -07:00
Andreas Pehrson
4725f85fd8 Bug 1450954 - Test that a screenshare track's getSettings return sane dimensions. r=jib
MozReview-Commit-ID: GDSQLfXBFBU

--HG--
extra : source : a836af9dc1468a9d4c8f925cb391dd39d8e6e416
extra : histedit_source : 8ff97a3d4a852fc1d4f0bd2eaef04dc0e35247f1
2018-04-10 15:04:25 +02:00
Ben Kelly
dab3fba304 Bug 1451913 P8 Add an AudioContext event target leak test. r=smaug 2018-04-16 06:08:53 -07:00
Ben Kelly
dcda4a3e1c Bug 1451913 P3 Make AudioContext add itself to the new window when its rebound for a document.open(). r=smaug 2018-04-16 06:08:52 -07:00
Nicholas Nethercote
51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00
Kyle Machulis
541d6f6f00 Bug 1453517 - Remove nsPopupWindowManager and related XPCOM bits; r=bz
MozReview-Commit-ID: JIDdZfnNN8E

--HG--
extra : rebase_source : 8b92fec383a21f80fceb87502e9a7accdb7dd74f
2018-04-11 16:16:13 -07:00
Andreea Pavel
69ae5fe098 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-14 00:58:36 +03:00
Andreea Pavel
01f50bc3d8 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-14 00:56:30 +03:00
Masatoshi Kimura
d7043295be Bug 1445601 - Stop using LoadLibraryA in GMP. r=cpearce
We should not use LoadLibraryA (or more generally "A" functions) on Windows
because it is lossy. Bug 1440886 will introduce a static analysis to prevent
potential misuse of LoadLibraryA, so we need to replace existing usages first.

MozReview-Commit-ID: 6krgrVcSHNW

--HG--
extra : rebase_source : 0e93acecfe0c9ccd2e4ba9ad3126b6ae16433387
2018-03-28 00:02:28 +09:00
Alex Chronopoulos
a1457bde95 Bug 1452993 - Get MSG instance from MediaStream to avoid the risk of creating new instance. r=padenot
MozReview-Commit-ID: F1R4FCEe1Gf

--HG--
extra : rebase_source : cfafb0b1ba95ae2aa2dcd77ba681a1026e89f1f5
2018-04-10 18:06:32 +03:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Gurzau Raul
7334578c1a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-13 02:14:09 +03:00
Gurzau Raul
f620cf509e Merge inbound to mozilla-central. a=merge 2018-04-13 02:08:51 +03:00
Nathan Froyd
a31fa9e19c Bug 1453437 - return UniquePtr from MediaRawData::CreateWriter; r=gerald
Returning UniquePtr is nicer than returning raw pointers, and has the
nice side effect of forcing us to clean up the uses of nsAutoPtr that
were hanging about.
2018-04-12 15:28:21 -04:00
Sebastian Hengst
0eb9d87997 merge mozilla-inbound to mozilla-central. a=merge 2018-04-12 22:20:13 +03:00
Tom Ritter
8a27d79dfd Bug 1446346 Remove skips for webaudio tests that should now be fixed r=padenot
MozReview-Commit-ID: GfkOOv8VLkA

--HG--
extra : rebase_source : 8d7f66b8744bffc28c71f8c4de546840827af7d6
2018-04-11 21:50:04 -05:00
Tom Ritter
1e46fe37dc Bug 1446346 If an AudioContext hasn't been started, do not bother clamping/jittering the CurrentTime r=padenot
This will resolve several intermittments that were occuring because we would
occasionally get unlucky and have a jitter midpoint of 0, making an unstarted
AudioContext report a CurrentTime of 100us (or 1ms - whatever our clamp value
was.)

MozReview-Commit-ID: 45zXLbB93wP

--HG--
extra : rebase_source : 23ea5964dc49543c2b4ca45890c4c08456e75c73
2018-04-11 11:34:57 -05:00
Margareta Eliza Balazs
7bd6a55b97 Backed out changeset 2198e282bdcf (bug 1451681) for bustage in /builds/worker/workspace/build/src/dom/media/platforms/agnostic/bytestreams/AnnexB.cpp on a CLOSED TREE 2018-04-12 16:30:43 +03:00
Jean-Yves Avenard
4446aa0310 Bug 1451681 - Handle case where crypto plain size definition didn't exist. r=cpearce
Also ensure that the MP4 demuxer can't create such sample.

MozReview-Commit-ID: JANgHNiiz2H

--HG--
extra : rebase_source : 652d311cb69e6c3ed3b1ba91719e79acb0a4bb9c
2018-04-09 11:39:13 +02:00
Jan-Ivar Bruaroey
6a472b4cb4 Bug 1452031 - Close fingerprint concern by removing code no longer needed to handle NotFoundError spec case. r=pehrsons
MozReview-Commit-ID: KVQjO18PL0I

--HG--
extra : rebase_source : 3e8f94c486bad728c5c54b8ea3f148f452ea2b07
2018-04-10 01:49:15 -04:00
Jan-Ivar Bruaroey
4665da444b Bug 1452031 - InternalError is not a valid gUM error per spec. Use AbortError instead. r=pehrsons
MozReview-Commit-ID: 3pMRl1XgkfS

--HG--
extra : rebase_source : 6e3ce9812657b09f0a38b5e807cc7b01b0a6789e
2018-04-06 15:06:16 -04:00
Jan-Ivar Bruaroey
b5b5ad5862 Bug 1452031 - Use strong types for Media error names, fixing OverconstrainedError typo. r=pehrsons
MozReview-Commit-ID: AqGoW9rBdl5

--HG--
extra : rebase_source : fc7a638a2502aaebf318a35c6135755558a7396b
2018-04-10 01:22:53 -04:00
Margareta Eliza Balazs
1dff32311e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-12 12:46:52 +03:00
Andreas Pehrson
c376bbc538 Bug 1450954 - Add back code to undo screenshare constraints hack. r=jib
MozReview-Commit-ID: 9rDRj7U8vQi

--HG--
extra : source : e2bd588aa90fe44fe38caed6bc7680111394b934
extra : histedit_source : 148034b0adc84941ae9c39716bb3da6d8258e3a4
2018-04-10 13:13:41 +02:00
shindli
108a654fb8 Merge inbound to mozilla-central. a=merge 2018-04-12 02:45:34 +03:00
Boris Zbarsky
2542e6eb8a Bug 1452741. Stop using the no-arg DOMEventTargetHelper constructor in MediaTrack. r=bkelly
MozReview-Commit-ID: AbE3XJdj4KO
2018-04-11 10:27:00 -04:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00