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

2532 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 58ad07f1ee Bug 1402334 - Fix bustage for 10.11 SDK. r=jesup
MozReview-Commit-ID: 3dnZmFEhNBQ

--HG--
extra : histedit_source : 260168a1d04ede514a12bb33ab1ed571ab25e56e
2017-10-18 10:15:45 +09:00
Dan Minor 1d0e9fe0b4 Bug 1404250 - Ensure that target bitrate is between minimum and maximum bitrates in VideoConduit; r=pehrsons
MozReview-Commit-ID: Am19abfrETx

--HG--
extra : rebase_source : 7906e80ab0a07cc5ffb7940a4f362b709a4bacbc
2017-10-10 10:43:09 -04:00
Kris Maglione 9184710ae5 Bug 1404198: Part 2g - Switch to NS_NewTimer* in media. r=njn
MozReview-Commit-ID: 3ydSj5HfYzZ

--HG--
extra : rebase_source : 6d38da71d3c82b900b46e69c12ceb81202dd965d
2017-10-15 23:14:33 -07:00
Michael Froman dd94c4ef01 Bug 1408487 - handle parent process returning 0 STUN addrs. r=drno
1) don't call StartGathering in e10s mode if parent process failed to provide STUN addrs.
2) set ICE connection state to failed if parent process returns 0 STUN addrs

MozReview-Commit-ID: COPr3TavdvM

--HG--
extra : rebase_source : 6e20424cf51fa28311f7f9f6968c2a59333b6729
2017-10-18 14:06:02 -05:00
Michael Froman 90e4564993 Bug 1405940 - Fix Null Pointer dereference in sigslot::lock_block r=bwc
Caused by several issues:
1) We were allowing an answer with modified ufrag/pass to
   begin an ICE restart even if the offer didn't indicate
   it was restarting.
2) This should no longer happen, but in cases where restart logic
   was started inappropriately, TransportLayerIce::SetParameters
   could get a null stream, and we check for that now.

MozReview-Commit-ID: JFQ1zz3l5wY

--HG--
extra : rebase_source : a6d43aabada86669850ddce07ea86da8118a6bec
2017-10-12 22:38:01 -05:00
Dan Minor b66f2f1f6f Bug 1402334 - Build mediapipeline using unified build; r=drno
This replaces MOZ_MTLOG with CSFLog, which is already set up to handle having
a shared LazyLogModule used from difference source files.

MozReview-Commit-ID: KNUKL92aWcw

--HG--
extra : rebase_source : 6a52dfc3c69a98318b26067aa608e5d484c8b8e2
2017-10-02 14:29:20 -04:00
Dan Minor 588a074b49 Bug 1402334 - Add log level test to CSFLog; r=drno
MozReview-Commit-ID: 3EKeDLAmEs0

--HG--
extra : rebase_source : 71a26aa97d20b280b7453e08a389a5b8d10bdcde
2017-10-02 14:33:23 -04:00
Dan Minor 69e58e48d9 Bug 1402334 - Build media-conduit and peerconnection using unified build; r=jesup
This removes the duplicate definition of logTag and fixes a preprocessor related
unified build error.

MozReview-Commit-ID: LP5frg0QZul

--HG--
extra : rebase_source : b3a6d4dbd40545e34b72623e9c976750d7f1d0ca
2017-10-02 11:05:29 -04:00
Nils Ohlmeier [:drno] 660bb85308 Bug 1407492: remove aec log dir user pref. r=mjf
MozReview-Commit-ID: 5oNuOrSHY2y

--HG--
extra : rebase_source : 4fdf9a7cd4e88dde6b7ac583007ae90fed7fb0fe
2017-10-10 19:43:37 -07:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Tom Ritter 701ee70a22 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : fe434db73a8da686391462c12b91648348abcdc9
2017-10-09 15:01:48 -05:00
Jeff Walden be56429c85 Bug 1402344 - Update mfbt-double-conversion to the latest upstream rev. r=froydnj
--HG--
rename : mfbt/double-conversion/source/LICENSE => mfbt/double-conversion/double-conversion/LICENSE
rename : mfbt/double-conversion/source/README.md => mfbt/double-conversion/double-conversion/README.md
rename : mfbt/double-conversion/source/bignum-dtoa.cc => mfbt/double-conversion/double-conversion/bignum-dtoa.cc
rename : mfbt/double-conversion/source/bignum-dtoa.h => mfbt/double-conversion/double-conversion/bignum-dtoa.h
rename : mfbt/double-conversion/source/bignum.cc => mfbt/double-conversion/double-conversion/bignum.cc
rename : mfbt/double-conversion/source/bignum.h => mfbt/double-conversion/double-conversion/bignum.h
rename : mfbt/double-conversion/source/cached-powers.cc => mfbt/double-conversion/double-conversion/cached-powers.cc
rename : mfbt/double-conversion/source/cached-powers.h => mfbt/double-conversion/double-conversion/cached-powers.h
rename : mfbt/double-conversion/source/diy-fp.cc => mfbt/double-conversion/double-conversion/diy-fp.cc
rename : mfbt/double-conversion/source/diy-fp.h => mfbt/double-conversion/double-conversion/diy-fp.h
rename : mfbt/double-conversion/source/double-conversion.cc => mfbt/double-conversion/double-conversion/double-conversion.cc
rename : mfbt/double-conversion/source/double-conversion.h => mfbt/double-conversion/double-conversion/double-conversion.h
rename : mfbt/double-conversion/source/fast-dtoa.cc => mfbt/double-conversion/double-conversion/fast-dtoa.cc
rename : mfbt/double-conversion/source/fast-dtoa.h => mfbt/double-conversion/double-conversion/fast-dtoa.h
rename : mfbt/double-conversion/source/fixed-dtoa.cc => mfbt/double-conversion/double-conversion/fixed-dtoa.cc
rename : mfbt/double-conversion/source/fixed-dtoa.h => mfbt/double-conversion/double-conversion/fixed-dtoa.h
rename : mfbt/double-conversion/source/ieee.h => mfbt/double-conversion/double-conversion/ieee.h
rename : mfbt/double-conversion/source/strtod.cc => mfbt/double-conversion/double-conversion/strtod.cc
rename : mfbt/double-conversion/source/strtod.h => mfbt/double-conversion/double-conversion/strtod.h
rename : mfbt/double-conversion/source/utils.h => mfbt/double-conversion/double-conversion/utils.h
extra : rebase_source : 2d03850dcd1db749f0debecffec2e870acd1b958
2017-10-09 22:15:37 -07:00
Sebastian Hengst ee63f2e30a Backed out changeset 0317bcff40bc (bug 1406687) for build bustage at testing/gtest/gtest/src/gtest.cc:3871: 'Unused' was not declared in this scope. r=backout 2017-10-09 18:52:39 +02:00
Tom Ritter 22d2cdf063 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : c54b129c6815096035e262322f40aa0884b1ae56
2017-10-09 00:26:16 -05:00
Michael Froman 2bb753aa78 Bug 1406434 - fixing ice restart and rollback counts on about:webrtc. r=ng
This is re-adding changes from Bug 1321628 that were overwritten by the
webrtc.org v49 import.

MozReview-Commit-ID: GI4OdFANJ8N

--HG--
extra : rebase_source : ec7af8f7d9c35831b3b58a92ae30bc1da6f43f23
2017-10-06 11:26:22 -05:00
Sebastian Hengst 7b3f84a66d Backed out changeset 4eb36d1710ca (bug 1402334) for bustage at media/webrtc/signaling/src/media-conduit/AudioConduit.cpp:609: 'logTag' was not declared in this scope. r=backout on a CLOSED TREE 2017-10-04 19:13:56 +02:00
Sebastian Hengst 41b7635dd5 Backed out changeset de7bd38908da (bug 1402334) 2017-10-04 19:12:24 +02:00
Sebastian Hengst f50ee09496 Backed out changeset 978b0400ac3b (bug 1402334) 2017-10-04 19:12:19 +02:00
Dan Minor 85e0a8d5b0 Bug 1402334 - Build mediapipeline using unified build; r=drno
This replaces MOZ_MTLOG with CSFLog, which is already set up to handle having
a shared LazyLogModule used from difference source files.

MozReview-Commit-ID: KNUKL92aWcw

--HG--
extra : rebase_source : 6d9eb3421c364f941c4cdf6d40217d2b853faacb
2017-10-02 14:29:20 -04:00
Dan Minor 5e6e96008c Bug 1402334 - Add log level test to CSFLog; r=drno
MozReview-Commit-ID: 3EKeDLAmEs0

--HG--
extra : rebase_source : 3cd2251011988f7cd5fc9101af9ec9a8e55696c9
2017-10-02 14:33:23 -04:00
Dan Minor 8bfcd583ee Bug 1402334 - Build media-conduit and peerconnection using unified build; r=jesup
This removes the duplicate definition of logTag and fixes a preprocessor related
unified build error.

MozReview-Commit-ID: LP5frg0QZul

--HG--
extra : rebase_source : 64f2d77816c8d3681a7cf795317e8bdcb73c6713
2017-10-02 11:05:29 -04:00
Byron Campen [:bwc] 0c94395051 Bug 1377299: Add packet dump hooks r+drno r=drno,smaug
MozReview-Commit-ID: Jr7n49OOduG

--HG--
extra : rebase_source : 8880b8b6bf842f996f99e86fc45510e59e70a665
2017-06-29 19:14:06 -05:00
Michael Froman 5ea6a54fa2 Bug 1402495 - changes to support MID in audio packets. r=drno
MozReview-Commit-ID: BivuIsgNLYI

--HG--
extra : rebase_source : a5b08a2dd4c8c19985bd85f77679e0300c15589f
2017-09-15 13:55:17 -05:00
Michael Froman cd290b865f Bug 1402495 - changes to support MID in video packets. r=drno
MozReview-Commit-ID: E7RoFZBb5C8

--HG--
extra : rebase_source : 863b94fe968f55f86c19b13073b831326e5387bb
2017-08-18 09:53:34 -05:00
Michael Froman 6581f716eb Bug 1402495 - Use constants for the RtpExtension URIs. r=drno
MozReview-Commit-ID: EldtSM9Ygtl

--HG--
extra : rebase_source : 56191da92de7dce56bef3ce3e1beb36a23aff6a2
2017-09-01 16:53:46 -05:00
Dan Minor 5244e5c40e Bug 1401540 - Allow empty BUNDLE groups; r=bwc
MozReview-Commit-ID: 9IIwUnaMZ1m

--HG--
extra : rebase_source : 87729e9303fe1220f53db2f203efc99d628e020a
2017-09-27 12:49:19 -04:00
Wes Kocher eb9a2ed0f2 Merge inbound to central, a=merge
MozReview-Commit-ID: IqwKWn7ceHC
2017-09-29 14:47:25 -07:00
Dan Minor 5af93e95a8 Bug 1402818 - Set hwnd_ to NULL in PlatformUIThread::Stop(); r=pehrsons
We only create an event window in Start() if hwnd_ is NULL, but Stop() does
not set it to NULL. This causes the thread to no longer be a GUI thread if
Stop() and then Start() is called on the same thread leading to assertion
failures.

MozReview-Commit-ID: 5TpazUCqBuR

--HG--
extra : rebase_source : 461066e576af87b27c82075a15d6b5772282b54c
2017-09-28 16:32:31 -04:00
Andreas Pehrson 516c8198a1 Bug 1403714 - Only regard max_fs when set explicitly. r=dminor
MozReview-Commit-ID: DczP0bq96AW

--HG--
extra : rebase_source : c5ef2418b8e3fd0b236aee07e0628de1d596fed9
2017-09-28 18:34:36 +02:00
Munro Mengjue Chiang 4658732fb4 Bug 1382433 - use fixed fps instead of floating fps to avoid very low fps. r=jib
MozReview-Commit-ID: 2QUWJM2LNkK

--HG--
extra : rebase_source : 5e323539c0d600979726d552938c9f06ed5cf5e2
2017-09-27 18:50:54 +08:00
Andreas Pehrson d918302551 Bug 1319446 - DirectMediaStreamListener, you are dead to me. r=padenot
MozReview-Commit-ID: KwztE5ogSj9

--HG--
extra : rebase_source : e8e6bb3548c5697c5db901c0310ea5067a30c895
2017-09-27 12:01:46 +02:00
Dan Minor 6dfaaea25b Bug 1403204 - Code that configures telephone-event should not assume that it is always last in the codec array; r=bwc
Instead, iterate over the values.

MozReview-Commit-ID: KtPmA9fnyIU

--HG--
extra : rebase_source : d0e377be835425e13e76b99b9bab66934cfe29b6
2017-09-26 15:29:22 -04:00
Dan Minor b73bb761aa Bug 1402348 - fix webrtc.org screen_capturer_unittest and window_capturer_unittest segfault on Linux; r=jesup
We weren't defining USE_X11 when building the tests resulting in inconsistent
versions of the headers depending upon where they were compiled.

MozReview-Commit-ID: 298yRvIjXgb

--HG--
extra : rebase_source : 7406d14db3b41b8b5f579cc572ccb283064dbe29
2017-09-22 14:33:49 -04:00
Dan Minor 099dc8de4f Bug 1382182 - Build signaling common using moz.build; r=ted,jesup
MozReview-Commit-ID: FSqL5enNAZC

--HG--
extra : rebase_source : 0430bc65e869a8215550ab67f03b81668c4ae473
2017-07-24 10:59:20 -04:00
Dan Minor 4643f4ab72 Bug 1382182 - Build peerconnection using moz.build; r=ted,jesup
MozReview-Commit-ID: IvG9Pf0PRfw

--HG--
extra : rebase_source : e5a17ddda32a0fb168f6fd84ae9c65c1cee7d020
2017-07-21 16:28:29 -04:00
Dan Minor 86aeffe744 Bug 1382182 - Build mediapipeline using moz.build; r=ted,jesup
MozReview-Commit-ID: 7yJMgrsCgzO

--HG--
extra : rebase_source : f2a076b9a944795ee18232043f082590134529fc
2017-07-21 15:20:08 -04:00
Dan Minor ae9b639bdd Bug 1382182 - Build media-conduit using moz.build; r=ted,jesup
MozReview-Commit-ID: I0mHRkY4owZ

--HG--
extra : rebase_source : 16e3844f0ccb6ae0a2a557e5b3abe4a777a48f0e
2017-07-21 12:07:07 -04:00
Dan Minor 21da3987a2 Bug 1382182 - Build sdp using moz.build; r=ted,jesup
MozReview-Commit-ID: fZRprTixrc

--HG--
extra : rebase_source : e3823847862d427f752ec581bb3f35e6809f2aec
2017-07-20 11:47:05 -04:00
Dan Minor 30d76b125c Bug 1382182 - Build jsep using moz.build; r=ted,jesup
MozReview-Commit-ID: 9UhlBZi0yO0

--HG--
extra : rebase_source : 7ad69af2dfb61ad88fc5f87f4d17a09abbf23edc
2017-07-20 11:24:08 -04:00
Sebastian Hengst c0dac760d3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: It9WfByQfV3
2017-09-23 11:38:06 +02:00
Nils Ohlmeier [:drno] 093afd78ca Bug 1402221: add Telemetry probe to find out rtcp-mux usage. r=bwc,francois
MozReview-Commit-ID: 1XmPbpSmAb1

--HG--
extra : rebase_source : b3ad189b8eec13ce1b75873c36008d371b10797c
2017-09-22 00:09:52 -07:00
Michael Froman cfcc1ed74d Bug 1396419 - adding null checks to avoid intermittent crash. r=drno
MozReview-Commit-ID: 3ywGT90q1NQ

--HG--
extra : rebase_source : d759c1e430da4c7c272d835219e69fb238e8205f
2017-09-18 21:36:33 -05:00
Munro Mengjue Chiang 979c34dc04 Bug 1389534 - Enable continuous auto focus mode. r=jib
MozReview-Commit-ID: DrTkb9CxjlA

--HG--
extra : rebase_source : c65aabcf0939a20814690a4c3349846fde0be00a
2017-09-07 18:25:45 +08:00
Nico Grunbaum a531d080c3 Bug 1393095 - remote audio receiver stats missing;r=dminor,jesup
MozReview-Commit-ID: 9izPPOqybcK

--HG--
extra : rebase_source : 31578d7198929267e423a1c0c4b13cd49f110629
2017-09-13 01:38:35 -07:00
Dan Minor 48f0f26faf Bug 1398820 - Do not add duplicate rtp extensions; r=bwc
MozReview-Commit-ID: G6wLXW7z05d

--HG--
extra : rebase_source : e90ca378082a899a2cb7961121b6822e2ba2a72c
2017-09-14 15:55:33 -04:00
Dan Minor c9a33a6e73 Bug 1393687 - Fix handling of max-fr parameter; r=jesup
MozReview-Commit-ID: C30K1Pogm5u

--HG--
extra : rebase_source : e53ed34aed0c59b1495581562901b4e7cc78e3b0
2017-09-07 16:05:52 -04:00
Dan Minor ceaff80d1d Bug 1393687 - Use VideoAdapter to handle max-fs; r=jesup
This uses the VideoAdapter to handle the max-fs constraint rather than
attempting to calculate and enforce it manually within the VideoConduit.
The resolution is taken as the small of the max-fs constraint and the
latest request from the video sink.

The old unit tests for max-fs and max-fr are removed as the size
calculation has now been delegated to the VideoAdapter and the tests do
not verify whether or not video has actually been scaled.

MozReview-Commit-ID: 18khmiNageR

--HG--
extra : rebase_source : 9d4c80ab5d426721c5c409d81130f2a586c862ad
2017-09-11 13:43:32 -04:00
Sebastian Hengst e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Nils Ohlmeier [:drno] 4ba00c2a5a Bug 1396974: make tests ensure no bundle-only is present in inactive m-swctions. r=bwc
MozReview-Commit-ID: 5pnTygvwTSy

--HG--
extra : rebase_source : 4856491656e8503412a42cafbb8f9af2814a00f3
2017-09-08 13:05:13 -07:00
Nils Ohlmeier [:drno] 7b33b594d5 Bug 1396974: stop bundeling inactive m-sections. r=bwc
MozReview-Commit-ID: AXBtipHlW0Y

--HG--
extra : rebase_source : c1cf7cd11896a757472b47ccf8810cfca7c413d1
2017-09-08 12:26:19 -07:00
Randell Jesup 62c5b9fbfe Bug 1396107: switch to using the same audio input method upstream webrtc.org does r=dminor,padenot 2017-09-12 10:14:41 -04:00
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Nils Ohlmeier [:drno] dfbfc1ccea Bug 1384801 - Improve the sdp base64 parser. r=bwc
MozReview-Commit-ID: 30e64v5vxo8
2017-09-01 15:58:01 -07:00
Nathan Froyd 8bc151b3cf Bug 1396864 - eliminate -Wunused-private-field warning in WebrcMediaCodecVideoCodec; r=jesup
The mTimestamp field is unused.
2017-09-06 08:57:09 -04:00
Dan Minor 28d9a3c000 Bug 1395566 - Enable more webrtc.org desktop capture tests; r=jesup
This adds the remaining desktop_capture unit tests with a few exceptions:
app_capturer_unittest does not compile and is not built by webrtc.org,
and desktop_capturer_differ_wrapper_unittest, rgba_color_unittest,
screen_drawer_unittest and test_utils_unittest rely upon code that we do
not build.

--HG--
extra : rebase_source : 6bdac36a46723ade37d6c2ba4a9384ff7205a6e1
2017-09-01 09:44:29 -04:00
Dan Minor f1506a2ce3 Bug 1395849 - Fix G.722 audio codec; r=jesup
Even though we were building the G.722 codec, we weren't setting the
defines so that it would actually be used.

MozReview-Commit-ID: Dw8l2sYwZFA

--HG--
extra : rebase_source : 10cbd61cb483536be32d7b40f1e64222c3259089
2017-09-01 14:48:36 -04:00
Nils Ohlmeier [:drno] b81119f1e6 Bug 1264479: don't crash on disappearing data channels. r=bwc
MozReview-Commit-ID: 3DmM7teByR8

--HG--
extra : rebase_source : 238054d17ff624eb203f8352493cd2ce99e11402
2017-08-31 14:30:50 -07:00
Jean-Yves Avenard 64a4b87c4c Bug 1394591 - P6. Simplify some internal codec mimetype. r=gerald
The codec mimetype is now shown in the media devtools. May as well make it readable.

MozReview-Commit-ID: 6rccDiTR24m

--HG--
extra : rebase_source : 7b8d1da8f05d0c46d5fd57b5e604ec3aed36a5f2
2017-09-01 23:04:39 +02:00
Sebastian Hengst e9bfcd79f9 Backed out changeset de401d17868d (bug 1394591) 2017-09-04 00:06:51 +02:00
Jean-Yves Avenard 9b2818843f Bug 1394591 - P6. Simplify some internal codec mimetype. r=gerald
The codec mimetype is now shown in the media devtools. May as well make it readable.

MozReview-Commit-ID: 6rccDiTR24m

--HG--
extra : rebase_source : 7b8d1da8f05d0c46d5fd57b5e604ec3aed36a5f2
2017-09-01 23:04:39 +02:00
Nico Grunbaum f9027b2f13 Bug 1381627 - EverySecondTelemetryCallback target r=billm,jib
MozReview-Commit-ID: 2noZLkM4ZjO

--HG--
extra : rebase_source : a5e022b083f7341c26e71314578ea9f0e9023818
2017-08-17 17:39:39 -07:00
Wes Kocher 8b84853ed6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Dan Minor ed140d9eeb Bug 1395289 - Convert from points to pixels when invalidating rect for screensharing when building on OS X older than 10.8; r=jesup
When we build for versions of OS X below 10.8 it is still necessary to
convert from points to pixels when invalidating rectangles as we use the
CGRegisterScreenRefreshCallback and CGRegisterMoveCallback interfaces.

--HG--
extra : rebase_source : cc3a405c1faaf010922b9acbe0edc21da15bb9ac
2017-08-31 13:29:34 -04:00
Mike Hommey a03ea28fe8 Bug 1395769 - Don't define MOZ_JEMALLOC_IMPL when building webrtc-gtest. r=froydnj
This define is only meant to be set when building mozjemalloc itself.

--HG--
extra : rebase_source : 5660b691855c3b0be55375ad8d9525ea2288bb69
2017-08-31 16:16:23 +09:00
Tom Ritter c756f0c92e Bug 1393795 Lowercase includes so WebRTC compiles with MinGW r=jesup
This edits the third party SCTP library, but upstream has already applied this change to master

MozReview-Commit-ID: ERpMc8EvYZ7

--HG--
extra : rebase_source : cea0d3758275b73a395ad2738edd8eb57c833e1a
2017-08-25 14:04:36 -05:00
Nils Ohlmeier [:drno] 44e91b37c9 Bug 1392813: removed unused sendrecv attributes. r=bwc
MozReview-Commit-ID: 4T3taLcYXtq

--HG--
extra : rebase_source : bce648963cfeb437d9c3f015b0fe33889628212a
2017-08-22 15:27:08 -07:00
Nils Ohlmeier [:drno] 776005a2ec Bug 1392745: verify mid presence in inactive m-section r=mjf
MozReview-Commit-ID: 7XISDzZCirr

--HG--
extra : rebase_source : a786be541a31edac05647fe2ee4d0c63c982d3d0
2017-08-22 14:22:52 -07:00
Nils Ohlmeier [:drno] 240ea1983a Bug 1392745: keep MID when disabling m-sections r=mjf
MozReview-Commit-ID: 3CDA7lF70kr

--HG--
extra : rebase_source : 6d1a663acfde0a48cbb8fa0c51899a886b24b41a
2017-08-22 12:05:22 -07:00
Michael Froman 5d1597b31f Bug 1391857 - fixing ctx flags for e10s stun addr gathering. r=drno
In the case of e10s, the ctx flags for default route only (and less
importantly in this case, proxy only) were not set on the ice ctx
when SetStunAddrs was called in PeerConnectionMedia.

MozReview-Commit-ID: CldUpJfaaH3

--HG--
extra : rebase_source : 6223722275d4741519890d4d2b8436b05ca43155
2017-08-22 10:13:06 -05:00
Mike Hommey f7fa48a68d Bug 1392515 - Properly link webrtc-gtest on Linux. r=gps
The main difference between Linux and other platforms is that mozglue is
a static library and doesn't include the allocator, while it is a
dynamic library and includes the allocator on other platforms.

As such, linking against mozglue alone doesn't guarantee everything that
should be linked is linked, which GeckoProgram() does. But since
webrtc-gtest doesn't want to link libxul, we use linkage=None.

--HG--
extra : rebase_source : 552b123cb4ef6a861a49bc5eea0f03b9b5427e8b
2017-08-22 14:51:44 +09:00
Wes Kocher 6dd42e2664 Merge inbound to central, a=merge
MozReview-Commit-ID: BMWuqvmTljV
2017-08-22 17:07:23 -07:00
Dan Minor b779bb7db1 Bug 1392583 - Remove calls to FATAL() from audio_device_template.h for unimplemented functions; r=padenot
This removes calls to FATAL() and replaces them with LOG() statements. The
unimplemented functions already returned error codes.

MozReview-Commit-ID: KgXVCIKWoLp

--HG--
extra : rebase_source : 993d3700e734fd6042fc5708261dc58d9987e64b
2017-08-22 09:58:03 -04:00
Dan Minor 0c9287d1b6 Bug 1388129 - Fix interaction between quality scaler and scaleResolutionDownBy; r=jesup
Currently we apply the scaleResolutionDownBy factor to the resolution
requested by the quality scaler. This can lead to a cycle where the quality
scaler requests a slightly larger resolution and we scale it down even
smaller than the current resolution.

This changes things so that we only apply scaleResolutionDownBy to the
incoming resolution and then take the minimum of the scaled resolution and
the resolution requested by the quality scaler.

--HG--
extra : rebase_source : 1d16ed60b575c48d43e2e1928c518bc197339cbc
2017-08-18 12:11:50 -04:00
Wes Kocher c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Eric Rahm 50513900c7 Bug 1389598 - Part 2: Remove gonk references from media/ r=jesup
--HG--
extra : rebase_source : d1af2d0987038e1c0b0b0c971d0d2e4e9f08364a
2017-08-11 17:46:15 -07:00
Michael Froman cb5753f469 Bug 1390318 - add MID support to webrtc.org. r=drno
MozReview-Commit-ID: EHgEuhw855n

--HG--
extra : rebase_source : 8d575753a628b18472c3acd13ca88f5aa63c16b1
2017-07-27 16:19:56 -05:00
Dan Minor 9f34033ad7 Bug 1387525 - Fix crash in webrtc::NetEqImpl::InsertPacketInternal; r=jesup
The webrtc.org code assumes we will always get a valid decoder for a known payload
type, but this is not true for our builds. This adds a check that we have a valid
decoder before calling IncomingPacket.

MozReview-Commit-ID: GUJR7Qn28vh

--HG--
extra : rebase_source : 6bd5872b59d964c3246708f0e6f549bb74dcc0b3
2017-08-15 08:25:43 -04:00
Randell Jesup e4fdfcbf3b Bug 1390202: Populate temporal_layer_thresholds_bps so we'll send temporal layers in webrtc r=bwc 2017-08-18 00:33:59 -04:00
Henri Sivonen 29fb7aad8e Bug 1378123 - Make inner window track whether there is an active PeerConnection. r=jib
MozReview-Commit-ID: 98Hwhnxtt1T

--HG--
extra : rebase_source : 3d7be906acec0d4262fae15d1755cdb7cfc71eb3
2017-08-04 13:28:15 +03:00
Michael Froman 830c799f81 Bug 1389256 - fix incomplete handling of RepairedRtpStreamId after webrtc.org backport of RtpStreamId. r=bwc
During my backport of RtpStreamId from webrtc.org, I missed a few
places where RepairedRtpStreamId was used or was not completely
implemented.  Also, the webrtc.org code used repairedStreamId,
which is not really correct per the spec (draft-ietf-avtext-rid)
so I fixed all occurances to use the correct repairedRtpStreamId
to avoid confusion later.

The RTP header extensions default IDs for RtpStreamId and
RepairedRtpStreamId were also adjusted to not collide with
PlayoutDelay's default ID.

MozReview-Commit-ID: HSlS8nsKQ29

--HG--
extra : rebase_source : f1bf7fc9ceec22de1c56ef3b7be22fccea01ecdb
2017-07-28 14:52:46 -05:00
Lennart Grahl c2ebc3e45e Bug 979417 - Implement EOR when receiving and explicit EOR when sending on data channels (including DCEP). r=drno,jesup
This allows sending and receiving arbitrarily (we limit to 1 GiB atm) sized
messages while not relying on the deprecated PPID fragmentation/reassembly
mode. The code already supports the ndata extension but it's not activated,
yet. Without the SCTP ndata extension, a large data channel message will
monopolise the SCTP association. While this is a problem, it is a temporary
solution until the extension is being activated. Keep in mind that every
application that uses data channels currently does fragmentation/reassembly on
application-level and it's unlikely that this will change until the popular
implementations (libwebrtc) implement EOR as well. Moreover, until the WebRTC
API specifies an API that hands over partial messages, doing application-level
fragmentation/reassembly is still useful for very large messages (sadly).

We fall back to PPID-based fragmentation/reassembly mode IFF a=max-message-size
is not set in the SDP and the negotiated amount of SCTP inbound streams is
exactly 256. Other implementations should avoid using this combination (to be
precise, other implementations should send a=max-message-size).

It also changes behaviour of RTCDataChannel.send which now raises TypeError in
case the message is too large for the other peer to receive. This is a
necessity to ensure that implementations that do not look at the EOR flag when
receiving are always able to receive our messages. Even if these
implementations do not set a=max-message-size, we use a safe default value (64
KiB, dictated by the spec) that every implementation should be able to receive,
with or without EOR support.

* Due to the use of explicit EOR, this required some major refactoring of all
  send-related and deferred sending functions (which is now a lot less
  complex). There's now only one place where `usrsctp_sendv` is being used.
* All data channel messages and DCEP messages will be sent without copying them
  first. Only in case this fails (e.g. usrsctp's buffer is full), the message
  will be copied and added to a buffer queue.
* Queued data channel messages will now be re-sent fairly (round-robin).
* Maximum message size and the PPID-based fragmentation are configurable using
  about:config (media.peerconnection.sctp.force_ppid_fragmentation and
  media.peerconnection.sctp.force_maximum_message_size).
* Enable interleaving of incoming messages for different streams (preparation
  for SCTP ndata, has no effect until it is enabled).
* Enable interleaving of outgoing messages (disabled if SCTP ndata has not been
  negotiated).
* Add pending messages flag to reduce performance impact from frequent calls to
  SendDeferredMessages.
* Handle partial delivery events (for cases where a partially delivered message
  is being aborted).
* Close a data channel/the connection in case the message is too large to be
  handled (this is only applied in cases where the remote peer ignores our
  announced local maximum message size).
* Various size_t to uint32_t conversions (message length) and back should be
  safe now.
* Remove aUsingDtls/mUsingDtls from DataChannelConnection.
* Set maximum message size in SDP and in the data channel stack.
* Replace implicit NS_ENSURE_*'s with explicit NS_WARN_IF's.
* Add SetMaxMessageSize method for late-applying those signalling parameters
  when a data channel has been created before the remote SDP was available.
* Limit remote maximum message size and add a GetMaxMessageSize method for a
  future implementation of RTCSctpTransport.maxMessageSize.

MozReview-Commit-ID: FlmZrpC5zVI

--HG--
extra : rebase_source : 54e1b838c788a3abbded4fb32fe7c2788f8a9bc0
2017-07-26 13:18:54 +02:00
Wes Kocher cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Sylvestre Ledru d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
Matthew Gregan 2f8cc7804c Bug 1388236 - Remove B2G-only AudioChannel code from MSG. r=padenot 2017-08-10 13:00:08 +12:00
Paul Adenot 09ca1b1297 Bug 1384655 - Remove obsolete latency measuring macros in downstream code we don't use anymore. r=jesup
MozReview-Commit-ID: ARAWGe7yFM4

--HG--
extra : amend_source : b1b3f4f33c9c2b15465ac5670a3639b8527a16a3
2017-08-08 10:00:37 +02:00
Sylvestre Ledru 289b4ecd71 Bug 1387376 - Reserve memory before using push_back with vector r=jesup
MozReview-Commit-ID: CrSFN0Ov1B4

--HG--
extra : rebase_source : 9863893841abcc1c7ef35932160cdbddaa535e45
2017-08-04 21:28:50 +02:00
Makoto Kato d2130a3810 Bug 1386164 - Part 2. Use MOZ_SYSTEM_LIBEVENT for webrtc. r=jesup
GYP of WebRTC should reference MOZ_SYSTEM_LIBEVENT values if available.

MozReview-Commit-ID: CshsPrRidM8

--HG--
extra : rebase_source : 9e619c2f49e7c2b3f680814b95b823996773fa6c
2017-08-03 13:28:25 +09:00
Makoto Kato b2458fa168 Bug 1386164 - Part 1. Use libevent2 headers instead of deprecated event.h. r=jesup
libevent uses event.h header that is fuzzy name.  Since our in-tree libevent is libevent2, we should use libevent2 headers instead of deprecated event.h

MozReview-Commit-ID: 6DjW9JEkNWL

--HG--
extra : rebase_source : b774e177b137bf7427122253a3e4c698689e08a4
2017-08-03 13:22:26 +09:00
Masatoshi Kimura f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Nicholas Nethercote 581214bd8b Bug 1384835 (part 1, attempt 2) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj.
--HG--
extra : rebase_source : fe566945a55c281d8290634a5b55bed19415c839
2017-07-31 10:52:51 +10:00
Sebastian Hengst d7527a414d Backed out changeset 07b534f44740 (bug 1384835) for failing xpcshell's security/manager/ssl/tests/unit/test_cert_sha1.js checkCertErrorGenericAtTime on Linux x64 debug. r=backout 2017-07-28 10:30:29 +02:00
Nicholas Nethercote f314cbcbe5 Bug 1384835 (part 1) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj.
This is basically a cosmetic change; references are the normal way to do string
outparams.

--HG--
extra : rebase_source : ffc5945f269bdcd3d4116755b56713e87a44b6cd
2017-07-25 19:12:56 +10:00
Dan Minor c6d57aa7de Bug 1384874 - Fix build failure on OSX 10.11.6 after Bug 1368030 landed; r=mjf
--HG--
extra : rebase_source : 36569545916cd2a201908ca835efc601ffb49f4d
2017-07-27 09:38:49 -04:00
Dan Minor 460bb5228f Bug 1382681 - Remove java.lang.RuntimeException in VideoCaptureAndroid; r=jesup
There does not seem to be any bad effects from calling stop twice, so just log that
it has happened rather than throwing an exception.

--HG--
extra : rebase_source : 0d92bad7b33010f50f41de8498b8406c3521c9e7
2017-07-25 11:31:26 -04:00
Heiher fa12aab7f8 Bug 1384826 - Media: WebRTC: Fix build config for MIPS. r=jesup 2017-07-26 23:12:00 -04:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Dan Minor 01192ea8bd Bug 1368030 - Fix race condition in ScreenCapturerMac. r=jesup
The race condition is between ~ScreenCapturerMac and the ScreenRefresh and
ScreenUpdateMove callbacks. The destructor calls
UnregisterRefreshAndMoveHandlers but a callback may still occur after the
destruction of the object.

Rather than passing a pointer to ScreenCapturerMac into the callback, this
adds a separate object which keeps a pointer to ScreenCapturerMac guarded
by a CriticalSection. The destructor sets the ScreenCapturerMac to nullptr.
In the next callback, the handler unregisters the callbacks and deletes
the object.

The downside to this approach is that if the ScreenCapturerMac
object is allocated and deallocated before a callback occurs, the memory
for the separate object will be leaked.
2017-07-19 14:49:05 -04:00
Nathan Froyd e1013bf46d Bug 1347963 - part 7 - make ImageContainer use RecursiveMutex; r=kats
Making ImageContainer slightly faster with RecursiveMutex is a good thing.
We need to fix up some cargo-culting of includes along the way, though.
2017-07-04 13:47:42 -04:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00