Commit Graph

6030 Commits

Author SHA1 Message Date
Noemi Erli
1b65998665 Merge inbound to mozilla-central. a=merge 2018-04-14 12:49:03 +03:00
Andreea Pavel
8f58240fda Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-14 00:59:38 +03:00
David Major
da460df088 Backed out changeset 0543a3f29a74 (bug 1453061) and we'll re-land when talos xperf comes back online
--HG--
extra : rebase_source : 60993f6d31db066e419750462685bd55514ebee4
2018-04-13 16:07:51 -04:00
David Major
6750ccaf96 Backed out changeset 4d3b94d04760 (bug 1453061) and we'll re-land when talos xperf comes back online
--HG--
extra : rebase_source : ecc77f749a5832bbfca158a019c26dd73fbb0397
2018-04-13 16:07:04 -04:00
Coroiu Cristina
9e4b9fb732 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-04-13 19:07:42 +03:00
Sebastian Hengst
043061beb5 merge mozilla-central to mozilla-inbound 2018-04-13 16:05:58 +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
Matthew Gregan
a310920353 Bug 1449555 - Update libcubeb to 7f4f3b6e. r=padenot 2018-04-13 23:37:05 +12:00
Dan Minor
b42c863551 Bug 1453740 - Allow 1x1 windows in VP8EncoderImpl::InitEncode; r=pehrsons
A minimized window has a resolution of 1x1. Although we removed minimized windows from the list
of available windows to share, nothing prevents the user from minimizing it during a call. With
the current code, this will cause InitEncode to fail, resulting in a fatal release assert.

I tested this patch with window sharing on meet.google.com and I was able to minimize and restore
the window several times without problem. While minimized, the window appears as a black screen
to the other meeting participants. It renders normally when restored.

MozReview-Commit-ID: LE2NBiEy8nw

--HG--
extra : rebase_source : f95fd3f797e9f7262a938087ce3fb1e27f743920
2018-04-12 11:31:59 -07:00
Tom Bannister
988d18881f Bug 1434710 - Replaced all instances of mozilla::IndexSequence, mozilla::MakeIndexSequence and mozilla::IndexSequenceFor with std::index_sequence, std::make_index_sequence and std::index_sequence_for and removed mfbt/IndexSequence.h. r=botond
MozReview-Commit-ID: 1Ema7TUNr5v

--HG--
extra : rebase_source : e5bb164dbe19993214e8c16f92b0a1f5d2ff3fa1
2018-04-09 21:12:13 +10:00
Jan Beich
60f9bc442d Bug 1452509 - Require Jack package for --enable-jack build. r=froydnj
MozReview-Commit-ID: HT3ZCrEAN8Y

--HG--
extra : rebase_source : 0fc577c097fcc390c79514019099680b3129c748
2018-03-18 23:42:22 +00:00
Sebastian Hengst
0eb9d87997 merge mozilla-inbound to mozilla-central. a=merge 2018-04-12 22:20:13 +03:00
David Major
23a33f032e Bug 1453061: Merge libvpx code size fix. r=drno
https://chromium-review.googlesource.com/c/webm/libvpx/+/841103
2018-04-12 10:22:42 -04:00
David Major
2ad23187c2 Bug 1453061: Merge libaom code size fix. r=drno
https://aomedia-review.googlesource.com/c/aom/+/39401
2018-04-12 10:22: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
8ca418adb9 Merge inbound to mozilla-central. a=merge 2018-04-12 12:38:56 +03:00
David Major
1eda142373 Bug 1445922 - Disable PGO for Win32 libaom due to compiler OOMs. r=froydnj 2018-04-11 10:17:00 +03:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Dan Minor
30d5029270 Bug 1453030 - Only create RTCDTMFSender on audio RTCRtpSender senders; r=bwc
MozReview-Commit-ID: KsnUYCs8IYU

--HG--
extra : rebase_source : 2bee2f713ef65ef5baaa6cd37a3f9521beaa9a73
2018-04-10 13:19:42 -04:00
arthur.iakab
8f77825a58 Backed out 2 changesets (bug 1453061)For frequently failing build bustage on win-32 pgo on a CLOSED TREE
Backed out changeset 6a08a9249650 (bug 1453061)
Backed out changeset 1edfe06dff5b (bug 1453061)
2018-04-11 06:01:40 +03:00
David Major
d7203d76cd Bug 1453061: Merge libvpx code size fix. r=drno
https://chromium-review.googlesource.com/c/webm/libvpx/+/841103
2018-04-10 17:00:54 -04:00
David Major
03e4300156 Bug 1453061: Merge libaom code size fix. r=drno
https://aomedia-review.googlesource.com/c/aom/+/39401
2018-04-10 17:00:38 -04:00
Andreas Pehrson
2dcab8c04e Bug 1452048 - Read _captureStarted under lock on the camera thread. r=dminor
It is written under lock on the controlling thread (CamerasParent) in
StartCapture/StopCapture.

MozReview-Commit-ID: E7eq1YElhwt

--HG--
extra : rebase_source : f37b666d84c6710ac0d5c56002b82c707635f49b
2018-04-06 15:50:31 +02:00
Andreas Pehrson
3ed24c4f4c Bug 1452048 - Leave critical section before calling into java StartCapture(). r=dminor
If we stay in the critical section, and the StartCapture() is a reconfiguring
one, we risk deadlocking with IncomingFrame which runs on the camera thread.

MozReview-Commit-ID: 5rU4urrBWxr

--HG--
extra : rebase_source : 4c6e0c1e02eb1116a1fe433681bf4ad36f47186a
2018-04-06 15:49:24 +02:00
Andreas Pehrson
edabee9ab6 Bug 1452048 - Give Looper lifetime control to external callers. r=dminor
Looper lifetime must be handled by external callers as otherwise internal
callers may accidentally and unknowingly quit the looper and essentially
terminate the camera thread, stopping any flow of frames and preventing future
messages.

In this case, a reconfig of the capture settings through startCapture() causes
startCaptureOnCameraThread() to restart the capture by calling into
stopCaptureOnCameraThread() (quitting the looper) and then re-calling
startCaptureOnCameraThread() (not restarting the looper as that is invalid).

The camera thread is set up by startCapture() on the external calling thread,
which will never know that a seemingly graceful camera thread operation stopped
the camera thread altogether, and so it cannot take any action.

MozReview-Commit-ID: DUTFdanTan1

--HG--
extra : rebase_source : afeb80aa8b2596a2615f57ec4af182a837323b7e
2018-04-06 13:59:45 +02:00
Jean-Yves Avenard
ccb5482936 Bug 1448762 - Update mp4parse-rust to 9e70cb4. r=padenot
MozReview-Commit-ID: 2RuByCeEEe5

--HG--
extra : rebase_source : 7233a91cffe16c2d89bbc1396dbfe1c834e2109b
2018-04-09 09:59:57 +02:00
Andreea Pavel
7a4b9a3f56 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : rebase_source : 66bd87105d99036ada5008499ff0eaea579b531a
2018-04-06 13:20:21 +03:00
Dan Minor
d474e7f00c Bug 1432793 - Add gtests for simulcast screenshare and odd resolutions; r=bwc
MozReview-Commit-ID: ADBh7SCVgoC

--HG--
extra : rebase_source : 561a924560c0dbffbc95317b4cc5303dec6a8de6
2018-04-04 13:09:06 -04:00
Dan Minor
3eee879885 Bug 1432793 - Force screensharing simulcast to one layer and stop generating layers once an odd width and height are found; r=bwc
This limits screensharing simulcast to a single layer. When window sharing, our
source video can have arbitrary dimensions. If one of those dimensions ends up
being odd, the aspect ratio of the smaller layer will not match the aspect ratio
of the odd sized layer, causing a runtime assertion failure and crash.

It is not sufficient to prevent the creation of odd sized layers in
CreateEncoderStreams because the user can resize the window while it is being
shared, which will cause a fatal assertion prior to the streams being recreated.

When switching back from window sharing to camera, a call to
CreateEncoderStreams will occur with resolutions matching the dimensions of
the window that was just shared. To prevent a crash, this also adds a check
which prevents the creation of layers with odd resolutions.

Looking at cricket::GetSimulcastConfig for the version of webrtc.org in tree,
the number of simulcast layers is limited to one, or two if a field experiment
is enabled. That code also limits resolutions at which screensharing is allowed
as well as the number of layers that can be created for each resolution, and
ensures that each layer is exactly half the size of the layer above.

Adding these new constraints to CreateEncoderStreams makes us more consistent
with what the webrtc.org code would do when creating streams, which should
help to avoid more assertion failures in the future. Long term, I believe we
should just switch to using cricket::GetSimulcastConfig.

MozReview-Commit-ID: 8gjdY5GPPjl

--HG--
extra : rebase_source : b13b7acdac7f1e0b6016417b83bbe97dc2417a92
2018-03-28 11:07:54 -04:00
Narcis Beleuzu
2e33871511 Backed out changeset 847e9f622eb7 (bug 1432793) for build bustages on VideoConduit.cpp. CLOSED TREE 2018-04-05 00:16:14 +03:00
Dan Minor
cc64345766 Bug 1432793 - Force screensharing simulcast to one layer and stop generating layers once an odd width and height are found; r=bwc
This limits screensharing simulcast to a single layer. When window sharing, our
source video can have arbitrary dimensions. If one of those dimensions ends up
being odd, the aspect ratio of the smaller layer will not match the aspect ratio
of the odd sized layer, causing a runtime assertion failure and crash.

It is not sufficient to prevent the creation of odd sized layers in
CreateEncoderStreams because the user can resize the window while it is being
shared, which will cause a fatal assertion prior to the streams being recreated.

When switching back from window sharing to camera, a call to
CreateEncoderStreams will occur with resolutions matching the dimensions of
the window that was just shared. To prevent a crash, this also adds a check
which prevents the creation of layers with odd resolutions.

Looking at cricket::GetSimulcastConfig for the version of webrtc.org in tree,
the number of simulcast layers is limited to one, or two if a field experiment
is enabled. That code also limits resolutions at which screensharing is allowed
as well as the number of layers that can be created for each resolution, and
ensures that each layer is exactly half the size of the layer above.

Adding these new constraints to CreateEncoderStreams makes us more consistent
with what the webrtc.org code would do when creating streams, which should
help to avoid more assertion failures in the future. Long term, I believe we
should just switch to using cricket::GetSimulcastConfig.

MozReview-Commit-ID: 8gjdY5GPPjl

--HG--
extra : rebase_source : 5a22f6d0a995303e6a4039eafc056631fbb86415
2018-03-28 11:07:54 -04:00
Boris Zbarsky
5ae1563978 Bug 1450422. Get rid of nsIDOMDataChannel. r=mystor
MozReview-Commit-ID: Dei5EEd0FZO
2018-04-04 15:32:19 -04:00
Byron Campen [:bwc]
d0a45cf0c0 Bug 1448863: Stop sync dispatching in Decode. r=jesup
MozReview-Commit-ID: 3EK0zAsFpHz

--HG--
extra : rebase_source : 0591c5a8fa4abbe46b789817fd9c617e9ef02da6
2018-03-26 10:19:31 -05:00
Andreas Pehrson
14c26e7086 Bug 1440255 - Remove tabs from VideoCaptureAndroid. r=dminor
MozReview-Commit-ID: Ga3TgD9J030

--HG--
extra : rebase_source : d8edb95a541ecfb9ee391f03c5484f92865a2e2d
2018-04-05 12:03:12 +02:00
Andreas Pehrson
74e4bc1164 Bug 1440255 - Consolidate failure paths. r=dminor
The cameraThread is set by startCapture(), so a failed startCapture() that
quits the Looper and runs the cameraThread to completion needs to set
cameraThread back to null for consistency.

Likewise, stopCapture() shall always quit the Looper and set cameraThread to
null.

MozReview-Commit-ID: H1ExLyTixYw

--HG--
extra : rebase_source : 472b657cd8219533a5878f5b268b6288e1fe6320
2018-04-05 16:04:13 +02:00
Andreas Pehrson
d9f2b85781 Bug 1440255 - Make VideoCaptureAndroid reconfigurable through subsequent startCapture. r=dminor
MozReview-Commit-ID: 9yslx7rMN2w

--HG--
extra : rebase_source : 87808e17efb58b7194ce87719beb610a19fa0be3
2018-04-04 20:17:21 +02:00
Andreas Pehrson
75146eb774 Bug 1440255 - Move thread exchanging out to runnables. r=dminor
This is the proper fix for bug 1420585.

MozReview-Commit-ID: 5WKMvbpQFSE

--HG--
extra : rebase_source : 32269d06a7e826db2ea882cbc974c366a63f39c0
2018-04-05 11:56:30 +02:00
Andreas Pehrson
745c2b59a9 Bug 1440255 - Backout bug 1420585 deadlock wallpaper fix r=dminor
MozReview-Commit-ID: DurGH2RmXQH

--HG--
extra : rebase_source : 16400494705c332bb8739b28735a941c84f0a379
2018-04-05 11:55:26 +02:00
Andreas Pehrson
8333691fd5 Bug 1441585 - Set picture size to something valid. r=dminor
MozReview-Commit-ID: 13lZcfR9wlC

--HG--
extra : rebase_source : 4037cca90cccc846f7b4e0c6da12eace3962d5af
2018-04-05 17:32:09 +02:00
Matthew Gregan
5ad7da2a98 Bug 1447097 - Vendor in cubeb-rs 0.5.2. r=kamidphish
MozReview-Commit-ID: DK7KB9fzAF5

--HG--
extra : rebase_source : 894ce8dd498ee5f519041104589efb35eecb33f1
2018-04-04 16:58:41 +12:00
Alex Chronopoulos
2ef6a59abe Bug 1387454 - Create a MediaStreamGraph according to the given sample rate. r=padenot
MozReview-Commit-ID: 4YP8oWIVyjy

--HG--
extra : rebase_source : 54c83c0aa122fecc9e07868405e42d31b2172516
2018-04-03 20:02:15 +03:00
Nils Ohlmeier [:drno]
2058100636 Bug 1394602: don't allow SSRC changes with Bundle. r=bwc
MozReview-Commit-ID: Kgb0lghAY7r

--HG--
extra : rebase_source : 26d44970231736c5cfefef4dcfc3b5afcb8b24ba
2017-12-01 15:54:57 -08:00
Dan Glastonbury
b32f1681cb Bug 1449342 - Update cubeb-pulse-rs to commit 55ce985. r=kinetik
Pull in fix for cubeb channel layout to PulseAudio channel layout.

MozReview-Commit-ID: L9v3cYM5PAY

--HG--
extra : rebase_source : bc4358efcd6ca6276c242ad3beec7f71288f36d7
2018-04-03 11:09:17 +10:00
Byron Campen [:bwc]
5d6b88c22d Bug 1449042: Negotiate tracks even when they're not active. r=drno
MozReview-Commit-ID: CBhwHgjt1gf

--HG--
extra : rebase_source : c38a52290154e6d800a9f34f1ce87eab8859afa5
extra : source : cd4a5a800efa075bc1c4ba0c672bd301ee694ec0
2018-03-27 13:39:10 -05:00
Tom Ritter
8c0ba05b9e Bug 1448461 Give libaom a x64 MinGW config r=kinetik
MozReview-Commit-ID: BiBqBFSWYtK

--HG--
extra : rebase_source : 2010d77e6971de38cf5ffd7c835d59a724a73195
2018-03-23 15:14:00 -05:00
Tom Ritter
987bacca5a Bug 1448453 Update libvpx to have a 64 bit mingw config r=kinetik
MozReview-Commit-ID: 1Dt3OcMgWii

--HG--
extra : rebase_source : 276e59d2c27a69d3f2526e027a11a413b618cfda
2018-03-23 14:56:54 -05:00
Tom Ritter
9f13fdcfce Bug 1449244 Remove SphinxBase r=drno
MozReview-Commit-ID: AIcwcWAa4nV

--HG--
extra : rebase_source : 26a1f1379595917c20f042abfa2fbb25c634a9db
2018-03-27 12:04:10 -05:00
Cosmin Sabou
6e054fe297 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-28 12:52:57 +03:00
Matthew Gregan
f3e9b08714 Bug 776137 - Apply latency correction to audio stream position on macOS. r=padenot
--HG--
extra : rebase_source : ea7d68e32bdc1d3712b64a42f6fdaa75f0933988
2018-03-28 11:44:15 +13:00
Margareta Eliza Balazs
adebb06ac1 Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00