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

2985 Коммитов

Автор SHA1 Сообщение Дата
Dan Minor 9601e808c9 Bug 1487419 - Save current desktop configuration in ScreenCapturerMac::Init; r=pehrsons
Summary:
The fix for Bug 1409018 accidentally removed saving the current desktop
configuration during Init() which causes it to not be set when a different
screen is selected, meaning that regardless of the choice made, only the
first screen is captured.

Reviewers: pehrsons

Tags: #secure-revision

Bug #: 1487419

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

--HG--
extra : rebase_source : bb4f9a0f4e06dfbd9730b7af4a0748749d72c3da
2018-09-05 13:55:27 -04:00
Nils Ohlmeier [:drno] e88a043618 Bug 1480869: define SRTP ciphers suites inside mtransport r=mt
define SRTP cipher suites inside mtransport

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

--HG--
extra : moz-landing-system : lando
2018-09-11 03:58:34 +00:00
Dan Minor 51b2f38d60 Bug 1486817 - Use separate log modules for mediapipeline and rtplogger; r=bwc
This restores the separate mediapipeline and RtpLogger lazy log modules that
were unified with the Signaling log module in Bug 1402334.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 17:10:17 +00:00
Margareta Eliza Balazs 2fe43133db Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
Byron Campen [:bwc] 2a2903b7fe Bug 1483338: Stop using level as the identifier for media transports. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D3448

--HG--
extra : moz-landing-system : lando
2018-08-28 19:45:58 +00:00
Henri Sivonen 4bf9055862 Bug 1485592 - Avoid isdigit() in sdp_utils.c. r=drno
This fixes two problems:
 1) On Windows, isdigit() is locale-dependent.
 2) On platforms where char is signed, sign-extending char to int and passing
    the result to isdigit() was UB when the high bit was set, because
    isdigit() is defined to take a (signed) int with the value space of
    unsigned char or EOF.

MozReview-Commit-ID: D1lY88PEcpc

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

--HG--
extra : moz-landing-system : lando
2018-08-27 18:12:16 +00:00
Nathan Froyd 0c3b82172f Bug 1486028 - update webrtc config headers to work with aarch64 windows; r=jesup 2018-08-28 20:23:04 -04:00
Makoto Kato cac0bc6570 Bug 1434589 - Part 2. Update moz.build. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D3608

--HG--
extra : moz-landing-system : lando
2018-08-22 19:45:19 +00:00
Makoto Kato 58535b8081 Bug 1434589 - Part 1. Add gn-configs for Linux/aarch64. r=chmanchester
When building binaries for Linux/aarch64, ./mach configure cannot generate
Makefile by the following error.  So we need Linux/aarch64's gn-configs.


 1:07.80 mozbuild.frontend.reader.SandboxValidationError:
 1:07.80 ==============================
 1:07.80 FATAL ERROR PROCESSING MOZBUILD FILE
 1:07.80 ==============================
 1:07.80 The error occurred while processing the following file or one of the files it includes:
 1:07.80     /hg/mozilla-central/media/webrtc/trunk/webrtc/common_audio/common_audio_c_gn/moz.build
 1:07.80 The error occurred when validating the result of the execution. The reported error is:
 1:07.80     Source file should only be added to UNIFIED_SOURCES once: /media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c

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

--HG--
extra : moz-landing-system : lando
2018-08-22 19:45:38 +00:00
Masatoshi Kimura 49ee57f31d Bug 1485028 - Fix warnings that are specific to clang-cl ASAN builds. r=dmajor
--HG--
extra : source : f0b577cc8b920352dfe297e7ec9cca58b1838c5d
2018-08-22 02:02:56 +09:00
Philipp Hancke 3a00b39e7b Bug 1481851 - Add kind to RTCRtpStreamStats as alias to mediaType. r=ng,smaug
spec change in https://github.com/w3c/webrtc-stats/issues/301
2018-08-08 17:30:40 +02:00
Byron Campen [:bwc] f2c9b6dc47 Bug 1465617: (Speculative fix because STR are missing) Don't crash if no video send codecs are negotiated. r=mjf
This _might_ be the fix for the nullptr crash in bug 1465617.

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

--HG--
extra : moz-landing-system : lando
2018-08-14 14:35:50 +00:00
Philipp Hancke 08d0f88897 Bug 1481725: change minimum bitrate for VGA to 150kbps r=bwc
and adapt min bitrate below that.
Limits taken from the webrtc.org simulcast bitrate table.
2018-08-09 12:17:13 +02:00
Nils Ohlmeier [:drno] e6eaea8889 Bug 1481548: Added additonal comparison for fmtp r=bwc
Added additional fmtp comparison for the parsing resutl comparer by
implementing the C++ == operator for SdpFmtpAttributeList.

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

--HG--
extra : moz-landing-system : lando
2018-08-14 00:36:23 +00:00
Ciure Andrei 6056bb970c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-07 01:11:21 +03:00
Byron Campen [:bwc] 02bdb2d1ab Bug 1479853: Prevent more than one VideoConduit having the same remote SSRC. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D2738

--HG--
extra : moz-landing-system : lando
2018-08-06 18:08:55 +00:00
Masatoshi Kimura 3b21b7868b Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
--HG--
extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb
extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f
extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
2018-07-31 22:10:07 +09:00
Johannes Willbold 783eb76c4a Bug 1477815: Removed RustSdpAttributeType, r=dminor
Removed the enum RustSdpAttributeType and replaced it with the SdpAttributeType enum.

MozReview-Commit-ID: IcJnbnWa4IB

--HG--
extra : rebase_source : befb118948740122dbbdd033e20176351bdd2884
2018-07-23 13:45:04 -07:00
Johannes Willbold 0ee54d4592 Bug 1479510: Added a telemetry probe that records failed rsdparsa parsings, r=dminor
Added a telemetry probe that records failed rsdparsa parsings and whether the sipcc result contains errors.

MozReview-Commit-ID: BHfDRy8MyfZ

--HG--
extra : rebase_source : 9b03f1a8d0655926af1e561cc27e5549490616b2
2018-07-30 10:38:35 -07:00
Byron Campen [:bwc] a600a51631 Bug 1476600: Stop reusing mids from stopped transceivers. r=jib
When a transceiver is stopped, its mid should not be reused by a new transceiver.

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

--HG--
extra : moz-landing-system : lando
2018-07-31 20:44:47 +00:00
Byron Campen [:bwc] 7bd8b38fc7 Bug 1472321: Make sure sink identity is set on recvonly/inactive transceivers. r=drno,mjf
MozReview-Commit-ID: jZHsDKN5o6

--HG--
extra : rebase_source : 7483eff18a89aeb439ef4c02bdc6632e788b1a88
2018-07-17 09:43:27 -05:00
Byron Campen [:bwc] 006d12d9ba Bug 1474661: Fixed bug where we were overwriting the high quality simulcast config with the next one down, and add another entry to the resolutions/bitrates table. r=ng
MozReview-Commit-ID: DhPYvioLqAe

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

--HG--
extra : moz-landing-system : lando
2018-07-30 22:27:27 +00:00
Johannes Willbold 0911d849a0 Bug 1476750: Updated preferences controlling Rust SDP Parse behavior, r=dminor,drno
Renamed the pref media.webrtc.rsdparsa_enabled to media.peerconnection.sdp.rust.compare
Added the pref media.peerconnection.sdp.rust.enabled
Added both to all.js

media.peerconnection.sdp.rust.compare: Controls whether the parsing result comparer for sipcc and rsdparsa runs or not.
media.peerconnection.sdp.rust.enabled: Controls whether the rsdparsa runs in parallel to the sipcc parser.

MozReview-Commit-ID: Ac5P7T2NBYD

--HG--
extra : rebase_source : afd60243ccba27965bea193bbe29d91bf7bf2644
2018-07-24 12:36:23 -07:00
Johannes Willbold e78b28d3b8 Bug 1432955: Implemented sdp parsing comparer, r=bwc,francois
Added signaling/src/sdp/ParsingResultComparer.h/.cpp
Added SDP comparer with telemetry and debug logging

MozReview-Commit-ID: ErdnLGPxHHF

--HG--
extra : rebase_source : ab9106915620f4bc0b8340cdec94d2e5c80966ae
2018-07-05 16:06:41 -07:00
Byron Campen [:bwc] 02f535024e Bug 1478685: Set the RTP MID to the mid of the transceiver, not the transport id string. r=mjf
MozReview-Commit-ID: 30OrgQwpR8u

--HG--
extra : rebase_source : 80c37525644bb126da462a76a4a0fcabfcc09fcc
2018-07-26 10:54:51 -05:00
Gurzau Raul c151424110 Backed out changeset 7c66524457aa (bug 1477815) for build bustage at toolkit/library/gtest/rust/target on a CLOSED TREE 2018-07-26 23:16:36 +03:00
Johannes Willbold 691c4fd1b0 Bug 1477815: Removed RustSdpAttributeType, r=dminor
Removed the enum RustSdpAttributeType and replaced it with the SdpAttributeType enum.

MozReview-Commit-ID: IcJnbnWa4IB

--HG--
extra : rebase_source : 5a446b1624f763c6db02419c525a324ee18a2f69
2018-07-23 13:45:04 -07:00
Johannes Willbold 72bcd957b6 Bug 1437165: Handled unimplemented attributes in RsdparsaSdpAttributeList::LoadAttribute, r=bwc
Added comment stating that these are unused: label, ice-mismatch and connection
Handled rtcp-rsize attribute.

MozReview-Commit-ID: JdWfq0PR480

--HG--
extra : rebase_source : f92a1aec957672202fbd93a4ef5c6cbd1757a15a
2018-07-23 12:25:01 -07:00
Nico Grunbaum b2651df213 Bug 1477825 - PeerConnectionImpl static analysis const reference cleanup r=mjf,jib
Static analysis reveals that there are several places we could be using const references in PeerConnectionImp. This patch addresses all of those places.

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

--HG--
extra : moz-landing-system : lando
2018-07-25 16:22:28 +00:00
Gurzau Raul f2e1e857f1 Merge inbound to mozilla-central. a=merge 2018-07-24 12:49:23 +03:00
Coroiu Cristina 3628e073f1 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-07-24 00:46:46 +03:00
Brian Hackett ea6ebf1b6e Bug 1207696 Part 6a - Disable media elements when recording or replaying, r=jesup.
--HG--
extra : rebase_source : 10a1178dca996839da8496036196e7018d517787
2018-07-23 14:41:26 +00:00
Johannes Willbold 4c92cf9567 Bug 1476085: Added SDP candidate serialization, r=bwc,dminor
Added SDP candidate serializaton in rust
Extended Rust unit test for candidates
Added C++/Rust glue code for candidates
Added free_boxed_string_vec

MozReview-Commit-ID: CeVM2p47fQ7

--HG--
extra : rebase_source : 5d49e3a39af3395cf16bedef387728d7de663271
2018-07-16 13:59:04 -07:00
Byron Campen [:bwc] 229b0a95d4 Bug 1465473: Disable RTCP bundle filtering, because webrtc.org can do that for us. r=mjf
MozReview-Commit-ID: EptqgMeMcoT

--HG--
extra : rebase_source : 3a765a0f0cfb01a83bff0e8e1d8ae5b3262e80af
2018-07-18 15:23:12 -05:00
Robert Bartlensky 4c9812d3ea Bug 1476644: Fix DEAD_STORE error in media/webrtc/signaling/gtest/videoconduit_unittests.cpp. r=ekr
MozReview-Commit-ID: 8QRXhxgqYXm

--HG--
extra : rebase_source : 9ab2030ac8c78416018b3fe1b89243f777a8448d
2018-07-19 14:07:06 +01:00
Johannes Willbold 5084e841a5 Bug 1437169: Improved error checking in the the fingerprint parsing, r=bwc
Improved the error checking in the fingerprint parsing
Changed the way the fingeerprint stores the hash algorihtm to an enum.
Extended the rust unit test for fingerprint
Fixed C++ unit tests

MozReview-Commit-ID: AS2FroZxDNv

--HG--
extra : rebase_source : be0b6d5c390ffaa90c9371436ece717e5e4e002c
2018-07-17 15:35:34 -07:00
Johannes Willbold c420368865 Bug 1432930: Part 2: Added C++/Rust glue code for imageattr, r=bwc
Added C++/Rust glue code for imageattr.
Added U32vec interface
Added F32vec interface
Enabled C++ unit test CheckMalformedImageattr
Removed redundant parsing code with "Bug 1469702"

MozReview-Commit-ID: Lwj8len4xPR

--HG--
extra : rebase_source : a260799c0a3146b5bf2f461762c9b7db0849a266
2018-07-02 15:10:19 -07:00
Johannes Willbold c34d1a7a92 Bug 1432930: Part 1: Added imageattr parsing in rust, r=bwc
Added imageattr parsing in rust.
Expanded the imageattr test cases in rust.

MozReview-Commit-ID: IeMkbrbJAoe

--HG--
extra : rebase_source : 05e4105983e7d735bce21de3bd4e99da754589ed
2018-06-29 14:42:19 -07:00
Nico Grunbaum c8937fbffe Bug 1474658 - P2 - RTCRtpStreamStats.ssrc is now a unsigned long r=mjf
RTCRtpStreamStats.ssrc used to be a DOMString but is now an unsigned long.
When gathering this stat it needs to be constructed accordingly.

MozReview-Commit-ID: IOq9IQQxFVh

--HG--
extra : rebase_source : 3c5fc6144f6fa0435fc1ccce1a3fa371b9ffc162
2018-07-12 13:50:26 -07:00
Johannes Willbold 5b98a7844f Bug 1432920: Part 2: Added C++/Rust glue code for dtls-message, r=bwc
Added C++/glue code for the dtls-message attribute.
Enabled the C++ unit test CheckDtlsMessage.
Added a branch in the rust parsing that discardes dtls-messages on media level.

MozReview-Commit-ID: 9tcWOtH8GbV

--HG--
extra : rebase_source : 4853e51e1cc6734760c243da8e27dc714c89d219
2018-07-05 17:09:10 -07:00
Johannes Willbold c0ae9af419 Bug 1432920: Part1: Added dtls-message parsing in rust, r=bwc
Added dtls-message parsing in rust.
Added a rust testcase for the dtls-message parsing.

MozReview-Commit-ID: G8boBkxlJmX

--HG--
extra : rebase_source : 40ee205294adf099f51321ec7bde8cbff5db6297
2018-07-05 16:33:30 -07:00
Andreas Pehrson f78f8582c7 Bug 1471588 - Trace track and stream media consumers. r=padenot
MozReview-Commit-ID: DDkVUEHi0dg

--HG--
extra : rebase_source : d05a30ae43fe1e26d11c6a75a6b47dc6cf8d9b71
2018-06-27 18:25:49 +02:00
Andreas Pehrson ebd2cf6c8c Bug 1471588 - Trace all NotifyPull calls. r=padenot
MozReview-Commit-ID: XlYfZ0CVZM

--HG--
extra : rebase_source : 8c147419731942a35e27d0aab0e2c4a6a9747438
2018-06-27 17:59:19 +02:00
Andreas Pehrson 9c80f60f71 Bug 1471588 - Turn on MediaPipeline tracing. r=padenot
MozReview-Commit-ID: 1OtmOGnXmRw

--HG--
extra : rebase_source : c0f87262d0ec9c6a36b7fb49aa98cca6a82759f1
2018-06-27 17:41:45 +02:00
Margareta Eliza Balazs fb3762edac Merge inbound to mozilla-central. a=merge 2018-07-18 12:33:29 +03:00
Johannes Willbold 104efdacd0 Bug 1476081: Removed two leftover debugging statements, r=dminor
Removed two leftover debugging statements

MozReview-Commit-ID: 7Cbsa2MJ2OS

--HG--
extra : rebase_source : dd5125022c842ac8db17000976d25f5108cb4fe6
2018-07-16 12:20:06 -07:00
Johannes Willbold 8d7c4afeb3 Bug 1474711: Added C++/Rust glue code for rtcp-fb transport-cc, r=bwc
Added the C++/Rust glue code for the rtcp-fb transport-cc type.
Extended the C++ unit test CheckRtcpFb
Extended the Rust unit tests for rtcp-fb.

MozReview-Commit-ID: 26hAexM0QeV

--HG--
extra : rebase_source : 1615700ac62ee5d61a26ad7234d42b82e4151109
2018-07-11 10:49:17 -07:00
Johannes Willbold ea1567d09c Bug 1474712: Added support for whitespace seperacted ssrc-values in the Rust parser, r=bwc
Added support for whitespace in source-level attributes
Extended C++ unti test CheckSsrc
Extended Rust unti test for ssrc

MozReview-Commit-ID: 1xiYyZBYf5o

--HG--
extra : rebase_source : 26d8ee11592e40fa1c25021b86953c72b14636a7
2018-07-11 11:13:56 -07:00
Nils Ohlmeier [:drno] cf44315a16 Bug 1474517: merge rsdparsa from upstream r=johannes.willbold+610943
Updated rsdparsa to 75d5c6df6728fbab502db06940062e0358536f9f from github
upstream

MozReview-Commit-ID: 9hr7DV6KTkK

--HG--
extra : rebase_source : c5b2c003e76489e267390402ebb5947cf3ec48b6
2018-07-09 23:56:42 -07:00
Byron Campen [:bwc] 0df53d9bd5 Bug 1471697: Stop unsetting mListener on main. r=mjf
MozReview-Commit-ID: 1swVwMyRatC

--HG--
extra : rebase_source : 0c8a95de625b10b460cdfc54f2c6c9cf6dbe8adc
2018-07-02 10:43:26 -05:00
Johannes Willbold 2919be8a89 Bug 1438536: Added bool field to indicate whether direction was specified to RustSdpAttributeExtmap, r=drno
Added a bool field in RustSdpAttributeExtmap that tracks whether the direction was specified.
Added the correspodning C++/Rust glue code

MozReview-Commit-ID: yGL8yTDb49

--HG--
extra : rebase_source : d65f35051338673062d13b7bde591de880052558
2018-07-10 16:23:50 -07:00
Nico Grunbaum e75e58a710 Bug 1474808 - MediaPipeline set description even when there is no DOM Track r=bwc
Early bailout was preventing mDescription from getting set in MediaPipeline::SetTransport.

MozReview-Commit-ID: HIIva7R3fLe

--HG--
extra : rebase_source : 847b001372e6aedf59fc8f3f38b57a2a51b0f4e1
2018-07-10 22:54:10 -07:00
Dan Minor 6fa2ea51b7 Bug 1371485 - Fix gflags root; r=chmanchester
Summary:
I think the webrtc.org gtests are the only user of gflags in tree. We can switch
over to using gn to build this when we start building the tests using gn,
which is Bug 1430779.

Tags: #secure-revision

Bug #: 1371485

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

--HG--
extra : rebase_source : ba496d6f262d3679031f0b933a80ce3e2a2236a5
2018-06-22 14:25:31 -04:00
Dan Minor d1d877cbe8 Bug 1371485 - Remove unnecessary gyp files from webrtc; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

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

--HG--
extra : rebase_source : 21f5238db3fe517aca5a19344847a883a277e6b6
2018-06-22 14:57:17 -04:00
Dan Minor f92a35478e Bug 1371485 - Remove webrtc copy of gyp; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

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

--HG--
extra : rebase_source : d3abc38a88e9f3a5543f2bb46726f47a75115785
2018-06-21 14:42:08 -04:00
Johannes Willbold e5d310f78d Bug 1473967: Added C++/Rust glue code for maxptime, r=dminor
Added the C++/Rust glue code for maxptime.
Added the C++ unit test CheckMaxPtime.

MozReview-Commit-ID: 58Qbrpktxwx

--HG--
extra : rebase_source : 1aed17367e230f0e397b196b759deaf18e4a3fd8
2018-07-06 10:51:30 -07:00
Johannes Willbold 0e35e80e48 Bug 1433529: Fixed TODOs in parse_sdp, r=dminor
Changed parse_sdp to use StringView instad of raw pointers
Fixed all TODOs by using the existing StringView::into trait instead of doing a manual string conversion.

MozReview-Commit-ID: 5m7rLAu8vwS

--HG--
extra : rebase_source : f34cf389829772b4ca84d7ba895a8b71bd620f64
2018-06-29 15:03:58 -07:00
Johannes Willbold 01d9eeb9af Bug 1444354: Fixed intermittent in RsdparsaSdpAttributeList::GetGroup, r=dminor
Fixed the signature of the sdp_get_groups function in the C++/Rust glue code.

MozReview-Commit-ID: PljpUKk829

--HG--
extra : rebase_source : 92e221ce5e437bf5a994740f3b34f7336668e431
2018-07-03 17:28:17 -07:00
Johannes Willbold 8be45915c4 Bug 1433534: Removed the comment referencing this bug, r=dminor
Nothing to do for this bug. All TODOs were solved by previous tickets.

MozReview-Commit-ID: JFvWvGRlJvy

--HG--
extra : rebase_source : e402f5844508f5b9809b9ad40184f88aba3574be
2018-06-29 15:47:50 -07:00
Johannes Willbold 1a499e7000 Bug 1473686: Enabled SDP unit test CheckSctpmap, r=dminor
The test passes without further changes.

MozReview-Commit-ID: G3TecTmP1QY

--HG--
extra : rebase_source : 4df5aa53730847417175005a15d6c8d79ffba9f3
2018-07-05 12:34:04 -07:00
Andrea Marchesini a053cf1c15 Bug 1476306 - Moving NullPrincipal/ContentPrincipal/SystemPrincipal under mozilla namespace - part 1 - NullPrincipal, r=ckerschb 2018-07-17 21:37:48 +02:00
shindli 5cc2efce78 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-04 01:01:25 +03:00
Johannes Willbold ac43f2bc5c Bug 1432931: Added sanity check for simulcast send rid. r=bwc
Added sanity check to check if the send rid in simulcast is defined by any send rid.

MozReview-Commit-ID: GISzaQqdqBI

--HG--
extra : rebase_source : 32416045cdb8c96dff72ee74d1d84121323d358f
2018-06-28 10:55:50 -07:00
Jean-Yves Avenard d586f6f943 Bug 1409664 - P9. Remove AutoTaskQueue and its use r=bryce
Summary:
TaskQueue no longer requires an explicit call to BeginShutdown() as such we no longer have a need for AutoTaskQueue.

Depends on D1621

Tags: #secure-revision

Bug #: 1409664

Differential Revision: https://phabricator.services.mozilla.com/D1622
2018-07-03 11:45:19 -07:00
Johannes Willbold dda45bc2ca Bug 1437166: Removed GetSsrcGroup entirely. r=dminor,drno
Removed all occurances of GetSsrcGroup in the C++/Rust and C++/sipcc glue code
Removed C++ unit test CheckSsrcGroupInSessionLevel

MozReview-Commit-ID: DImctiH6mUo

--HG--
extra : rebase_source : afd243f5658114f017d94d8bc9527b734901c303
2018-06-25 14:12:04 -07:00
Johannes Willbold cebc31c9ec Bug 1436403: Setting rtpmap channels in rust. r=dminor
Removed the code setting the channels for an rtpmap attribute in the C++ glue code.
Added Rust code that accounts the data in SdpMedia accordingly for rtpmap.

MozReview-Commit-ID: 2D5MVLJxXoh

--HG--
extra : rebase_source : ae54885e3d2cccdd04f5f758bddcf2d134f3a843
2018-06-25 14:01:37 -07:00
Nils Ohlmeier [:drno] bfea03ea24 Bug 1335206: enable emitting datachannel draft 21 format. r=bwc
MozReview-Commit-ID: 9zWz8ct4ERZ

--HG--
extra : rebase_source : 83a7fc8f3d20e59436bbc37fe93dc00ec8c30683
2018-06-22 15:49:03 -07:00
Johannes Willbold 239744b151 Bug 1438290: Part 2: Added testcases for AddDataChannel, r=bwc
Added C++ unit test CheckAddDataChannel
Added C++ unit test CheckAddDataChannel_Draft05

MozReview-Commit-ID: HsSdFb0nKUe

--HG--
extra : rebase_source : 18fc6f3bdc04ea0983ce5376177a41df68b93ac2
2018-06-21 15:48:55 -07:00
Johannes Willbold 19dbebcd08 Bug 1438290: Part 1: Implemented RsdparsaSdpMediaSection::AddDataChannel, r=dminor
Implemented RsdparsaSdpMediaSection::AddDataChannel
Added C++/Rust glue code for the "sctp port" attribute
Added C++/Rust glue code for the "max message size" attribute

MozReview-Commit-ID: 5MQC7I1MiU0

--HG--
extra : rebase_source : f9e1457b45c63ae53b339ea43e8645a00d83e369
2018-06-20 12:13:38 -07:00
Johannes Willbold e44df5acde Bug 1438539: Added sanity check for connection attributes. r=bwc
Added sanity check that ensure that there is either a connection on the session level or in each media secion.
Extended create_dummy_sdp_session

Alterted Rust unit tests:
	parse_minimal_sdp_with_emtpy_lines
	parse_minimal_sdp

MozReview-Commit-ID: yVEhUvns57

--HG--
extra : rebase_source : ea354701995bf62c4231e654d12ad038a6e29bb0
2018-06-25 15:02:58 -07:00
Dorel Luca f51c4fa5d9 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-27 13:26:49 +03:00
Johannes Willbold 5c6e8a5e28 Bug 1438574: Changed unknown group semantic handling, r=dminor
Unknown group semantics are no longer an error but a warning indicating that the lines was skipped.
Made rust unit test test_parse_attribute_group more explicit.

MozReview-Commit-ID: 7adMSzH195H

--HG--
extra : rebase_source : b5edcdd389d5435808cb4faed5b8bf816774d0e4
2018-06-25 16:16:18 -07:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Johannes Willbold ab3a514169 Bug 1432932: Sanity check for simulcast recv rids. r=bwc,dminor
Added Rid attribute parsing
Added C++/Rust glue code for the rid attribute
Added SdpInternalError for ParseFloatError
Added Rust unit test for parse_rid in Rust
Added U16Vec in C++/Rust glue code.
The C++ glue code no longer parses rid attributes on his own if the rust parser is used.
Reworked Simulcast parsing in rust
Added C++/rust glue code for Simulcast
Enabled CheckSimulcast c++ unit test
Added sanity check, that checks for simulcast rids that have nt been defined
Enabled ParseInvalidSimulcastNoSuchRecvRid C++ unit test
Added comments with bug number to remove redundant parsing functions.
Removed C++ unit test ParseInvalidSimulcastNoSuchPt
Added C++ unit test ParseInvalidRidNoSuchPt
Added sanity check for rid pts.

MozReview-Commit-ID: 7rvsOKIbxVP

--HG--
extra : rebase_source : abfc74e5f57b51158cf9acdf81078e5a4147fb29
2018-06-08 13:22:16 -07:00
Johannes Willbold 6b5105b7a1 Bug 1436080: Implemented RsdparsaSdp::AddMediaSection, r=dminor
Implemented RsdparsaSdp::AddMediaSection
Added sdp_add_media_section to Rust/C++ glue code
Added SdpSession::add_media in Rust
Added C++ unit test CheckAddMediaSection

MozReview-Commit-ID: 8cUviY3atsb

--HG--
extra : rebase_source : 8efee17758cdfd4927f630c383ec281db5a6a9ef
2018-06-14 11:20:50 -07:00
Nils Ohlmeier [:drno] f358484625 Bug 1465253: use postfix as prefix when logging and log in clear. r=bwc
MozReview-Commit-ID: 4bfVQZyM9qy

--HG--
extra : rebase_source : 35ebc6834ab729f7da9d9cffe450a60221c8d18e
2018-05-07 13:30:00 -07:00
Nico Grunbaum 2dc9bc2b7c Bug 1456101 - ensure X11 DesktopCapture module is created on main thread r=dminor
MozReview-Commit-ID: 8lP03135ttK

--HG--
extra : rebase_source : 0ba001a933637e2ef76810d2e85a71b12dd49017
2018-06-04 22:03:14 -07:00
Chris Manchester 5d3eea5c07 Bug 1467319 - Re-generate gn moz.build files. r=mshal
MozReview-Commit-ID: Bo7TsDT9pZv

--HG--
extra : rebase_source : 2ad5dba380b3484b8cc01513aff7dfc6930ca639
2018-06-06 17:39:51 -07:00
Chris Manchester 707810c078 Bug 1466254 - Re-generate gn moz.build files. r=mshal
MozReview-Commit-ID: IyG7d8GhqEC

--HG--
extra : rebase_source : 9126b11cad87029125f2f9d9d7d678018f3ae68d
2018-06-06 17:17:37 -07:00
Dan Minor 907222260a Bug 1409018 - Defer RegisterRefreshAndMoveHandlers call; r=pehrsons
This defers the call to register the refresh and move handlers to the
CaptureFrame() call so that they will be registered on the ScreenCapture
thread.

This also calls CFRunLoopInMode to process any pending sources in the
run loop corresponding to the ScreenCapture thread so that the
refresh and move notifications are received.

MozReview-Commit-ID: G4aEchnGuUz

--HG--
extra : rebase_source : b74d95015cccb2efa64a711a1824adb379531ca2
2018-06-05 08:13:01 -04:00
Dan Minor 33e28e7269 Bug 1409018 - Remove ifdefs for OS X 10.7 from webrtc; r=pehrsons
MozReview-Commit-ID: Ahc7KPlY8uW

--HG--
extra : rebase_source : e1038ef18daf2f6e680a2c54aeaedcb179eaf671
2018-06-05 08:11:56 -04:00
Andi-Bogdan Postelnicu 8a8ae803a1 Bug 1453795 - WebRTC/Signaling - Initialize member fields in classes/ structures. r=jesup
--HG--
extra : rebase_source : 40725f05d2085edca36f1566f649855d8f547b3b
extra : amend_source : fe6b442fc1d94a559722304f93fb26ece61b93dd
2018-06-15 18:36:21 +03:00
Nils Ohlmeier [:drno] f9f2b9b6e4 Bug 1464063 - Remove sdp_getchoosetok. r=bwc 2018-06-13 14:29:20 -07:00
Steve Fink 70f3630002 Bug 1343620 - Use JS_HAZ_ROOTED everywhere instead of programmatic annotations, r=pbone
--HG--
extra : topic : haz.rooted
extra : rebase_source : 69a2c810ccfecdf7c59fe030a83aad9cb6d5f8ad
2018-06-06 16:28:38 -07:00
Johannes Willbold d804eb4679 Bug 1432918: Added fmtp parsing in rust. r=bwc,dminor,mjf
Added C++/Rust glue code
Added a u8 vector view in the C++/Rust glue code
Added fmtp attribute parsing in rust
Added the option to check for warnings that appeared in the rust parsing
Changed gtest CheckRedEmptyFmtp to check for errors in case of sipcc and check for warnings in case of rust
Extended rust fmtp testcases in rust

MozReview-Commit-ID: EXymPPKWVZk

--HG--
extra : rebase_source : a886880463c3b333c4743ef520eac4c76dc86d5b
2018-05-30 11:00:22 -07:00
Byron Campen [:bwc] 777bf8b996 Bug 1455647 - Part 4: Make a place to live for context about media packets, to fix packet dump hooks. r+drno r=drno
MozReview-Commit-ID: 1HMF93mLa7r

--HG--
rename : media/mtransport/transportlayersrtp.cpp => media/webrtc/signaling/src/mediapipeline/TransportLayerPacketDumper.cpp
rename : media/mtransport/transportlayersrtp.h => media/webrtc/signaling/src/mediapipeline/TransportLayerPacketDumper.h
extra : rebase_source : 062814836325b69da17e8f592774f006e29905ad
2018-05-09 17:13:35 -05:00
Byron Campen [:bwc] 148a322296 Bug 1455647 - Part 3: Move SRTP into a TransportLayer. r=drno
MozReview-Commit-ID: LWZFPVDYZKb

--HG--
rename : media/webrtc/signaling/src/mediapipeline/SrtpFlow.cpp => media/mtransport/SrtpFlow.cpp
rename : media/webrtc/signaling/src/mediapipeline/SrtpFlow.h => media/mtransport/SrtpFlow.h
extra : rebase_source : 16e1e38c0c6f9153375735b7cb93a8286364df5f
2018-04-23 13:14:30 -05:00
Byron Campen [:bwc] ab2913f71d Bug 1455647 - Part 2: Allow TransportLayers to be arranged in trees. r=drno
MozReview-Commit-ID: BQgNbCsmkke

--HG--
extra : rebase_source : f21dbdd6f5477786f200a3336240d724aa8cc9b8
2018-04-27 16:57:28 -05:00
Byron Campen [:bwc] cb8df81f4c Bug 1455647 - Part 1: Simplify TransportFlow. r+drno r=drno
MozReview-Commit-ID: 1jJuln4WAw9

--HG--
extra : rebase_source : e5d9cba95e7e79815e9842edac2fc5eec54aac06
2018-04-27 12:14:40 -05:00
Nils Ohlmeier [:drno] e4164ef1b0 Bug 1467938 - Fix out-of-bounds memory access in WebRTC VP9 Missing Frame Processing. r=ng
--HG--
extra : histedit_source : f18e4e92f3cdb17b80d092b13dc370386119d437%2C06a923f89cefae172e29d0af18800c401394f940
2018-06-08 19:49:40 -07:00
Johannes Willbold 73c1f3e815 Bug 1467502: Merged Rsdparser changes from github to mozilla central. r=drno
Merged Rsdparser changes from github to mozilla central.
This includes:  Syntax fixes for older rust versions
		The TransportCC parameter for rtcp-fb
		Serialization marcos and code

MozReview-Commit-ID: JqYttvTx2QS

--HG--
extra : rebase_source : 4f0c9e374fcdbd01d729cda2ddbfe5c67bf6cbc9
2018-06-08 09:27:34 -07:00
Johannes Willbold 11f081e25f Bug 1438289: Implemented RsdparsaSdpMediaSection::AddCodec and ::ClearCodecs. r=dminor
Implemented RsdparsaSdpMediaSection::ClearCodecs and RsdparsaSdpMediaSection::AddCodec
Added sdp_media_clear_codecs
Added corresponding C++/Rust glue code
Added rust trait to convert StringView to rust std::String
Added testcase CheckAddCodec and CheckClearCodec

MozReview-Commit-ID: 5pxl8hR9iz2

--HG--
extra : rebase_source : f075c80b1723c794873fb53a77471820ed34569f
2018-06-04 17:23:42 -07:00
Johannes Willbold 50ef419773 Bug 1432934: Added sanity check for recvonly attribute. r=bwc
Added a sanity check, that checks for recvonly and whether simulcast defines send options

MozReview-Commit-ID: Hi5U9ZZVKY8

--HG--
extra : rebase_source : 67aa4d6cea6ad7d3956ce606c529e6023e9e5382
2018-06-04 14:07:28 -07:00
Johannes Willbold ef7cd48646 Bug 1432936: Added sanity check for sendonly attribute. r=bwc
Moved RustSdpAttributeType and renamaed it to SdpAttributeType
Replaced the has_extmap_attribute functions by a generic has_attribute function
Added a sanity check, that checks for sendonly and if simulcast defines receive options

MozReview-Commit-ID: DXAEVu0SRap

--HG--
extra : rebase_source : c5732414f6e199c1e6a85d7d47921ca6ee601550
2018-06-04 10:05:27 -07:00
Johannes Willbold a126aacfe7 Bug 1433093: Implemented RsdparsaSdpMediaSection::SetPort. r=dminor
Add C++/Rust glue code
Added set_port function SdpMedia
Added unit test: CheckSetPort

MozReview-Commit-ID: 6pbbuSxzhqM

--HG--
extra : rebase_source : 8695de52970ff8fafa3f9b92a4e62217da4320ac
2018-06-04 16:01:43 -07:00
Byron Campen [:bwc] 39ab428ca2 Bug 1466175: Check if TransceiverImpl has been shut down in SyncWithJS. r=mjf
MozReview-Commit-ID: 9FaUEKdr9jn

--HG--
extra : rebase_source : c6a4e75b75835637288b765f1f45da1a88597d0d
2018-06-05 12:33:47 -05:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
arthur.iakab 7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen 8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
Mike Hommey cf60ab0a62 Bug 1466054 - Run `mach build-backend -b GnMozbuildWriter`. r=froydnj
This refreshes the gn-generated moz.builds with the change from previous
commit. Somehow, this does unrelated changes, there must be something
funky in the gn-moz.build-generator.

--HG--
extra : rebase_source : 7e1a9d75f7a80c0981b2534e4959ada6c611bae2
2018-06-01 17:22:28 +09:00
Csoregi Natalia 468205953d Merge inbound to mozilla-central. a=merge 2018-06-02 01:01:33 +03:00
Cosmin Sabou 1bc774a842 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-01 12:44:57 +03:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Johannes Willbold 1142310e25 Bug 1432922: Implemented parsing support for rtcpfb-wildcard. r=bwc,dminor
Implemented Rust/C++ glue code for rtcp-fb
Implemented parsing support for rtcpfb-wildcard in rust
Activated c++ unit tests

MozReview-Commit-ID: 5xRSQz7pucZ

--HG--
extra : rebase_source : 97fdfda9134197381d16e0a61dda5357bba9e9da
2018-05-29 16:32:52 -07:00
Jan Keromnes 88a09b356c Bug 1464162 - Make a few vector operations more efficient by reserving size beforehand. r=jya
Summary:
These automated fixes were generated like so:
    ./mach configure --enable-clang-plugin
    ./mach build-backend --backend=CompileDB
    run-clang-tidy-6.0.py -p obj-x86_64-pc-linux-gnu/ -fix -checks=-*,performance-inefficient-vector-operation *

Reviewers: jya

Reviewed By: jya

Subscribers: jya

Bug #: 1464162

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

--HG--
extra : amend_source : 648dc48989c5af122a33f8d50c98c0f1efcf3874
2018-05-31 14:52:59 +03:00
Jan Beich b191e43264 Bug 1464680 - Add more WebRTC's gn-configs for BSDs on ARM. r=chmanchester
Based on output from FreeBSD armv7/aarch64.

MozReview-Commit-ID: L7mKj6FIGS5

--HG--
extra : rebase_source : 82729a252c941d4011fc764372fc4943e0a6dd9a
2018-05-27 13:49:33 +00:00
Jan de Mooij ce3eb7d5c0 Bug 1464374 part 2 - Pass JS::Realm* instead of JSCompartment* to CallSetup. r=bz,luke
The principals are on the realm so we need a realm instead of a compartment. Also adds js::GetNonCCWObjectRealm to get the realm of a non-CCW object.
2018-05-31 11:28:48 +02:00
arthur.iakab f1046ac67f Merge mozilla-central to inbound 2018-05-31 01:08:35 +03:00
arthur.iakab fb18cb09bd Merge mozilla inbound to central a=merge 2018-05-31 01:05:10 +03:00
Andrea Marchesini 1273dc5391 Bug 1446933 - Remove 'using namespace mozilla::net' from BackgroundUtils.h, r=qdot 2018-05-30 21:21:17 +02:00
Cameron Kaiser af336fb099 Bug 1465274 - Add ppc64 to webrtc, regenerate moz.build to remove SSE2 dependency for Linux. r=froydnj
--HG--
extra : source : 3a2d42c1c0d47e11a1efc666cce491f3064469ef
2018-05-27 22:21:07 -07:00
Ryan VanderMeulen 7978cab95f Backed out changeset 3a2d42c1c0d4 for landing with the wrong bug number in the commit message. 2018-05-30 12:44:07 -04:00
Dan Minor 50a3ab6cd4 Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.


MozReview-Commit-ID: 5jre75E3JLi

--HG--
extra : rebase_source : 5f5154fc9fc7590cc02eb25146e5bc20b2243fa3
2018-05-08 15:55:36 -04:00
Christian Holler 570031d38c Bug 1464202 - Improve and centralize libFuzzer flag management. r=froydnj
MozReview-Commit-ID: HFrQDAZWtpo

--HG--
extra : rebase_source : ab1da001d7e9280fbfb37858505f1d0d0caf7d54
2018-05-24 21:11:46 +02:00
Dorel Luca 8e1a0ee1c6 Backed out changeset c13ca75c9bcb (bug 1450658) for Browser-Chrome failures on browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js 2018-05-23 17:07:33 +03:00
Cameron Kaiser fbc0928677 Bug 1434589: Add ppc64 to webrtc, regenerate moz.build to remove SSE2 dependency for Linux. r=froydnj
--HG--
extra : rebase_source : 7915ec4e623b3e35fcdf84b21a4f8a869044bac8
2018-05-27 22:21:07 -07:00
Dan Minor 40fcbf60d9 Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.


MozReview-Commit-ID: 5jre75E3JLi

--HG--
extra : rebase_source : 97f472f6ed1c5d6bed1af01fb7243a82b2629b03
2018-05-08 15:55:36 -04:00
Mike Hommey af5ff10060 Bug 1462873 - Link chromium_atomics to webrtc tests. r=froydnj
This redoes bug 1257888 which bug 1393119 undid.

--HG--
extra : rebase_source : 1f2e9225c1548d34d7b0d46a4c754ef594c44ee3
2018-05-19 13:00:56 +09:00
Jim Chen 4053e24872 Bug 1458020 - 3. Set JavaVM when actually using video capture; r=jib
We currently set the Android JavaVM pointer in MediaEngineWebRTC.
However, because of that, we end up setting the pointer in the child
process, even though we really want to set the pointer in the parent
process because that's where the camera will be accessed.

This patch makes us set JavaVM inside VideoEngine itself, where we
actually access the camera in the parent process.

MozReview-Commit-ID: 3TeLiiK2vyh
2018-05-18 10:16:04 -04:00
Randell Jesup 809e9aa0d4 Bug 1346291: update code that accidentally assumed libyuv would define things like int32 r=sotaro,jib 2018-05-09 23:59:16 -04:00
David Major 4ac65c8eef Bug 1459617: Merge upstream webrtc fix for build bustage with clang trunk. r=dminor
https://webrtc.googlesource.com/src/+/bda78c9464f4d0e6ff26b0035624a967269c3b0a
2018-05-09 16:32:31 -04:00
Dan Minor b9bfaf036c Bug 1456071 - Do not dispatch InsertDTMFTone call to sts thread; r=bwc
This removes the dispatch to the sts thread prior to calling
AudioConduit::InsertDTMFTone. There are assertions in ChannelProxy which
restrict the methods there to running on the main thread, so the current
code crashes immediately when inserting a tone in a debug build. The
inserted DTMF event ends up in a queue, so there is no reason not to just do
the insertion from the main thread.

MozReview-Commit-ID: G8JM9QDLrGF

--HG--
extra : rebase_source : 65168ee08efa5fc1960e35fd5acf4bdde0420b84
2018-04-26 11:36:19 -04:00
Dan Minor 21cb54ff16 Bug 1414829 - Fix VideoConduitTest gtest assertion failures; r=drno
--HG--
extra : rebase_source : 9e881c4a84389f480f2dcdd1c6be714bba2fdc72
2017-11-28 15:58:47 -05:00
Dan Minor f09687bfc8 Bug 1414829 - Add DeleteStreams to media conduits; r=jesup
--HG--
extra : rebase_source : da8ae4e2cb53e787f1730c2f5efcd65421de300f
2018-01-08 12:40:38 -05:00
Paul Adenot c6e563b490 Bug 1456115 - Make last_sample_rate_ in `neteq_impl.cc` atomic. r=dminor
This allows removing locking, and allows other threads to progress without
taking the lock, hence lowering the probability that the lock will be taken for
a long time when we need to pull NeqEQ.

MozReview-Commit-ID: HMO67A0hher

--HG--
extra : rebase_source : aa5c77895eb57d60b61d9a8a5822e53593348830
2018-04-23 11:55:19 +02:00
Paul Adenot f412eb58ae Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Paul Adenot 1c6c907315 Bug 1456115 - Remove locking in AcmReceiver::GetAudio. r=dminor
This also causes a lot of dropouts. We don't need to lock here. NetEQ is thread
safe, and its created in the ctor. The rest of the members are made atomic or is
simply never accessed in multiple threads.

MozReview-Commit-ID: 2fRw5ZgxdpQ

--HG--
extra : rebase_source : f2aa082a3e856e873cfcd96ff721ccdc77df3633
2018-04-12 14:36:02 +02:00
Paul Adenot 19325f0f09 Bug 1456115 - Stop locking when getting the sampling rate from the channel in acm_receiver.cc. r=dminor
This accounts for half of our audio dropouts, there is very high contention on
this piece of data.

MozReview-Commit-ID: 2HSfqZHT2MK

--HG--
extra : rebase_source : 10c451ac60563a0f1c14a314f5a12cc45055e20b
2018-04-09 13:52:08 +02:00
Narcis Beleuzu d6e889b127 Backed out 4 changesets (bug 1456115) for Asan Mochitest filures "AddressSanitizer: stack-overflow /celt/bands.c:1437:4 in quant_all_bands". CLOSED TREE
Backed out changeset 3379d4fc07f6 (bug 1456115)
Backed out changeset 9c77f5b53b56 (bug 1456115)
Backed out changeset e48268ffa4d8 (bug 1456115)
Backed out changeset bffecfd92808 (bug 1456115)
2018-04-24 21:47:07 +03:00
Paul Adenot a1d88e5fb9 Bug 1456115 - Make last_sample_rate_ in `neteq_impl.cc` atomic. r=dminor
This allows removing locking, and allows other threads to progress without
taking the lock, hence lowering the probability that the lock will be taken for
a long time when we need to pull NeqEQ.

MozReview-Commit-ID: HMO67A0hher

--HG--
extra : rebase_source : aa5c77895eb57d60b61d9a8a5822e53593348830
2018-04-23 11:55:19 +02:00
Paul Adenot 0640ca7fdb Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Paul Adenot 2d783a2f32 Bug 1456115 - Remove locking in AcmReceiver::GetAudio. r=dminor
This also causes a lot of dropouts. We don't need to lock here. NetEQ is thread
safe, and its created in the ctor. The rest of the members are made atomic or is
simply never accessed in multiple threads.

MozReview-Commit-ID: 2fRw5ZgxdpQ

--HG--
extra : rebase_source : f2aa082a3e856e873cfcd96ff721ccdc77df3633
2018-04-12 14:36:02 +02:00
Paul Adenot 581308e902 Bug 1456115 - Stop locking when getting the sampling rate from the channel in acm_receiver.cc. r=dminor
This accounts for half of our audio dropouts, there is very high contention on
this piece of data.

MozReview-Commit-ID: 2HSfqZHT2MK

--HG--
extra : rebase_source : 10c451ac60563a0f1c14a314f5a12cc45055e20b
2018-04-09 13:52:08 +02:00
Nils Ohlmeier [:drno] cf2d709fb0 Bug 1455557: accept new line as RTCP FB NACK terminator. r=bwc
MozReview-Commit-ID: B0KaqRvLqNs

--HG--
extra : rebase_source : 97bca7eb56b1e112fc3ff091e58323ff1d09d43e
2018-04-20 21:52:16 -07:00
Paul Adenot fbf116232d Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
MozReview-Commit-ID: 7mmDHVS2t8f

--HG--
extra : rebase_source : ac56722792f99aadd8e359ef9ae4b30f6dc78076
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02: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
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
Dan Minor aa20bd6084 Bug 1437345 - Update generated files; r=jesup
MozReview-Commit-ID: 5xmc2mrA2mz

--HG--
extra : rebase_source : 88e2293daadc84ca2e4246371ffa4e37ae9853ac
2018-03-19 08:35:21 -07:00
Jan Beich 036d3dfaf5 Bug 1437345 - Don't try to build audio_device backends. r=dminor
MozReview-Commit-ID: JjLucnqna0A

--HG--
extra : rebase_source : 3aff9d6da57917840b1f27430911a426ace4fbd0
2018-03-14 17:09:06 +00:00
Dan Minor 71ea2be163 Bug 1437345 - Set defaults for gn visual studio build; r=jesup
This hard codes the visual studio version to 2015. We did the same thing for the
gyp build. It also sets default paths for visual studio, which are ignored by the
remainder of the build system.

This was required to get gn code generation working on a fresh install of
Windows. I must have had similar changes on my old Windows VM but missed
commiting them as part of the gyp to gn build switch.

MozReview-Commit-ID: 7fYngpdIwxh

--HG--
extra : rebase_source : de24b50f8e19465d8c145ce96c31d4ad7cc52e57
2018-03-19 06:55:21 -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
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
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
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
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
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02: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
Andreea Pavel 7a4b9a3f56 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : rebase_source : 66bd87105d99036ada5008499ff0eaea579b531a
2018-04-06 13:20:21 +03:00