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

6731 Коммитов

Автор SHA1 Сообщение Дата
Nils Ohlmeier [:drno] 4217c389d1 Bug 1526733: added TCP/DTLS/RTP/SAVP to SDP parser. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D19278

--HG--
extra : moz-landing-system : lando
2019-02-11 18:01:36 +00:00
Byron Campen [:bwc] d3aa5063fc Bug 1526477 - Part 1: Fix typo causing us to go into the controlled role when interoping with an ice-lite endpoint. r=mjf
Depends on D19232

Differential Revision: https://phabricator.services.mozilla.com/D19233

--HG--
extra : moz-landing-system : lando
2019-02-11 16:10:13 +00:00
Byron Campen [:bwc] b9265f3fe2 Bug 1526477 - Part 0: Test role for ice-lite cases. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19232

--HG--
extra : moz-landing-system : lando
2019-02-11 16:09:24 +00:00
Byron Campen [:bwc] 91aa85ed89 Bug 1523795: Make temp copy of query->now to avoid access after query has been moved. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D19380

--HG--
extra : moz-landing-system : lando
2019-02-11 17:04:23 +00:00
Byron Campen [:bwc] 67e9440deb Bug 1522535: Break a cycle triggered by a recent web-platform-test merge. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D19171

--HG--
extra : moz-landing-system : lando
2019-02-08 16:57:45 +00:00
Cosmin Sabou 348a9c8697 Backed out 2 changesets (bug 1492629) for suspicion of causing a rise in xpcshell intermittents.
Backed out changeset 828188fd3203 (bug 1492629)
Backed out changeset b804c63247f5 (bug 1492629)
2019-02-08 08:38:58 +02:00
Dan Minor 92ff4b0d03 Bug 1524335: Make InOrderPacket take last_sequence_number by reference; r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D19694

--HG--
extra : rebase_source : ac4ef8f11e7b1b4975d1cd2e4c8985c6d040703d
extra : amend_source : 2440c041736e2408be3a7a670f2f69b1b6ab5215
2019-02-13 13:05:20 -05:00
Nils Ohlmeier [:drno] 477d9d5ec2 Bug 1510898: disable sha1_32 in Nightly builds. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D13365

--HG--
extra : moz-landing-system : lando
2018-11-30 04:39:59 +00:00
Adrian Wielgosik 750080f1a9 Bug 1492629 - Drop ShutdownLoaders phase, move only user to ShutdownFinal. r=mccr8
The only difference between ShutdownLoaders and ShutdownFinal was an observer service shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D18389

--HG--
extra : moz-landing-system : lando
2019-02-07 18:23:04 +00:00
Alex Gaynor 75c7d1fa76 Bug 1512990 - Part 2 - implement direct calls in the IPDL compiler; r=froydnj
When calling a Recv/Alloc/Dealloc method on most types, cast `this` to the
derived class.

There is a heuristic to figure out what the correct derived type is. There is a
blacklist of types which we can't do direct calls on for the moment, as well as
an override for types that do work with direct calls but which don't match the
heuristic.

Differential Revision: https://phabricator.services.mozilla.com/D16492

--HG--
extra : moz-landing-system : lando
2019-02-06 15:57:37 +00:00
Alex Chronopoulos 29f83c7bf2 Bug 1510548 - Suppress MSVC warning C4024 for libdav1d. r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D18678

--HG--
extra : moz-landing-system : lando
2019-02-06 06:19:23 +00:00
Noemi Erli 845539c92f Backed out 2 changesets (bug 1492629) for failures in mozJSComponentLoader.cpp
Backed out changeset 02f749ccdc4b (bug 1492629)
Backed out changeset cae6d1eec658 (bug 1492629)
2019-02-06 03:27:24 +02:00
Adrian Wielgosik d2dd23325b Bug 1492629 - Drop ShutdownLoaders phase, move only user to ShutdownFinal. r=mccr8
The only difference between ShutdownLoaders and ShutdownFinal was an observer service shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D18389

--HG--
extra : moz-landing-system : lando
2019-02-05 00:49:12 +00:00
Mike Hommey ad47c8dca9 Bug 1515641 - Check for nasm >= 2.13 for dav1d. r=TD-Linux,nalexander
Depends on D18294

Depends on D18294

Differential Revision: https://phabricator.services.mozilla.com/D15229

--HG--
extra : moz-landing-system : lando
2019-02-05 21:19:07 +00:00
Razvan Maries f86459d5dc Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-05 18:59:13 +02:00
Matthew Gregan 38a8cb51e1 Bug 1524818 - Update audioipc to c2148b95 to fix build with nightly rustc. r=chunmin
--HG--
extra : rebase_source : 4efcdf6f5ebb548f734c3948d715e2f8f5a2ceef
2019-02-05 15:32:02 +13:00
Byron Campen [:bwc] 194ccf5471 Bug 1370562: Don't try to validate attributes on disabled m-sections in answers. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D18369

--HG--
extra : moz-landing-system : lando
2019-02-04 15:40:16 +00:00
Csoregi Natalia 9423fa7897 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-02-02 00:14:12 +02:00
Nils Ohlmeier [:drno] c8aea55c6b Bug 1524145: set Opus stereo on send stream with 2 channels. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D18175

--HG--
extra : moz-landing-system : lando
2019-02-01 18:28:10 +00:00
Dan Minor cc229f4778 Bug 1524208 - Calculate stride based upon target_width in video_capture_impl.cc; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D18270

--HG--
extra : rebase_source : dcc70f5f91fe2a2af962a062942dad662eb3cc67
extra : amend_source : 29348cc4a00d11953ec7f2712a38252ab1817993
2019-01-31 15:37:38 -05:00
Alex Chronopoulos 0c15094a05 Bug 1522035 - Set HAVE_ALIGNED_MALLOC as global macro and avoid redefining in libdav1d. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D17632

--HG--
extra : moz-landing-system : lando
2019-01-30 09:06:52 +00:00
Nils Ohlmeier [:drno] 0d97afcc8d Bug 1523412: compare GetStreamCaps return values against S_OK. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D17872

--HG--
extra : moz-landing-system : lando
2019-01-29 21:21:33 +00:00
Sylvestre Ledru 14486004b6 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D18488

--HG--
extra : moz-landing-system : lando
2019-02-04 19:10:18 +00:00
Byron Campen [:bwc] 68bc15c3ce Bug 1494311: Making the mtransport API a little more IPC friendly, and establishing a proper base-class. r=mt,mjf
Differential Revision: https://phabricator.services.mozilla.com/D17272

--HG--
extra : moz-landing-system : lando
2019-01-29 14:56:19 +00:00
Alex Chronopoulos 00cdaa3f9f Bug 1523033 - Define DAV1D_API to empty in order to avoid exporting symbols from libxull. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D17847

--HG--
extra : moz-landing-system : lando
2019-01-29 14:19:44 +00:00
Thomas Daede 299320881b Bug 1523458 - Update libvorbis to 1.3.6. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D17894

--HG--
extra : moz-landing-system : lando
2019-01-29 01:14:51 +00:00
Alex Chronopoulos 2f27522cda Bug 1518106 - Update cubeb-pulse-rs from upstream to 17c1629. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D17400

--HG--
extra : moz-landing-system : lando
2019-01-23 19:37:18 +00:00
Alex Chronopoulos 46289fa2a3 Bug 1518106 - Update cubeb from upstream to feec7e2. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D17399

--HG--
extra : moz-landing-system : lando
2019-01-23 19:36:20 +00:00
Alex Chronopoulos ff638179ec Bug 1515933 - Configure 16 bytes stack alignment on Linux x86_64 dav1d builds. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D17346

--HG--
extra : moz-landing-system : lando
2019-01-24 02:43:58 +00:00
Makoto Kato 213cb734bc Bug 1522016 - Build NEON support for libopus on aarch64. r=jmvalin
aarch64 ABI supports NEON as default, so we should turn on NEON code for
aarch64.  Also, libopus's NEON code doesn't support MSVC yet.

Differential Revision: https://phabricator.services.mozilla.com/D17332

--HG--
extra : moz-landing-system : lando
2019-01-24 02:45:01 +00:00
Dan Minor 41f331e2ad Bug 1515205 - Always set frame timestamps in VideoStreamEncoder::OnFrame; r=drno
In the past we relied upon ViEEncoder::OnFrame to set the render time for
frames. With the branch 64 update, this code moved to
VideoStreamEncoder::OnFrame, and only sets the timestamp if it is greater than
the current time. This results in broken rtp timestamp estimates in the rtcp
sender report, which causes problems for Meet and possibly other services
that rewrite rtp timestamps based upon the sender report.

This patch makes VideoStreamEncoder::OnFrame always set the timestamp. In a
follow on bug, we'll move this behaviour to VideoConduit so we don't have to
maintain a local modification of the upstream code.

Differential Revision: https://phabricator.services.mozilla.com/D17413

--HG--
extra : moz-landing-system : lando
2019-01-23 20:48:20 +00:00
Alex Chronopoulos 836d8e0a78 Bug 1521791 - Update cubeb from upstream to 67d37c1. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D17248

--HG--
extra : moz-landing-system : lando
2019-01-22 16:09:51 +00:00
Razvan Maries c941c393cb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-21 20:01:06 +02:00
Andrew Osmond bba2f124b6 Bug 1521478 - Update libwebp to v1.0.2. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D17110
2019-01-21 12:55:02 -05:00
Andrew Osmond 1b65a4f599 Bug 1520760 - Fix AVX2 detection to ensure we have all required CPU parameters. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16994
2019-01-21 12:53:46 -05:00
Alex Chronopoulos ed3d0e43c1 Bug 1521078 - Don't assemble include only .asm files. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D16975

--HG--
extra : moz-landing-system : lando
2019-01-21 11:23:42 +00:00
Makoto Kato a2a77288af Bug 1516513 - Part 2. Add generated files to libvpx. r=jya
Depends on D15400

Differential Revision: https://phabricator.services.mozilla.com/D15401

--HG--
extra : moz-landing-system : lando
2019-01-21 04:52:45 +00:00
Makoto Kato 5c854f6c5a Bug 1516513 - Part 1. Add linux/aarch64 config to libvpx. r=jya
To use NEON on Linux/aarch64 and Android/aarch64, I would like to add it to
libvpx.  libvpx has a configuration as arm64-linux-gcc.

Differential Revision: https://phabricator.services.mozilla.com/D15400

--HG--
extra : moz-landing-system : lando
2019-01-21 04:55:02 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Nils Ohlmeier [:drno] a04d4e00bd Bug 1510487: allow DTLS connection w/o SRTP extension. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D14692

--HG--
extra : moz-landing-system : lando
2019-01-17 14:16:01 +00:00
Thomas Daede 29393c8e79 Bug 1509724 - Don't include x86_abi_support.asm in libvpx build. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D16615

--HG--
extra : moz-landing-system : lando
2019-01-16 21:42:38 +00:00
Nils Ohlmeier [:drno] 30f1bf4a25 Bug 1520289: added TCP/DTLS/RTP/SAVPF to SDP parsing. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D16660

--HG--
extra : moz-landing-system : lando
2019-01-16 14:38:07 +00:00
Alex Chronopoulos db69c1ddb2 Bug 1520174 - Update build files after dav1d import and add ASM build for Linux x86_32. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D16563

--HG--
extra : moz-landing-system : lando
2019-01-16 07:50:17 +00:00
Alex Chronopoulos 0e1ed98938 Bug 1520174 - Update dav1d from upstream to f813285. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D16562

--HG--
extra : moz-landing-system : lando
2019-01-16 00:05:25 +00:00
Nico Grunbaum 3cb1b02e77 Bug 1347070 - add qpSum to RTC outbound RTP stats r=jib,smaug
This adds qpSum to RTC outbound RTP stats

Differential Revision: https://phabricator.services.mozilla.com/D16016

--HG--
extra : moz-landing-system : lando
2019-01-15 21:26:05 +00:00
Bryce Van Dyk e41e35bf8d Bug 1516669 - Check init value of clearkey WMF decoder for failure. r=cpearce
We weren't checking this value and it was causing compiler warnings. Instead
this change means we check the value and log an error if init has failed.

Differential Revision: https://phabricator.services.mozilla.com/D15519

--HG--
extra : moz-landing-system : lando
2019-01-14 16:40:29 +00:00
Bryce Van Dyk 5aecaa0a28 Bug 1516669 - Update gmp-clearkey to use CDM10 interface. r=cpearce
Not much changed in the interface:
- CDM initialization takes a use hardware codecs arg, we pipe this through, but
  don't do anything more with it in the clearkey CDM.
- The CDM should call the hosts OnInitialized() when it's initialized. This is
  done is now done in the clearkey CDM once the session management is ready, as
  that is the last thing done during init.

Aside from the above, it's just updating interface usage. While the new CDM
interface adds support for different encryption schemes, this is not handled
here and will be done in follow up bug 1516673.

Differential Revision: https://phabricator.services.mozilla.com/D15518

--HG--
extra : moz-landing-system : lando
2019-01-14 16:40:04 +00:00
Byron Campen [:bwc] afc4312249 Bug 1502899: Allow provisional transceiver level assignments to be recovered by rollback. r=jib,mjf
Bug 1502899: Allow provisional transceiver level assignments to be recovered by rollback.

Differential Revision: https://phabricator.services.mozilla.com/D10290

--HG--
extra : moz-landing-system : lando
2019-01-11 22:42:20 +00:00
Mike Hommey 7c72587da6 Bug 1519047 - Move FFVPX_ASFLAGS and related variables to python configure. r=nalexander
This also moves the corresponding ASFLAGS from moz.build to python
configure.

Differential Revision: https://phabricator.services.mozilla.com/D16320

--HG--
extra : moz-landing-system : lando
2019-01-11 18:17:36 +00:00
Dan Minor 532d683503 Bug 1518744 - Deregister owner in DeviceInfoIos destructor; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D16047

--HG--
extra : rebase_source : 74e471e06afdccef080edbc4e3b7a887469c49bb
extra : amend_source : 1aaa93fdfa720c0b9788835d6eaec8242c43c763
2019-01-09 09:22:27 -05:00
Paolo Amadini ffa6503244 Bug 983187 - Test that downloads fail when an RST packet is received. r=mayhemer
This adds a way to simulate failed network connections, allowing the addition of test coverage that would otherwise not be available. This is used in the Downloads tests to ensure that failures at the network level are handled correctly.

Differential Revision: https://phabricator.services.mozilla.com/D15522

--HG--
extra : rebase_source : 2597b27de5213b0322520cefafe10a197d0d3b83
2019-01-09 11:48:23 +00:00
Nathan Froyd 27ac7aed45 Bug 1062533 - part 1 - convert easy cases of chromium IPC locks to mozilla mutexes; r=mccr8
Other cases will require some special handling.
2019-01-09 11:09:25 -04:00
Dan Minor b0b3dd95ac Bug 1506884 - Document member thread access in AudioConduit; r=padenot
This also removes some unused member variables.

Differential Revision: https://phabricator.services.mozilla.com/D25056

--HG--
extra : rebase_source : ec18c54b81dc96850e6d2b5e1673dea5ed6bb949
extra : source : 1ffa990b25e37691e53fdef6604411bb5241b03d
extra : histedit_source : cb3b5b526b6aa4ccfca1c789612b3cdc8a2b6716
2018-11-15 13:24:05 -05:00
Dan Minor a544a8d8f1 Bug 1506884 - Document thread usage of mRtpPacketQueue in VideoConduit; r=padenot
This was added during the branch 64 update, but was not documented at that time.

Differential Revision: https://phabricator.services.mozilla.com/D25054

--HG--
extra : rebase_source : 49d7be8d1db97edcd601ff3a0e502521c21e87ad
extra : source : 6c4544bfbe7262555ca7154f3367ad24d7b55669
extra : histedit_source : baa8da9d12766ff9ea133aed356832f273de8431
2018-11-19 10:12:50 -05:00
Nico Grunbaum 52229a82fe Bug 813063 - Add LICENSE file to root of WebRTC.org source r=dminor
Adding a missing license file to the root of the WebRTC.org source

Differential Revision: https://phabricator.services.mozilla.com/D14299

--HG--
extra : moz-landing-system : lando
2019-01-08 04:17:07 +00:00
Dan Minor 743a863043 Bug 1439997 - Fix ondevicechange event on OS X; r=jib
This brings the changes from Bug 1286429 that were made to the older
mac/avfoundation video capture code to the newer objc video capture
code.

Depends on D15196

Differential Revision: https://phabricator.services.mozilla.com/D15197

--HG--
extra : moz-landing-system : lando
2019-01-08 14:39:15 +00:00
Dan Minor c02e428bd0 Bug 1439997 - Remove old mac video capture code; r=jib
This code is no longer used and has been removed upstream. We can remove
it as well.

Differential Revision: https://phabricator.services.mozilla.com/D15196

--HG--
extra : moz-landing-system : lando
2019-01-07 16:34:01 +00:00
Andreas Pehrson 6f2800844c Bug 1517711 - Guard other uses of SetPullingEnabled too. r=padenot
Depends on D15892

Differential Revision: https://phabricator.services.mozilla.com/D15896

--HG--
extra : moz-landing-system : lando
2019-01-08 10:06:08 +00:00
Makoto Kato 542b27743e Bug 1516605 - Turn on NEON on aarch64 when using gcc or clang. r=aosmond
libpng has NEON support using intrinsics, not assembler, so we should use it
even if aarch64.

MSVC build still turns off NEON since libpng doesn't support it on stable
version although upstream has it.

Differential Revision: https://phabricator.services.mozilla.com/D15462

--HG--
extra : moz-landing-system : lando
2019-01-02 14:11:31 +00:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Peter Van der Beken 066d891adb Bug 1353867 - Add cross-process proxies for WindowProxy. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12656

--HG--
extra : moz-landing-system : lando
2019-01-02 13:29:18 +00:00
Sylvestre Ledru cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D15426

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Dan Minor d86cbd146f Bug 1515461 - Make AVCaptureSession stopRunning synchronous; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D15144

--HG--
extra : moz-landing-system : lando
2018-12-21 17:07:06 +00:00
Nico Grunbaum bb1557ee1c Bug 1380555 - remove deprecated WebRTC RTP stat isRemote in favor of new stat types r=jib,smaug
Removes RTP stat field isRemote and adds the new types remote-inbound-rtp, and remote-outbound-rtp

Differential Revision: https://phabricator.services.mozilla.com/D15068

--HG--
extra : moz-landing-system : lando
2018-12-21 02:35:58 +00:00
Narcis Beleuzu 1110297dc8 Backed out changeset ccb218cd2d87 (bug 1380555) for mozlint failure on PeerConnection.js . CLOSED TREE 2018-12-21 04:20:58 +02:00
Nico Grunbaum 684ea28cec Bug 1380555 - remove deprecated WebRTC RTP stat isRemote in favor of new stat types r=jib,smaug
Removes RTP stat field isRemote and adds the new types remote-inbound-rtp, and remote-outbound-rtp

Differential Revision: https://phabricator.services.mozilla.com/D15068

--HG--
extra : moz-landing-system : lando
2018-12-21 00:46:54 +00:00
David Major 9fb109137e Bug 1486038: Work around missing ARM64 NEON intrinsics in MSVC. r=dminor
--HG--
extra : rebase_source : de6d6b3e790aaa235829664825470da94872e6f1
2018-12-20 14:22:51 -04:00
David Major 8a836950ec Bug 1486038: Use arm64_neon.h instead of arm_neon.h with MSVC. r=dminor
--HG--
extra : rebase_source : 6acdc77121e960aa72d2f6a3dd95ab93ad9e5e28
2018-12-20 14:22:48 -04:00
Mike Hommey 1467f34ce5 Bug 1515257 - Remove VPX_AS_CONVERSION. r=firefox-build-system-reviewers,ted
There's only really one place where it's used, and we can "inline" it
there.

Depends on D14947

Differential Revision: https://phabricator.services.mozilla.com/D14948

--HG--
extra : moz-landing-system : lando
2018-12-19 22:39:27 +00:00
Mike Hommey fdb264754f Bug 1515257 - Don't pretend there are ARM assembly sources in libaom. r=firefox-build-system-reviewers,ted
There aren't any, and the code to actually convert them from .asm to gas
that is expected by the moz.build is not even there, so if there were
assembly sources, it would fail to build.

Depends on D14946

Differential Revision: https://phabricator.services.mozilla.com/D14947

--HG--
extra : moz-landing-system : lando
2018-12-19 11:12:11 +00:00
Mike Hommey a846159c7f Bug 1515257 - Remove VPX_ARM_ASM. r=firefox-build-system-reviewers,ted
It is only used in one place, where it is redundant with VPX_AS_CONVERSION.

Depends on D14945

Differential Revision: https://phabricator.services.mozilla.com/D14946

--HG--
extra : moz-landing-system : lando
2018-12-19 11:11:17 +00:00
Alex Chronopoulos 149cb23b37 Bug 1509453 - Consolidate dav1d config headers to a single one. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D14870

--HG--
extra : moz-landing-system : lando
2018-12-19 20:05:31 +00:00
Alex Chronopoulos 4fa721794d Bug 1509453 - Update build files to latest dav1d import. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D14869

--HG--
extra : moz-landing-system : lando
2018-12-19 19:39:07 +00:00
Alex Chronopoulos dee5990e57 Bug 1509453 - Update dav1d from upstream to b53a99b9. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D14868

--HG--
extra : moz-landing-system : lando
2018-12-19 18:11:14 +00:00
Alex Chronopoulos a266f18545 Bug 1509453 - Build dav1d's assembly files. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D14867

--HG--
extra : moz-landing-system : lando
2018-12-19 19:18:04 +00:00
Nico Grunbaum 7cd09e1947 Bug 1515379 - initialize frames delivered stat and add test r=dminor
This initializes a one of the stats that lost its default initialization when it was changed from an Atomic to a plain old int.

Differential Revision: https://phabricator.services.mozilla.com/D14978

--HG--
extra : moz-landing-system : lando
2018-12-19 17:57:15 +00:00
Matthew Gregan 5ed3387542 Bug 1512450 - Clean up reslicing of audio buffers in AudioIPC's server data callback. r=chunmin
--HG--
extra : amend_source : c7e3943507cde2d321aa1f6b03054cd028336f88
2018-12-18 18:07:54 +02:00
arthur.iakab f1762a3667 Merge mozilla-central to mozilla-inbound 2018-12-18 07:36:08 +02:00
Jean-Yves Avenard 0855e7a7da Bug 1513511 - P1. Use new FFmpeg decode API with recent FFmpeg version. r=bryce
In libavcodec 58 and later, the old avcodec_decode_video2 is broken and only return the first visible frame found after a VP9 super-frame.

This resulted in some YouTube videos for about 10% of the frames to never be returned.

Only the new API properly behaves so we upgrade our code to use it.

Differential Revision: https://phabricator.services.mozilla.com/D14682

--HG--
extra : moz-landing-system : lando
2018-12-17 17:29:13 +00:00
Dan Minor 73d9c4cce6 Bug 1498253 - Remove mozAvSyncDelay and mozJitterBufferDelay; r=ng
The value for mozAvSyncDelay has been broken since the branch 57 update
(Bug 1341285). We added SetCurrentSyncOffset() but never called it from
anywhere.

In the future we should be getting stats from AudioReceiveStream rather than
modifying the channel code, the delay_estimate_ms field provides almost the
same information.

Since we're attempting to get rid of moz prefixed stats, it makes sense to just
remove this code rather than fix it. The associated telemetry code has been
broken since Bug 1341285 as well so I think it is safe to remove.

Differential Revision: https://phabricator.services.mozilla.com/D14462

--HG--
extra : moz-landing-system : lando
2018-12-14 13:08:12 +00:00
Sylvestre Ledru 6f45c666bc Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D14595

--HG--
extra : moz-landing-system : lando
2018-12-14 18:10:35 +00:00
Dan Minor 372979b6e0 Bug 1511509 - Assert that at least one stream is configured in CreateEncoderStreams; r=pehrsons
CreateEncoderStreams is called from VideoStreamEncoder::ReconfigureEncoder
which does not check that at least one stream is returned prior to accessing
one of the streams. This would most likely result in a runtime check failing
in ReconfigureEncoder. This adds a runtime assertion in CreateEncodeStreams
that will check that at least one stream is created. This is better than
undefined behaviour in ReconfigureEncoder.

Differential Revision: https://phabricator.services.mozilla.com/D14281

--HG--
extra : moz-landing-system : lando
2018-12-13 15:08:17 +00:00
Nico Grunbaum ecedddea82 Bug 1495446 - fix timestamp of WebRTC RTCP stats r=jib
The RTCP timestamps have different timebases and reporting sources, this makes the source and timebase the same for all RTCP stats

Differential Revision: https://phabricator.services.mozilla.com/D7354

--HG--
extra : moz-landing-system : lando
2018-12-14 01:55:21 +00:00
Dan Minor cc523ee293 Bug 1497610 - Remove IsNewerOrSameTimestamp; r=bwc
The affected functions are only used by VCMJitterBuffer, which is the older
jitter buffer that is no longer in use. We can safely remove these
modifications.

Differential Revision: https://phabricator.services.mozilla.com/D14485

--HG--
extra : moz-landing-system : lando
2018-12-13 20:35:27 +00:00
Dan Minor 5e0f0c2fb0 Bug 1497992 - Remove VideoReceiver::Reset; r=pehrsons
This ends up calling VCMReceiver::Reset() which resets the
state of the VCMJitterBuffer. We no longer use VCMJitterBuffer,
which is the old jitter buffer implementation, so this code
no longer has any effect and can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D14185

--HG--
extra : moz-landing-system : lando
2018-12-12 17:57:38 +00:00
Bryce Van Dyk d9995b9edc Bug 1513042 - Update mp4parse-rust to v0.11.2. r=jya
Update mp4parse-rust update script and pull the new version.

This update changes the mp4parse C-API. Specifically, each track can now
have multiple sample descriptions. Previously we'd just exposed the first for
the entire track, and if others were available they were not exposed via the
API. Because of the API change, we update the C++ interface with mp4parse-rust.

We now inspect the sample info to make sure they're consistent with the parsers
expectations:
- Only a single codec is present for a track, multiple codecs in a track will
  result in us returning an error.
- Only 0 or 1 crypto info is present for a track, more than one set of info will
  result in us returning an error.

We still generalize some of the first sample info to the samples of the track,
as we did before this patch. However, we will now catch the above cases
explicitly.

We now handle crypto information if it is not present on the first sample info.
The parser will iterate through sample infos and use the first set of crypto
info it finds (and fail if it finds 2+).

Differential Revision: https://phabricator.services.mozilla.com/D14107

--HG--
extra : moz-landing-system : lando
2018-12-12 15:04:18 +00:00
Dorel Luca 58cd1ee36a Backed out changeset b3a9872c08d7 (bug 1513042) for Gtest failure
--HG--
extra : rebase_source : 6930ed8e1ea84af3a83f380279138d75ce2bde30
2018-12-12 02:13:45 +02:00
Bryce Van Dyk 74daa628bc Bug 1513042 - Update mp4parse-rust to v0.11.2. r=jya
Update mp4parse-rust update script and pull the new version.

This update changes the mp4parse C-API. Specifically, each track can now
have multiple sample descriptions. Previously we'd just exposed the first for
the entire track, and if others were available they were not exposed via the
API. Because of the API change, we update the C++ interface with mp4parse-rust.

We now inspect the sample info to make sure they're consistent with the parsers
expectations:
- Only a single codec is present for a track, multiple codecs in a track will
  result in us returning an error.
- Only 0 or 1 crypto info is present for a track, more than one set of info will
  result in us returning an error.

We still generalize some of the first sample info to the samples of the track,
as we did before this patch. However, we will now catch the above cases
explicitly.

We now handle crypto information if it is not present on the first sample info.
The parser will iterate through sample infos and use the first set of crypto
info it finds (and fail if it finds 2+).

Differential Revision: https://phabricator.services.mozilla.com/D14107

--HG--
extra : moz-landing-system : lando
2018-12-11 20:55:26 +00:00
Dan Minor c091d9b683 Bug 1497619 - Restore thread check in process_thread_impl.cc; r=ng
Not not really needed.

Differential Revision: https://phabricator.services.mozilla.com/D14097

--HG--
extra : moz-landing-system : lando
2018-12-10 20:37:56 +00:00
Dan Minor 6562906d33 Bug 1497573 - Remove DesktopCapturer::Stop; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D14066

--HG--
extra : moz-landing-system : lando
2018-12-10 17:23:37 +00:00
Sylvestre Ledru ad75e912fb Bug 1512961 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D14060

--HG--
extra : moz-landing-system : lando
2018-12-10 19:23:16 +00:00
Dan Minor 4c2f93d7ef Bug 1497650 - Remove 100 bytes added to CalcBufferSize in vp8_impl.cc; r=ng
In Bug 919979 we added 100 bytes to the size returned by CalcBufferSize
to work around an error with the calculated buffer size with small
resolutions. I verified that this extra buffer is no longer required with
a modified mochitest. Given the age of the bug this was working around,
I don't think a permanent test is required to prevent regressions from
upstream.

Differential Revision: https://phabricator.services.mozilla.com/D14076

--HG--
extra : moz-landing-system : lando
2018-12-10 17:19:34 +00:00
Dan Minor 5fa6fb4f75 Bug 1512459 - Remove webrtc sndio audio device; r=padenot
This code is unused and can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D13929

--HG--
extra : moz-landing-system : lando
2018-12-10 12:33:04 +00:00
Dan Minor 0cc3ce8ac8 Bug 1497974 - Remove local changes to jitter_buffer.cc; r=pehrsons
These modifications are made to code which we do not use and so
can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D13989

--HG--
extra : moz-landing-system : lando
2018-12-07 20:18:57 +00:00
Alex Chronopoulos 188e024d0c Bug 1510786 - Add configuration header for ppc64 and s390x. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13403

--HG--
extra : moz-landing-system : lando
2018-12-07 18:59:56 +00:00
Dan Minor 22446f0d3d Bug 1497606 - Remove disable_composition_ in screen_capturer_win_gdi; r=ng
This removes disable_composition_ and instead uses the value of
composition_func_ to determine whether or not composition is
disabled. This is what is done by upstream webrtc.org.

We call options.set_disable_effects(false) in desktop_capture_impl.cc.

Differential Revision: https://phabricator.services.mozilla.com/D13839

--HG--
extra : moz-landing-system : lando
2018-12-05 18:55:57 +00:00
Sylvestre Ledru eaf6089240 Bug 1511900 - Fix some wording r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13712

--HG--
extra : moz-landing-system : lando
2018-12-05 20:00:57 +00:00
Jean-Yves Avenard 590f06d6e0 Bug 1509875 - P1. Retrieve extended profile from mp4parse. r=kinetik
Depends on D13765

Differential Revision: https://phabricator.services.mozilla.com/D13766

--HG--
extra : moz-landing-system : lando
2018-12-05 16:54:21 +00:00
Jean-Yves Avenard fe16899ee1 Bug 1509875 - Cherry-pick mp4parse-rust commit 4472ec104e2b38e6379. r=padenot
Depends on D13755

Differential Revision: https://phabricator.services.mozilla.com/D13756

--HG--
extra : moz-landing-system : lando
2018-12-05 16:54:19 +00:00
Jean-Yves Avenard 836fc05ec7 Bug 1509875 - Update cubeb from upstream to e5c3a1d8a68c. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13755

--HG--
extra : moz-landing-system : lando
2018-12-04 21:40:49 +00:00
Dan Minor fa93f60209 Bug 1368816 - Enable VideoCaptureExternalTest Rotation gtest; r=ng
This test started failing after the 57 update and started passing
again after the 64 update, so we might as well enable it.

Differential Revision: https://phabricator.services.mozilla.com/D13803

--HG--
extra : moz-landing-system : lando
2018-12-05 14:13:33 +00:00
David Major f2a2531cf6 Bug 1504017: Enable building libwebp's NEON code in clang-cl builds. r=froydnj
--HG--
extra : rebase_source : a0808dee8a6fe9bc16b330a234089ef2a301bf27
2018-12-17 10:09:08 -04:00
Alex Chronopoulos 295d196e68 Bug 1509327 - Update libdav1d build file after import. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13427

--HG--
extra : moz-landing-system : lando
2018-11-30 19:07:07 +00:00
Alex Chronopoulos 04fe7aa697 Bug 1509327 - Update dav1d from upstream to 36b807a. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13426

--HG--
extra : moz-landing-system : lando
2018-12-01 21:59:40 +00:00
Dan Minor 032512790d Bug 1498205 - Move PlatformUIThread from rtc_base to video_engine; r=pehrsons
PlatformUIThread is only used by the video_engine code, so it makes sense to
move it there rather than maintain it as a diff against upstream webrtc.org.

Differential Revision: https://phabricator.services.mozilla.com/D13531

--HG--
extra : moz-landing-system : lando
2018-11-30 17:46:38 +00:00
Dan Minor 8684095f20 Bug 1497577 - Remove code to detect zero size windows; r=ng
This code was added by Bug 1196542 to fix a permanently failing test on our
Windows test machines. After this landed, upstream added a check for empty
windows in window_captuer_win.cc, so this should no longer be a problem on
Windows. As far as I know, this was never a problem on the other platforms,
so this code can be safely removed.

Differential Revision: https://phabricator.services.mozilla.com/D13448

--HG--
extra : moz-landing-system : lando
2018-11-29 20:54:51 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jan-Ivar Bruaroey 01afd58c84 Bug 1492479 - Move MediaStreamError out of MediaManager. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13175

--HG--
extra : moz-landing-system : lando
2018-11-30 05:15:54 +00:00
Jan-Ivar Bruaroey e3194aa305 Bug 1492479 - Have MediaManager::GetUserMedia() return a promise. r=achronop,jya
Differential Revision: https://phabricator.services.mozilla.com/D8008

--HG--
extra : moz-landing-system : lando
2018-11-30 05:13:58 +00:00
Andreea Pavel 8e973f56b2 Backed out 3 changesets (bug 1509327) for build bustages on a CLOSED TREE
Backed out changeset aeb00b8974a4 (bug 1509327)
Backed out changeset ea27440a2126 (bug 1509327)
Backed out changeset 9881fd46fde2 (bug 1509327)
2018-11-30 05:16:08 +02:00
Alex Chronopoulos 260020ff15 Bug 1509327 - Update libdav1d build file after import. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13427

--HG--
extra : moz-landing-system : lando
2018-11-29 22:26:11 +00:00
Alex Chronopoulos d5ff9b025d Bug 1509327 - Update dav1d from upstream to 9e08ac7. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13426

--HG--
extra : moz-landing-system : lando
2018-11-29 22:24:05 +00:00
Andreas Pehrson f0bf48464f Bug 1509548 - Make MediaStreamGraph pull data per track instead of per stream. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13086

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:42 +00:00
Andreas Pehrson a02fa011f0 Bug 1509548 - Remove the concept of a known tracks time from MediaStreamGraph. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12923

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:06 +00:00
Paul Vitale 34ca854b9d Bug 1194010 - Block webrtc socket creation on restricted ports r=drno
Port restriction is delegated to the io service.  Port 0 is explicitly
unrestricted.

NS_CheckPortSafety emits a warning which pollutes the gtests a bit.  It is only
tested if the port is not 0.

Differential Revision: https://phabricator.services.mozilla.com/D13187

--HG--
extra : moz-landing-system : lando
2018-11-29 15:40:44 +00:00
Dan Minor 7ca7e7696c Bug 1497552 - Remove support for 44100 Hz in dtmf_tone_generator; r=padenot
Assertions in NetEqImpl::SetSampleRateAndChannels prevent us from requesting
tones at 44100 Hz, so this code can be safely removed.

Differential Revision: https://phabricator.services.mozilla.com/D12982

--HG--
extra : moz-landing-system : lando
2018-11-29 12:59:01 +00:00
Dan Minor b2dbaeae8f Bug 1497602 - Enable DirectX screen capturer on Windows; r=pehrsons
This enables support for the DirectX screen capturer. We use the default
DesktopCaptureOptions which do not set the option to use the DirectX screen
capturer so this change will have no effect with the current code.

For what it's worth, I tested enabling the DirectX option and it worked fine on my
system, but I don't see any reason to not follow the defaults provided by
webrtc.org in this case.

Differential Revision: https://phabricator.services.mozilla.com/D13303

--HG--
extra : moz-landing-system : lando
2018-11-29 13:27:23 +00:00
Nico Grunbaum 41a179ba06 Bug 1324788 - Bug 1324688 - Bring RTCIceCandidateStats up to spec r=mjf,jib,smaug
Bug 1324788 - P1 - rename RTCIceCandidate stat "portNumber" to spec "port"
Bug 1324788 - P2 - update RTCIceCandidateStats candidateType enum to spec
Bug 1324788 - P3 - add RTCIceCandidatePair.priority stat
Bug 1324788 - P4 - update WebRTC ICE candidate stats field componentId to spec name transportId
Bug 1324788 - P5 - remove deprecated RTCIceCandidateStats.mozLocalTransport field
Bug 1324788 - P6 - update WebRTC ICE candidate stats field transport to spec name, protocol
Bug 1324788 - P7 - remove deprecated RTCIceCandidateStats.candidateId
Bug 1324788 - P8 - reorder RTCIceCandidateStats dictionary members to match the spec
Bug 1324788 - P9 - make RTCIceCandidateStats.transportId ChromeOnly

Differential Revision: https://phabricator.services.mozilla.com/D12953

--HG--
extra : moz-landing-system : lando
2018-11-28 20:30:07 +00:00
Gabriele Svelto 19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Dan Minor 7d22c8090a Bug 1509994 - Regenerate moz.build files; r=pehrsons
Depends on D13095

Differential Revision: https://phabricator.services.mozilla.com/D13096

--HG--
extra : moz-landing-system : lando
2018-11-27 17:34:05 +00:00
Dan Minor f4eadf5478 Bug 1509994 - Update gn generated json files (part 2); r=pehrsons
Depends on D13094

Differential Revision: https://phabricator.services.mozilla.com/D13095

--HG--
extra : moz-landing-system : lando
2018-11-27 17:33:47 +00:00
Dan Minor 2b6f177a68 Bug 1509994 - Update gn generated json files; r=pehrsons
Depends on D13092

Differential Revision: https://phabricator.services.mozilla.com/D13094

--HG--
extra : moz-landing-system : lando
2018-11-27 17:32:52 +00:00
Dan Minor 440fc58998 Bug 1509994 - Move video_engine from webrtc to systemservices; r=pehrsons
Historically this code was part of webrtc.org but has since been removed
from upstream. Rather than maintaining it as a local diff against upstream,
we should just move it to where it is used.

Differential Revision: https://phabricator.services.mozilla.com/D13092

--HG--
rename : media/webrtc/trunk/webrtc/video_engine/browser_capture_impl.h => dom/media/systemservices/video_engine/browser_capture_impl.h
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.cc => dom/media/systemservices/video_engine/desktop_capture_impl.cc
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.h => dom/media/systemservices/video_engine/desktop_capture_impl.h
extra : moz-landing-system : lando
2018-11-28 20:16:42 +00:00
Nils Ohlmeier [:drno] 1319a0b5d5 Bug 1507700: allow incoming STUN requests. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D12384

--HG--
extra : moz-landing-system : lando
2018-11-28 20:13:17 +00:00
Ehsan Akhgari ca162bee20 Bug 1508472 - Part 4: Fourth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13193

--HG--
extra : moz-landing-system : lando
2018-11-28 09:16:55 +00:00
Byron Campen [:bwc] 3cc2282db8 Bug 1507216: Make sure AudioConduit doesn't re-create the recv stream without de-registering the old one. r=dminor
Make a cleaner distinction between having a recv stream that is inactive, and no recv stream at all. Requires some modification to local RTC extension configuration, because of a test-case that assumed StopReceiving/StartReceiving would re-create the recv stream as opposed to simply restarting it.

Differential Revision: https://phabricator.services.mozilla.com/D12936

--HG--
extra : moz-landing-system : lando
2018-11-26 19:56:25 +00:00
Alex Chronopoulos e821d283fa Bug 1493400 - Create build files for dav1d. r=firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D12163

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:31 +00:00
Alex Chronopoulos 8046b715cd Bug 1493400 - Update dav1d from upstream to d27598e. r=TD-Linux
Depends on D9607

Differential Revision: https://phabricator.services.mozilla.com/D12162

--HG--
rename : third_party/dav1d/include/compat/stdatomic.h => third_party/dav1d/include/compat/msvc/stdatomic.h
rename : third_party/dav1d/src/arm/mc_init.c => third_party/dav1d/src/arm/mc_init_tmpl.c
rename : third_party/dav1d/src/x86/ipred_init.c => third_party/dav1d/src/x86/ipred_init_tmpl.c
rename : third_party/dav1d/src/x86/itx_init.c => third_party/dav1d/src/x86/itx_init_tmpl.c
rename : third_party/dav1d/src/x86/loopfilter_init.c => third_party/dav1d/src/x86/loopfilter_init_tmpl.c
extra : moz-landing-system : lando
2018-11-27 14:04:37 +00:00
Thomas Daede e6a11914f8 Bug 1493400 - Import dav1d into tree. r=glob
Differential Revision: https://phabricator.services.mozilla.com/D9607

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:30 +00:00
Coroiu Cristina 9f7204e754 Merge inbound to mozilla-central a=merge 2018-11-27 00:34:45 +02:00
byron jones e26ef89bc9 Bug 1509867 - add moz.yaml to libpng, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D12901

--HG--
extra : moz-landing-system : lando
2018-11-26 14:32:38 +00:00
byron jones cd4fa62854 Bug 1507051 - replace libyuv's README_MOZILLA with moz.yaml; r=jesup
Replace README_MOZILLA with moz.yaml, various fixups for update.py, and create
a missing patch file from Bug 1491848.

Differential Revision: https://phabricator.services.mozilla.com/D11891

--HG--
extra : moz-landing-system : lando
2018-11-23 13:00:07 +00:00
Byron Campen [:bwc] 97690b385d Bug 1494312 - Part 3: Expose RLog stuff via MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11777

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:51 +00:00
Byron Campen [:bwc] e6218aee8a Bug 1494312 - Part 2: Make the internal PC stats API based on MozPromise. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D11776

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:52 +00:00
Byron Campen [:bwc] 69e7155b3a Bug 1494312 - Part 1: Remove unused nsresult returns from MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11775

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:23 +00:00
Andreas Pehrson 0c346714e6 Bug 1423241 - Remove fake-class-based webrtc unittests. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D12285

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:07 +00:00
Andreas Pehrson 4213b7db86 Bug 1423241 - Refactor DecodedStream. r=jya
This removes DecodedStream's use of MediaStreamListener in favor of
MediaStreamTrackListener. This change has however rippled through to a lot
more cleanup, per below.

This moves the MediaStreamTrack lifetime ownership for captured
HTMLMediaElements from the media element to DecodedStream, where the
MediaStreamGraph-side tracks are already created and ended today.

This makes MediaStreamTrack creation explicit across the entire codebase and
lets us remove the MediaStreamTrackSourceGetter class and the infrastructure
of adding MediaStreamTracks after they've already been created in the graph
from DOMMediaStream.

With track ownership, and thus TrackID allocation ownership, happening
exclusively in DecodedStream for its output tracks, we also stop throwing
away and recreating the SourceMediaStream to which we feed data on seek.
This is one step closer to fixing bug 1172394 and spec compliance of
HTMLMediaElement.captureStream().

Differential Revision: https://phabricator.services.mozilla.com/D12273

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:03 +00:00
Andreas Pehrson e80887ac8d Bug 1423241 - Return appended StreamTime samples appended through AppendToTrack. r=padenot
This allows DecodedStream to accurately track how many samples have been
appended to a track, even with resampling enabled.

Differential Revision: https://phabricator.services.mozilla.com/D12272

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:48 +00:00
Andreas Pehrson 80cde33d12 Bug 1423241 - Always add tracks at the stream's current time. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12271

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:42 +00:00
Andreas Pehrson bae0391522 Bug 1423241 - Move MediaPipeline from MediaStreamListener to MediaStreamTrackListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9104

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:30 +00:00
Jean-Yves Avenard e9ab7f5485 Bug 1505284 - P4. Split preferences to enable WebRTC with MediaDataDecoder. r=padenot
So that we can disable just the H264 decoders while allowing VP8 or VP9.

Differential Revision: https://phabricator.services.mozilla.com/D12539

--HG--
extra : moz-landing-system : lando
2018-11-22 16:31:16 +00:00
Dan Minor c5bce82ff0 Bug 1507413 - Increase number of media streams supported by sipcc; r=bwc
This also removes SDP_MAX_LINE_LEN which is unused.

Differential Revision: https://phabricator.services.mozilla.com/D12472

--HG--
extra : moz-landing-system : lando
2018-11-21 20:00:19 +00:00
byron jones bb7a59d509 Bug 1509236 - replace libsoundtouch's README_MOZILLA with moz.yaml r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12624

--HG--
extra : moz-landing-system : lando
2018-11-22 09:42:20 +00:00
Nico Grunbaum 0c719fb462 Bug 1489040 Update WebRTC ICE candidate stats field name ipAddress to address r=mjf,jib,smaug
Bug 1489040 - P1 - Update WebRTC ICE candidate stats field ipAddress to new name, address
Bug 1489040 - P2 - adjust WebRTC stats mochitest for new stat name 'address'
Bug 1489040 - P3 - add test for legacy WebRTC stat names

Differential Revision: https://phabricator.services.mozilla.com/D5560

--HG--
extra : moz-landing-system : lando
2018-11-22 00:14:36 +00:00
Dan Minor 118f324018 Bug 1411681 - Cherrypick 6728003bcf5657da8f9ed52ad84f46c1197ce54b from upstream webrtc.org; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D12417

--HG--
extra : moz-landing-system : lando
2018-11-20 12:07:07 +00:00
Dan Minor a88b07525e Bug 1406941 - Add unittests for configuring AudioConduit; r=padenot
Depends on D12017

Differential Revision: https://phabricator.services.mozilla.com/D12018

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:35 +00:00
Dan Minor 5efc93cb87 Bug 1406941 - Make AudioConduit more easily unit testable; r=padenot
This makes Init and DeleteChannels virtual and mRecvChannelProxy and
mSendChannelProxy protected. This will allow unit test code to override
the creation of channels so that we can use a mocked ChannelProxy instead.

Depends on D12016

Differential Revision: https://phabricator.services.mozilla.com/D12017

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:43 +00:00
Dan Minor 80bc9e8334 Bug 1406941 - Remove unused error handling code from SetLocalRTPExtensions; r=padenot
Rather than returning an error, the channel proxies have asserts that the
underlying calls to the channel objects succeeded.

Depends on D12015

Differential Revision: https://phabricator.services.mozilla.com/D12016

--HG--
extra : moz-landing-system : lando
2018-11-19 17:46:15 +00:00
Dan Minor 6c797e79ae Bug 1406941 - Set opus maxplaybackrate in AudioConduit; r=padenot
This was regressed by the branch 64 update. The parameter is used in
audio_encoder_opus.cc.

Depends on D12014

Differential Revision: https://phabricator.services.mozilla.com/D12015

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:16 +00:00
Dan Minor f064d3d180 Bug 1406941 - Fix typo in videoconduit_unittests.cpp; r=padenot
Depends on D12013

Differential Revision: https://phabricator.services.mozilla.com/D12014

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:25 +00:00
Dan Minor a9a121b9e9 Bug 1406941 - Remove unused fields from JsepAudioCodecDescription; r=bwc
Packet size and rate are no longer configured inside AudioConduit, so there is
no reason to continue to define them here. We now take the defaults provided
by webrtc.org.

Depends on D12012

Differential Revision: https://phabricator.services.mozilla.com/D12013

--HG--
extra : moz-landing-system : lando
2018-11-19 17:44:16 +00:00
Dan Minor 450258b20a Bug 1406941 - Remove unused fields from AudioCodecConfig; r=padenot
With the branch 64 update we no longer configure packet size and rate
ourselves. Instead, we use the defaults provided in acm_codec_database.cc.
This removes the unused fields from AudioCodecConfig, the next commit does the
same thing for JsepAudioCodecDescription.

Differential Revision: https://phabricator.services.mozilla.com/D12012

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:33 +00:00
Thomas Daede 9735214d9a Bug 1501796 - Use nasm when yasm is requested. r=firefox-build-system-reviewers,mshal
Includes changes to support nasm's stricter include paths.

Supports falling back to yasm if nasm is missing.

Differential Revision: https://phabricator.services.mozilla.com/D9972

--HG--
extra : moz-landing-system : lando
2018-11-16 01:20:58 +00:00
Csoregi Natalia c9b70719c8 Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Dan Horák 02a48779df Bug 1506644 - Add webrtc.org build configs for PPC and Arm Linux platforms; r=dminor
--HG--
extra : rebase_source : b9d40305a0bb16700d3863048424d892fde04001
2018-11-15 08:34:27 -05:00
Margareta Eliza Balazs d5555d2998 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
byron jones e79d7f7cdf Bug 1507057 - libtheora: replace libtheora's README_MOZILLA with moz.yaml; r=jya
Add moz.yaml and update `update.sh` to match other media libraries.

Note after upstream's switch from SVN to git the RSC headers have changed,
however, these changes have not yet been committed.  I've updated the patch
that had hunks with context extending into the RSC header so it continues to
apply after pulling from git.

Differential Revision: https://phabricator.services.mozilla.com/D11975

--HG--
extra : moz-landing-system : lando
2018-11-15 12:04:58 +00:00
Byron Campen [:bwc] 03444d1918 Bug 1487278: When a transceiver is stopped/disassociated by a remote description, clear its transport id too. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11778

--HG--
extra : moz-landing-system : lando
2018-11-14 23:29:41 +00:00
Andrew Osmond 33bcfcbc16 Bug 1509878 - Upgrade libwebp to version 1.0.1 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D12933
2018-11-26 12:47:25 -05:00
David Major 79ef206dc5 Bug 1503363: Regenerate webrtc moz.build files. r=dminor
--HG--
extra : rebase_source : 44e3d835c4bac4cd6692a406329512d16a3357c6
2018-11-14 10:37:21 -05:00
David Major a09f9b750d Bug 1503363: Add gn json files for x64-windows. r=dminor
--HG--
rename : media/webrtc/gn-configs/x86_False_x86_win.json => media/webrtc/gn-configs/x64_False_x64_win.json
rename : media/webrtc/gn-configs/x86_True_x86_win.json => media/webrtc/gn-configs/x64_True_x64_win.json
extra : rebase_source : 6c72890bf43767f91faf185530610215a596d46b
2018-11-14 10:28:54 -05:00
Chris Manchester 8bc396706e Bug 1503363: Add gn json files for x86-linux. r=dminor
--HG--
rename : media/webrtc/gn-configs/x64_False_x64_linux.json => media/webrtc/gn-configs/x64_False_x86_linux.json
rename : media/webrtc/gn-configs/x64_True_x64_linux.json => media/webrtc/gn-configs/x64_True_x86_linux.json
extra : rebase_source : 64ef7ed051b5e4796194f35cf26efe4b78280b99
2018-11-14 10:28:53 -05:00
David Major abaa2d2c68 Bug 1503363: Add gn json files for aarch64-windows. r=dminor
--HG--
extra : rebase_source : f96fd2ef8e045d4a0b56da883fa1542b4ab3e48b
2018-11-14 10:28:46 -05:00
David Major 7b8d1cf803 Bug 1503363: De-unify some more webrtc files due to conflicting defines. r=dminor
--HG--
extra : rebase_source : ca3573f29f4ed56a64e39b702636dace1616c42d
2018-11-14 10:06:58 -05:00
Coroiu Cristina d850d799a0 Merge inbound to mozilla-central a=merge 2018-11-14 11:51:31 +02:00
Nils Ohlmeier [:drno] 13c6f01479 Bug 1505733: add recording of DTLS protocol version used by PeerConnections. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D11300

--HG--
extra : moz-landing-system : lando
2018-11-10 20:29:57 +00:00
Nils Ohlmeier [:drno] d0376ddab9 Bug 1456417: made MLineIndex nullable. r=bwc,smaug
Differential Revision: https://phabricator.services.mozilla.com/D10807

--HG--
extra : moz-landing-system : lando
2018-11-13 22:52:24 +00:00
Byron Campen [:bwc] 33bc9bd6b6 Bug 1498793: Accept msid without track id r=mjf,jib
Differential Revision: https://phabricator.services.mozilla.com/D10925

--HG--
extra : moz-landing-system : lando
2018-11-12 19:25:59 +00:00
byron jones 0ef0024e3e Bug 1505278 - replace libmkv's README_MOZILLA with moz.yaml. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D11147

--HG--
extra : moz-landing-system : lando
2018-11-11 22:01:14 +00:00
Dan Minor cc500ea702 Bug 1506500 - Use ReceiveStreamStatistics for GetRTCPSenderReport; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D11794

--HG--
extra : rebase_source : 1d71f849f75b77f7e2834afa50f91a8259c7cb56
2018-11-13 11:43:17 -05:00
Brindusan Cristian 3a68003805 Backed out 3 changesets (bug 1503363) for build bustages on mozbuild. CLOSED TREE
Backed out changeset adc6f14f89e4 (bug 1503363)
Backed out changeset 0b7dd43c1e2e (bug 1503363)
Backed out changeset 8c2426b552ac (bug 1503363)
2018-11-13 18:28:48 +02:00
David Major 08ccde641f Bug 1503363: Regenerate webrtc moz.build files. r=dminor 2018-11-13 11:13:42 -05:00
David Major 9735854f16 Bug 1503363: Add gn json files for aarch64-windows. r=dminor 2018-11-13 11:13:42 -05:00
David Major becc139296 Bug 1503363: De-unify some more webrtc files due to conflicting defines. r=dminor 2018-11-13 11:13:41 -05:00
Paul Vitale 09f4c06235 Bug 1203503 - part 2. replace proxy tunnel with new ipc-based tunnel r+bwc, r+mayhemer
This replaces the tunnel using a new nr_socket implementation.  Proxy detection
code is still done in the peer connction.  However, the result is only used to
detect a proxy.  The result is unused.  Address resolution is done by necko code
in the parent process.  The new socket wraps a WebrtcProxyChannel which uses
necko to handle proxy negotiation.  This has a happy side effect of enabling all
authentication modes that necko already supports for http proxies.

This adds a protocol for Necko to manage, WebrtcProxyChannel.  This new protocol
serves as a pipe for a CONNECT tunnel.  It is only used in WebRtc and not built
in no WebRtc builds.

--HG--
extra : rebase_source : a951841f95eaaa0562886cf76b405b01f1adf70e
extra : intermediate-source : 5c3da21957fc80b07188bc8a405437b858027a22
extra : source : 594a32883463ab051677ba06e22fa6d062b4b4a9
2018-06-05 12:10:16 -05:00
Dan Minor 0185d52ba2 Bug 1376873 - Reduce thread stack size in platform_thread.cc; r=bwc
Summary:
The current default stack size of 1M results in intermittent OOMs on win32
builds while running web-platform tests. The value of 256k was chosen for
consistency with the default value used elsewhere in Gecko, which is defined in
nsIThreadManager.idl.

Reviewers: bwc

Tags: #secure-revision

Bug #: 1376873

Differential Revision: https://phabricator.services.mozilla.com/D11090

--HG--
extra : rebase_source : 9039a5c4ac25c227ee65b0321fdffdecd81d085c
2018-11-05 10:33:02 -05:00
Dan Minor 29c115bb15 Bug 1376873 - Add generated moz.build files; r=ng
--HG--
extra : rebase_source : 4b6fbd953d68e9092be0159f2af004bf96a1226e
2018-09-13 07:53:01 -04:00
Jan Beich f14826a7c9 Bug 1376873 - Add WebRTC 64 gn-configs for BSDs. r=dminor f=gaston
All gn-configs were generated on a single FreeBSD amd64 machine:
- DragonFly and NetBSD have is_clang=false, so differ only in target_os/OS_TARGET
- FreeBSD and OpenBSD have is_clang=true, so differ only in target_os/OS_TARGET
- x86 (i386) configs are from 32-bit chroot on x86_64 (amd64)
- arm (armv7) and arm64 (aarch64) configs are from qemu-user chroot
- qemu-user can't run rustc atm, so configure was hacked to work without
- qemu-user crashes with gn 68 on aarch64, so gn 65 was used

--HG--
extra : rebase_source : fb05d660c299851de6226fb23c6873bdfc34237f
2018-10-12 12:57:04 -04:00
Jan Beich e13e881da5 Bug 1376873 - Unbreak WebRTC 64 build on BSDs. r=dminor f=gaston
--HG--
extra : rebase_source : 84db77b91bced707b6465ffc9683d8b733512c74
2018-10-12 12:56:27 -04:00
Dan Minor c8da55a336 Bug 1376873 - Update gn generated json files; r=ng
This updates the gn generated json files for tier-1 platforms, and removes
the outdated configurations for remaining platforms.

--HG--
extra : rebase_source : bccb7a5476d5d0a66aa90657f839cea5e49ff4ce
2018-02-23 15:01:50 -05:00
Andreas Pehrson 30610de2f0 Bug 1376873 - Use VP8SimulcastAdapter in VideoConduit; r=ng
The VP8SimulcastAdapter automatically handles cropping to accomodate
constraints on VP8 simulcast streams that each stream have exactly half the
width and height of the higher resolution stream before it.

This also adjusts min_bitrate_estimate in
test_peerConnection_simulcastOddResolution.html to compensate for changes in
the simulcast resolutions chosen by the webrtc.org code.

Differential Revision: https://phabricator.services.mozilla.com/D7482

--HG--
extra : rebase_source : b7ea403f7c9d6175a34eb11c7af17dd12ee55c31
2018-09-21 16:45:47 +02:00
Dan Minor 0cf790ab2b Bug 1376873 - Fix up rotation in video_capture_impl.cc; r=pehrsons
This fixes a bug in the upstream code introduced when they removed the
ConvertToI420 helper method from webrtc_libyuv.cc. The buffer size is
passed into libyuv::ConvertI420 incorrectly when rotation is applied, which
causes bad rendering and instabilities.

Differential Revision: https://phabricator.services.mozilla.com/D7478

--HG--
extra : rebase_source : d6910e01ebd81a626b6924f04b31f37b87900a66
2018-09-19 15:06:13 -04:00
Dan Minor ceb2cc2230 Bug 1376873 - Make FunctionThatDoesNothing use const; r=ng
Windows ASAN builds complain about attempting to cast away the const qualifier
in FunctionThatDoesNothing, so this makes the argument const.

Differential Revision: https://phabricator.services.mozilla.com/D7477

--HG--
extra : rebase_source : dbfa0a48f50c30afa5a41b81af32bd9744a31511
2018-09-18 11:05:25 -04:00
Dan Minor 0370dcd88f Bug 1376873 - Don't define _USE_MATH_DEFINES in audio_processing.h; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7476

--HG--
extra : rebase_source : 479864aa7db0f3050bbc2dbd9465cbc35ae172c0
2018-09-18 06:57:35 -04:00
Dan Minor 641b71af57 Bug 1376873 - Keep track of active codec mode in VideoConduit; r=pehrsons
Upstream has added an assertion in video send stream that prevents using
ReconfigureVideoEncoder if the content type has changed. This adds a
mActiveCodecMode member and uses it to prevent calling that method if the
codec mode has changed.

Differential Revision: https://phabricator.services.mozilla.com/D7475

--HG--
extra : rebase_source : d6af217ae501163f6ee742f2ad48f1f22d2869b4
2018-09-17 15:51:32 -04:00
Dan Minor 461e6fc686 Bug 1376873 - Setup contributing sources extension in audio_receive_stream.cc; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7474

--HG--
extra : rebase_source : 61e403ccc644d35a541e796c36f92abc198989af
2018-09-17 15:03:34 -04:00
Dan Minor 426cafe100 Bug 1376873 - Rollup of changes from cd8671232fd8 to 2a59b432d2bd; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7472

--HG--
extra : rebase_source : c9c96bfd25942ecb51f2ea7e3f8c913cd866cd8e
2018-09-17 07:24:22 -04:00
Dan Minor eab091ae07 Bug 1376873 - Fix GetRTPStatistics; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7471

--HG--
extra : rebase_source : c85d48f46800be6b26e32a9f216b053e26bc523d
2018-09-06 16:24:33 -04:00
Dan Minor d044bb4e47 Bug 1376873 - Fix warning in mean_variance_estimator.cc; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7470

--HG--
extra : rebase_source : 2357593c29910f2a99c1c1f8365a5621bea8d717
2018-08-13 10:24:46 -04:00
Dan Minor 2eda698370 Bug 1376873 - Allow single channel opus; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7469

--HG--
extra : rebase_source : 2d270cc630ed9910d6e6c3ef793b5e8a3beacac3
2018-08-13 08:34:44 -04:00
Dan Minor 4884df4153 Bug 1376873 - Make lock_block explicit; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D7468

--HG--
extra : rebase_source : c81c3a142595e24b4177b03c2fbf58b49ec0062d
2018-08-02 13:56:10 -04:00
Dan Minor d236b5c9ba Bug 1376873 - Cherrypick rev 09133af36fba93691a22151765097c0bd581c1fa; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7466

--HG--
extra : rebase_source : 71b4f43d9be1717cc60b8adbb4d42a47925b1820
2018-08-02 08:50:15 -04:00
Dan Minor 0c883f7989 Bug 1376873 - Change OS X logging include to prevent preprocessor multiple defines; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7465

--HG--
extra : rebase_source : b7dcd4720f764a763560b72674c16e8f17bc57fd
2018-07-31 13:45:43 -04:00
Dan Minor b7851918aa Bug 1376873 - OS X desktop capture fixes; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7464

--HG--
extra : rebase_source : d09de73b006c2b8a68b763c21b3ea4dc68a59b56
2018-07-31 13:32:44 -04:00
Dan Minor 921107e99f Bug 1376873 - Updates to VideoConduit.cpp for OS X; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7455

--HG--
extra : rebase_source : 42719824d9906c2dd82b87420374925882722dde
2018-07-31 13:28:44 -04:00
Dan Minor 3207c6955b Bug 1376873 - Updates to Android video capture; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7452

--HG--
extra : rebase_source : 29295a9beed6c9ea20c76c8ac1d05f01fe397b0b
2018-07-26 15:23:16 -04:00
Dan Minor af9ad6b69a Bug 1376873 - Update WebrtcMediaCodecVP8VideoCodec; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7451

--HG--
extra : rebase_source : e39a235884d1a60ff75eba66dc8fc9e3dde2f5f1
2018-07-26 10:14:05 -04:00
Dan Minor a4bb9e371c Bug 1376873 - Remove Android java code from AudioConduit; r=padenot
This is no longer necessary as we do not use the webrtc.org audio device
implementations anymore.

Differential Revision: https://phabricator.services.mozilla.com/D7450

--HG--
extra : rebase_source : b0fb79e68885b42afa1418c77bc6d24527803e9c
2018-07-26 10:12:58 -04:00
Dan Minor be3a4cb2d1 Bug 1376873 - Update videoconduit_unittests gtests; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7446

--HG--
extra : rebase_source : 6b9b6b72a05dfcac9f3bbd50bd39f3d4f5745145
2018-02-16 09:47:19 -05:00
Dan Minor 55840bf1dd Bug 1376873 - Use audio/video sync groups; r=bwc
This uses sync groups in the receive stream configs for the conduits rather
than establishing sync through direct calls. When the streams are created
in call.cc, ConfigureSync is called, which results in SetSync being called
on the video stream which is the replacement for SetSyncChannel in branch 57
of webrtc.org.

With the current code, a video stream can only be synchronized to a single
audio stream. Using sync groups enforces a stronger constraint that only one
pair of audio and video streams can be synchronized for each sync group. The
comments in call.cc imply this is what is supported by webrtc.org, it seems
safer to also follow this constraint rather than circumvent it by calling
directly into the underlying code.

Differential Revision: https://phabricator.services.mozilla.com/D7445

--HG--
extra : rebase_source : fa8b1d301398edcedc6e488c51009b6667792f45
2018-04-27 07:25:19 -04:00