Commit Graph

5629 Commits

Author SHA1 Message Date
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
Alfredo.Yang
0e22fafb90 Bug 1404182 - add testcase for bug 1380468. r=kinetik
MozReview-Commit-ID: Kg9QeszWnNT

--HG--
extra : rebase_source : 110e38299efadd892ffdc0146f83117981b74f54
2017-09-29 10:55:29 +08: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
Alfredo.Yang
99296b3786 Bug 1388991 - add test case for subtraction underfolw in SampleToChunkIterator. r=kinetik
MozReview-Commit-ID: 8IV0RkDL8r7

--HG--
extra : rebase_source : 196d0af229c3f5181c286999f60c63da5a7ca408
2017-09-28 10:51:18 +08:00
Alfredo.Yang
6b8eff34c3 Bug 1388991 - check subtraction underflow. r=kinetik
MozReview-Commit-ID: DYsqlXyjZs

--HG--
extra : rebase_source : 557265db7fb42fea0b8b9f212c32f854e96a95c7
2017-09-28 10:19:33 +08:00
Alfredo.Yang
b0d7f38b36 Bug 1395244 - add gtest for index out of bounds in rust mp4 parser. r=kinetik
MozReview-Commit-ID: HeFwZgOpMdK

--HG--
extra : rebase_source : 69a011964b7e58ac22adc31ffa99051776a67fe8
2017-09-05 15:13:02 +08: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
Alfredo.Yang
588fc5b9e0 Bug 1389527 - add testcase for invalid sample table. r=kinetik
MozReview-Commit-ID: 5e4oQPLtcuZ

--HG--
extra : rebase_source : 1a3364037f5fe49e732983d95758a2b670667452
2017-09-25 11:16:29 +08:00
Matthew Gregan
6e690e73d3 Bug 1403048 - Update media/audioipc to b5559d28. r=kamidphish
--HG--
extra : rebase_source : aeb3f0b9a45729fa21248983d34ce956e98a9b79
2017-09-26 15:49:26 +13:00
Dan Glastonbury
e0b3ce467e Bug 1399978 - Update cubeb-pulse-rs to git commit 2e22e53. r=kinetik
MozReview-Commit-ID: INksO0nbT1F

--HG--
extra : rebase_source : ea7936f95c44972478878cb54b1e2a83c4fbc4fe
2017-09-25 15:23:30 +10:00
Alfredo.Yang
155d999aa3 Bug 1401071 - move fallible memory allocation github instead of including source and other nits. r=kinetik
MozReview-Commit-ID: 40Yg8wUqZ2g

--HG--
extra : rebase_source : a2c192c06ae85be6e71172702b4bb73eb912fc7b
2017-09-25 09:14:00 +08: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
Wes Kocher
5d514ba8e9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 2XyrMOdIWok
2017-09-20 17:39:08 -07:00
Wes Kocher
a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Dan Minor
55f5ef6e16 Bug 1373843 - Add -fsanitize-coverage to cflags in nicer.gyp; r=posidron
I missed doing this in the original patch because my mozconfig defined the
CFLAGS globally to include -fsanitize-coverage.

MozReview-Commit-ID: 4QdiIgdfAm2

--HG--
extra : rebase_source : bfd1ef5097b91c23913c0349a04154f18f60eef5
2017-09-20 17:05:07 -04:00
Dan Minor
6e7bc1c221 Bug 1373843: Change assertion about message length to error in stun_codec.c; r=drno
MozReview-Commit-ID: 1oUEQk9vg1L

--HG--
extra : rebase_source : 8ca178eb1e356b06b09582e85a0e91a93648b29c
2017-09-19 15:29:22 -04: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
Nils Ohlmeier [:drno]
a8d005b348 Bug 1373843: Add a libfuzzer test for the stun parser; r=decoder
MozReview-Commit-ID: BWUnBIMhT5C

--HG--
extra : rebase_source : 8d8c6de040601621f5f64c8a7cf5a99486ae9879
2017-06-16 16:01:19 -07:00
Jean-Yves Avenard
53ef359a19 Bug 1389304 - Don't include samples that won't be demuxed in range calculation. r=kikuo
Invalid samples with empty content won't ever be demuxed. As such they can't participate in buffered range calculations.

MozReview-Commit-ID: 9LPhyKKMSyM

--HG--
extra : rebase_source : 229f19f08eba6e59b5585699805df9df9fd482b9
2017-09-19 09:11:26 +02: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
Alex Chronopoulos
af3b468649 Bug 1400671 - Update cubeb from upstream to ac532ad. r=kinetik
MozReview-Commit-ID: Ek4onH23hPc
2017-09-18 01:56:08 +03: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
Gregory Szorc
3d5f58d635 Bug 1399878 - Fix case of LOCAL_INCLUDES; r=me
This fixes a typo introduced in 305e742634e5 and that broke
moz.build processing for MacOS.
2017-09-15 14:18:32 -07:00
Ted Mielczarek
0677fcfacf bug 1399878 - Use LOCAL_INCLUDES instead of CFLAGS in some media moz.build files. r=gps
MozReview-Commit-ID: 3PUOniPnt54

--HG--
extra : rebase_source : 01accd7951a4af7018265e91040aa7005b061902
2017-09-14 06:39:27 -04: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
Alex Chronopoulos
fce9feacea Bug 1399905 - Update cubeb from upstream to 09a90a7. r=padenot
MozReview-Commit-ID: JoZj8q2nQPb
2017-09-14 18:35:15 +03:00
Ryan VanderMeulen
277d6a438f Merge m-c to inbound. a=merge 2017-09-14 10:52:18 -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
Alfredo.Yang
71448a61d9 Bug 1389470 - fix for zero size memory leak. r=kinetik
MozReview-Commit-ID: F1hBnukiwKN

--HG--
extra : rebase_source : 1a2c4b32d7990d0483a4a78b29a8cd0c3079c68a
2017-09-14 10:29:43 +08:00
Alfredo.Yang
43be656b03 Bug 1389470 - use fallible memory allocation to avoid OOM. r=kinetik
MozReview-Commit-ID: BvqIe685Rfs

--HG--
extra : rebase_source : b030ba607474a285c8fb50e9198f126c36a011f9
2017-09-13 14:59:45 +08: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
Dan Glastonbury
660a0a0bf8 Bug 1399009 - Update cubeb-pulse-rs to a386d91... r=kinetik
MozReview-Commit-ID: BnJpMCuDPOf

--HG--
extra : rebase_source : 37c652b29cc4732153ab5b8a45c0b02837026282
2017-09-12 15:31:18 +10: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
fab07bc443 Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0

--HG--
extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
2017-05-01 18:12:35 -07: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
James Cheng
7d08d66397 Bug 1398072 - Fix an obvious leak in Cleakey CDM. r=cpearce
MozReview-Commit-ID: Ee9Me0MKpPU

--HG--
extra : rebase_source : 7a779780865ff00eb6154b3b601eed04541b7ac8
2017-09-08 17:34:48 +08:00
Tom Ritter
66e04df56d Bug 1395418 Revert a previous patch that disabled std::thread on MinGW because we didn't have it. Now we do. r=cpearce
MozReview-Commit-ID: 8ah0Unum1f2

--HG--
extra : rebase_source : 7054f778c0b8a2e4a831e379086243433cd219b8
2017-08-30 20:31:01 -05:00
Sebastian Hengst
8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Wes Kocher
a14d71906d Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJ4WkYrJ9g6
2017-09-06 17:24:48 -07:00
Henri Sivonen
1961f9269f Bug 860727 clean-up - Remove mbslen.c/h from the tree. r=bwc
MozReview-Commit-ID: 2sRjpNYX5eA

--HG--
extra : rebase_source : 23b0bf6a5ce470daa7ec5ee951d0cccf43402426
2017-09-06 10:24:54 +03:00
Henri Sivonen
2aa5a465d3 Bug 860727 - Implement UTF-8 code unit counting without setlocale(). r=bwc
Counting the code points in a UTF-8 string is simple enough that that it is
not worthwhile to use the locale-dependent parts of the C standard library
for the task.

MozReview-Commit-ID: 6Tzd5NHub3B

--HG--
extra : rebase_source : d452896317d354ee85c817533cba3116adf5277e
2017-09-05 09:12:02 +03: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
Paul Adenot
133d277e4d Bug 1395393 - Fix bustage on a CLOSED TREE.
MozReview-Commit-ID: BI4fIMikA0J
2017-09-01 18:09:48 +02:00
Paul Adenot
54e3972626 Bug 1395393 - Update libcubeb to 2e5814de. r=achronop
MozReview-Commit-ID: JWDv93mjAAE

--HG--
extra : rebase_source : 170547b55d8b04838523a255502c58991da8ffdb
extra : amend_source : c7f5e99b69e27c40e5fa6ed9054a57dbdf1c2f1c
2017-09-01 17:39:06 +02: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
568bd0f7fc Bug 1349912 Do not use win32 local includes for libstagefright on MinGW build r=froydnj
This duplicates all the win32 includes except pthread.h into a new directory
for MinGW. MinGW needs all the same dummy includes _except_ it needs its
own pthread.h for winpthreads.

MozReview-Commit-ID: AlIvHhFoSIS

--HG--
extra : rebase_source : aba50e79b0be3bc7306bd32b4010076a8ca1184b
2017-08-30 20:39:51 -05: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
Ralph Giles
2b58558fef Bug 1396158 - Remove pocketsphinx. r=kdavis,chmanchester
This was used for speech recognition in b2g builds. It is no longer
enabled by default and the associated interaface code no longer
compiles.

The dom interface code remains, pref'd off. This simply removes
the third-party backend implementation we have in-tree.

MozReview-Commit-ID: Fzwp6Cs9ePE
2017-09-06 08:37: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
Alfredo.Yang
e7cf058cbb Bug 1377278 - accept 'matroska' as webm doctype. r=kinetik
MozReview-Commit-ID: 3SCOrecahPB

--HG--
extra : rebase_source : c94cbc48f0d850f9df19fe4c85066ca594164853
2017-08-29 15:33:26 +08:00
Alfredo.Yang
f683a17096 Bug 1388618 - update mp4 rust parser to fix invalid PSSH box. r=kinetik
MozReview-Commit-ID: FnbgeNiKdR1

--HG--
extra : rebase_source : 0e8a253fee61ca2f96b75066ed5d904716796e36
2017-08-29 10:18:16 +08:00
Tom Ritter
384ce069f0 Bug 1378529 Use the MinGW libaom configuration for MinGW builds on Linux r=rillian
MozReview-Commit-ID: 3Wn4wqH4OzQ

--HG--
extra : rebase_source : d6707934d39ddfb7539629430fc59e6c47263373
2017-08-17 16:42:15 -05: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
Ralph Giles
1b86417339 Bug 1380118 - aom: Record the upstream repo we vendored from. r=froydnj
We've been recording the commit id from the last vendor in
README_MOZILLA inside the various media directories. Since
we now support a --repo switch to pull from forks, record
this info as well, to make it easier to find contiguous
upstream source.

MozReview-Commit-ID: 1RanpkWfAeC

--HG--
extra : rebase_source : b6bd16b56626a871802822385be6f3a24db6cd50
2017-08-14 14:33:55 -07:00
Ralph Giles
6414257e7f Bug 1380118 - Export aom_config.h. r=kinetik
Recent changes made this a public header, so it needs to be
available to callers like AOMDecoder.

MozReview-Commit-ID: KKXcv8bdVYj

--HG--
extra : rebase_source : 87d509a40f3b305e414067af5ed433eef8489fbc
2017-07-11 11:53:10 -07:00
Ralph Giles
0b52422ebc Bug 1380118 - Update aom library. r=kinetik
Vendor upstream commit id f5bdeac22930ff4c6b219be49c843db35970b918
to pick up changes since the last import.

--HG--
extra : rebase_source : 6c03c7fcbffbdcf07b2b2819aee6dade2f0e2a0f
2017-07-10 15:33:39 -07:00
Ralph Giles
c220a88dd3 Bug 1380118 - aom: remove unused option. r=froydnj,kinetik
As far as I can tell, nothing uses the DISABLE_AVX define
when generating the rtcd headers.

MozReview-Commit-ID: Cc5tufOKP63

--HG--
extra : rebase_source : 6e74569759844e2682e3d16c59bfdefc095f8531
2017-08-04 13:05:47 -07:00
Ralph Giles
8d6c3b9a16 Bug 1380118 - aom: Filter out CONFIG_EXT_PARTITION_TYPES. r=froydnj,kinetik
aom_dsp_rtcd_defs.pl checks only whether this key is present
in the config, not whether it is set to true or not. Our script
sets CONFIG_FOO=no for disabled options, while the upstream
build system omits them, resulting in extra symbol declarations
the build will never define.

Work around this by stripping the offending disabled config key
if it is disabled.

MozReview-Commit-ID: IyVDO2G3s3L

--HG--
extra : rebase_source : a1bb8b285f798464b8d8026c0dd4cd85595ae93d
2017-08-11 14:20:11 -07:00
Ralph Giles
a8ba932bc2 Bug 1380118: Make aom_config.asm match upstream. r=froydnj,tjr
Upstream is using a different syntax, which isn't as nice,
but using the same format makes comparison easier.

Also expect yasm for mingw.

MozReview-Commit-ID: 8PvmyB45AOu

--HG--
extra : rebase_source : a330006adc2093c17ab54fd5f6c1bd88ffe41084
2017-08-04 14:29:55 -07:00
Ralph Giles
1720a6f293 Bug 1380118 - aom: add x86-win32-gcc config. r=froydnj,tjr
This resolves some issues with building on mingw.

Thanks to Tom Ritter for help developing this patch.

MozReview-Commit-ID: BmJ5TbQAq17

--HG--
extra : rebase_source : 98791b8aab139601f3df4c457a42590a31eeeaea
2017-07-10 22:32:10 -07:00
Dan Glastonbury
f65b7278f8 Bug 1391523 - P4: Adjust audioipc to refer to in-tree cubeb-rs. r=kamidphish
MozReview-Commit-ID: KN7FLoVsJW5

--HG--
extra : rebase_source : 16a0da033b1dca841bd83843d5a6adfb1189d58e
2017-08-09 17:35:26 +10:00
Dan Glastonbury
637eae2354 Bug 1391523 - P3: Import audioipc crates. r=kamidphish
MozReview-Commit-ID: Ci2xbenAd8i

--HG--
extra : rebase_source : 01325390ea1b8fdd133bf00380f05862d59f8a42
2017-08-10 10:28:26 +10:00
Dan Glastonbury
31051ddd38 Bug 1391523 - P2: Remove cubeb build steps. r=kamidphish
MozReview-Commit-ID: Dt9eV5ONGlI

--HG--
extra : rebase_source : 410548310b3d13193619c72f11b13b5378b283e8
2017-08-09 17:34:41 +10:00
Dan Glastonbury
e7f5a75469 Bug 1391523 - P1: Import of cubeb-rs. r=kamidphish
MozReview-Commit-ID: GoqaGftNNLT

--HG--
extra : rebase_source : 72a601e05f247244e0126ab1094088a7a6f8460f
2017-08-09 13:33:59 +10:00
Alfredo.Yang
9e93aca1e7 Bug 1389299 - use fallible nsTArray to avoid OOM. r=kinetik
MozReview-Commit-ID: 7qFJI1ihgAq

--HG--
extra : rebase_source : 74dd19fa3e8bdc3d3fa4782b3c16c447485ffcb8
2017-08-24 14:54:13 +08:00
Sebastian Hengst
aeacc34883 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6TGQRm8SSk0
2017-08-24 13:28:57 +02:00
Matthew Gregan
bbc0805e28 Bug 1393284 - Update libnestegg to 369d153. r=rillian
From 94bad012a2d4ec824d751c574443e3946187c4ea Mon Sep 17 00:00:00 2001
2017-08-24 16:18:34 +12: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
Alfredo.Yang
87af44d50b Bug 1387739 - update mp4 rust parser for slice boundary checking. r=kinetik
MozReview-Commit-ID: 6fSkadAZb4L

--HG--
extra : rebase_source : 7414577d2621f7a01c27c0dc560323793c5c80ba
2017-08-23 10:09:14 +08:00
Wes Kocher
655a23a70a Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxIXNml1xZW
2017-08-22 17:24:16 -07: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
Jean-Yves Avenard
f24da4cae1 Bug 1347518 - P1. Use SEI recovery point to mark keyframe. r=jesup
Some streams do not include any IDR frames. However, they do include SEI recovery point markers. We use those to mark keyframes.

MozReview-Commit-ID: IHfUx7fEgEJ

--HG--
extra : rebase_source : 807b83c2685d8eadd3066cb0cad916e24315e07f
2017-08-21 18:34:38 +02: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
John Lin
ddd6436e6a Bug 1391556 - fix incorrect out of bound check. r=jwwang
MozReview-Commit-ID: JytNgl6bqCX

--HG--
extra : rebase_source : 53ef9acf40d5c882342488c6ef1abf6bddae0542
2017-08-22 10:06:41 +08: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
Wes Kocher
c1383cebf3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KLrOCT1a7El
2017-08-17 16:23:45 -07:00
Chris Pearce
e95b5d48f4 Bug 1390748 - Remove usage of mozilla::Vector from mp4_demuxer::ByteReader. r=jwwang
It appears to be unused.

MozReview-Commit-ID: 7vVK4PRzaPt

--HG--
extra : rebase_source : 4659a73a3f86121689ae71a6e9d25335d63fcd74
2017-08-16 17:19:58 +12:00
James Cheng
10d6dbd3e6 Bug 1390453 - Don't call VerifyCdmHost_0 in non-official builds. r=cpearce
MozReview-Commit-ID: 3rzMDq0upBm
2017-08-17 14:41:54 -04: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
Carsten "Tomcat" Book
37d90df3b9 Backed out changeset 2674b8eaba32 (bug 1390748)
--HG--
extra : rebase_source : a025f72ae7e4a88a2064dff46002502f17f9e256
2017-08-17 08:35:08 +02:00
Chris Pearce
5b494b1651 Bug 1390748 - Remove usage of mozilla::Vector from mp4_demuxer::ByteReader. r=jwwang
It appears to be unused.

MozReview-Commit-ID: 7vVK4PRzaPt

--HG--
extra : rebase_source : 49bdc1221c0d626c5664ba819bb919c09f4c6568
2017-08-16 17:19:58 +12:00
Phil Ringnalda
38ce1ea2a0 Backed out 10 changesets (bug 1390748) for build bustage
Backed out changeset 02b36ee5fb17 (bug 1390748)
Backed out changeset 84e8bf01c856 (bug 1390748)
Backed out changeset fc8989be30f3 (bug 1390748)
Backed out changeset 14d421ace6cc (bug 1390748)
Backed out changeset 7dadac869038 (bug 1390748)
Backed out changeset 0e77809e7bc2 (bug 1390748)
Backed out changeset bf78a8dce9c5 (bug 1390748)
Backed out changeset 5fa77990472e (bug 1390748)
Backed out changeset 5d3b637d2485 (bug 1390748)
Backed out changeset 634fe076d134 (bug 1390748)

MozReview-Commit-ID: Dxio8vXDCHg
2017-08-16 21:33:10 -07:00
Chris Pearce
4748ebca90 Bug 1390748 - Remove usage of mozilla::Vector from mp4_demuxer::ByteReader. r=jwwang
It appears to be unused.

MozReview-Commit-ID: 7vVK4PRzaPt

--HG--
extra : rebase_source : add4cbdc2355849679447b2e01661859b2ad25f5
2017-08-16 17:19:58 +12:00
Wes Kocher
7921644d1b Merge inbound to central, a=merge
MozReview-Commit-ID: 1DadhJTLBXN
2017-08-15 19:02:51 -07:00
Karl Tomlinson
64c0c31a2d bug 1390286 receive WrapRunnable*() parameters by reference r=jesup
This permits using these functions with non-param types such as AutoTArray.

MozReview-Commit-ID: 3J1bLjgwB9M

--HG--
extra : rebase_source : 897e64b6f1c8d1c8c939a18d2b0813b33bcd8083
2017-08-14 11:33:53 +12:00
Alfredo.Yang
40b0569eb5 Bug 1389470 - reduce table size on 32bit arch to avoid OOM. r=kinetik
MozReview-Commit-ID: C0O7Gnxbocy

--HG--
extra : rebase_source : 6137aae1f8f981f84ea49a5b98adaed50353ff99
2017-08-15 14:58:41 +08: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
Wes Kocher
a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Wes Kocher
5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07: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
Sebastian Hengst
51d351f567 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-10 17:41:11 +02:00
Sylvestre Ledru
756cf62eca Bug 1372839 - SkipString; Exit early if sym is not found r=gerald
MozReview-Commit-ID: GnqPuW8FL5F

--HG--
extra : rebase_source : b3c44c8daecc5341957d5953a525af82afba705a
2017-08-10 09:34:34 +02:00
Sylvestre Ledru
9ce875d87a Bug 1387002 - Replace .size() by .empty() when applicable in gmp r=cpearce
MozReview-Commit-ID: HhYJ6BK4oOG

--HG--
extra : rebase_source : 8177ad33ebafafc27ba2f809743cfd2c223a10d7
2017-08-04 09:09:38 +02: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
Mike Hommey
66d4d80b03 Bug 1388681 - Disable -Wformat-security where -Wformat is disabled. r=bwc
--HG--
extra : rebase_source : b303f70c2900b8dff538083a6b406545170356c2
2017-08-09 18:45:16 +09:00
Matthew Gregan
2f8cc7804c Bug 1388236 - Remove B2G-only AudioChannel code from MSG. r=padenot 2017-08-10 13:00:08 +12:00
Matthew Gregan
b359c3ce6d Bug 1388229 - Update libcubeb to revision d59010139. r=kamidphish 2017-08-10 13:00:07 +12:00
Chris Peterson
801d7c7d38 Bug 1388978 - Suppress some more clang warnings in media/ffvpx. r=rillian
Since I am already poking around in ffvpxcommon.mozbuild's CFLAGS, also suppress these clang -Wvisibility and -Wstring-conversion warnings:

media/ffvpx/libavutil/dummy_funcs.c:83:34 [-Wvisibility] declaration of 'struct AVBufferRef' will not be visible outside of this function
media/ffvpx/libavutil/dummy_funcs.c:83:67 [-Wvisibility] declaration of 'struct AVFrame' will not be visible outside of this function
media/ffvpx/libavutil/utils.c:119:26 [-Wstring-conversion] implicit conversion turns string literal into bool: 'char [19]' to '_Bool'

And remove -Wno-logical-op-parentheses because clang does not currently report any -Wlogical-op-parentheses warnings for ffvpx.

MozReview-Commit-ID: 1kEwEHeD1PC

--HG--
extra : rebase_source : 133fa139f5389467919b88b96b8cbbf632bf002d
2017-08-10 09:55:42 -07:00
Chris Peterson
8107e99d4c Bug 1388978 - Fix -Wunknown-warning-option warnings in media/ffvpx. r=rillian
clang doesn't support gcc warning options -Wdiscarded-qualifiers or -Wmaybe-uninitialized in media/ffvpxcommon.mozbuild (added in bug 1369791), so only suppress those warnings for real gcc.

warning: unknown warning option '-Wno-discarded-qualifiers'; did you mean '-Wno-ignored-qualifiers'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]

MozReview-Commit-ID: JUEqa6AN59x

--HG--
extra : rebase_source : 45e3c43d57e58119170700f7a339d1f2dfacff2c
extra : source : ee4a75aeb3585719700e1700746ce55984eba6fa
2017-07-29 11:05:34 -07: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
Matthew Gregan
b680d61073 Bug 1386957 -Update libcubeb to revision 0e103884. r=achronop
MozReview-Commit-ID: HFkJ6TPLIfv

--HG--
extra : rebase_source : 19225466d283f999a99589f6afba1315dc1ec041
2017-08-03 18:46:49 +12: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
Jan Beich
5c4a94b509 Bug 1385115 - Unbreak build on Tier3 after bug 1382883. r=cpearce
MozReview-Commit-ID: ISTOw1qfxiy

--HG--
extra : rebase_source : 4444849c190f7128d67c53483866ac59c73b2eb9
2017-07-28 11:48:56 +00: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
Alex Chronopoulos
ad2bcf909e Bug 1385481 - Update cubeb from upstream to 42da8d2. r=kinetik
MozReview-Commit-ID: HOrC5Iwd92L
2017-07-29 02:45:33 +03:00
Glenn Randers-Pehrson
8e5226d344 Bug 1377118 - Update in-tree libpng to version 1.6.31. r=jrmuizel
--HG--
extra : rebase_source : 72613717bc7380d217f64ea6ae1191563bdedf4a
2017-07-27 11:42:00 -04: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
Wes Kocher
7dc0b363c1 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1JlPbFMKbJZ
2017-07-27 16:17:40 -07:00
Wes Kocher
7149e44594 Merge autoland to m-c a=merge
MozReview-Commit-ID: 4MCb0ASsMxe
2017-07-27 16:09:49 -07: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
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
Carsten "Tomcat" Book
c4e7d0a39e merge mozilla-central to autoland
--HG--
extra : rebase_source : 0f0f666839de9bee40c2d469fd8dd7e63b266f69
2017-07-27 11:38:15 +02:00
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Alex Chronopoulos
0335e95f16 Bug 1384053 - Update cubeb from upstream to 09aeb59. r=kinetik
MozReview-Commit-ID: KQRqIGv021z

--HG--
extra : rebase_source : e024379549aa71c831a56dc91b41389838970550
2017-07-25 18:00:35 +03:00
Wes Kocher
ad35031103 Merge m-c to inbound, a=merge
MozReview-Commit-ID: LhiAcCiFBus
2017-07-26 18:33:18 -07: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
Carsten "Tomcat" Book
8a74dfa905 Merge mozilla-central to autoland 2017-07-26 11:18:21 +02:00
Jean-Yves Avenard
f1021e0d6d Bug 1384026 - Reduce memory usage. r=gerald
We dynamically allocate the memory we need and abort if OOM.

MozReview-Commit-ID: FMGWbOXoN8P

--HG--
extra : rebase_source : d6a28017b7c261d2c8acf2321cd30266bd8d5a35
2017-07-25 18:36:52 +02:00
Alfredo Yang
925ef43dd9 Bug 1359275 - use get() or get_mut()to avoid out of vector boundary. r=kinetik
MozReview-Commit-ID: J4fO0Ynv4WC

--HG--
extra : rebase_source : bbfe10945a2f00bf9173d3fa2d77bc7d6b2af7f5
2017-07-27 10:31:01 +08:00
Nathan Froyd
ffa6f2f3c0 Bug 1377959 - fix compiler warning about varargs functions; r=jesup 2017-07-25 16:52:56 -04:00
Carsten Book
115784405b Backed out changeset 0a60cc198321 for browser_devices_get_user_media_screen.js | application crashed [@ mozalloc_abort(char const*)] 2017-07-25 17:40:59 +02:00
Dan Minor
6e3ccd3e2a 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
Nicholas Nethercote
ac3e6bddb4 Bug 1382099 - Remove MOZ_WIDGET_GONK from media/, uriloader/, widget, /xpfe/. r=snorp.
--HG--
extra : rebase_source : 75fe5b8320d52c7316ca547f706b64f30250d28c
2017-07-24 10:08:55 +10:00
Sebastian Hengst
f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Wes Kocher
d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher
051dc17e6c Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: GYc8r8gnS0j
2017-07-21 18:12:55 -07:00
Ryan VanderMeulen
f4e3a91992 Merge m-c to inbound. a=merge 2017-07-21 09:40:28 -04:00
Sebastian Hengst
367f0ac5a2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IWRTFZdtzaE
2017-07-21 12:56:44 +02:00
Wes Kocher
61354cf6c0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 9pPsy8McMun
2017-07-21 18:18:35 -07:00
Sylvestre Ledru
7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Michael Froman
ab82f57025 Bug 1383272 - fixing incorrect comparison in RtpStreamId::Parse(...) r=bwc
When adding the length check for parsing RtpStreamId, I incorrectly used
the '<=' operator instead of the '>' operator.

MozReview-Commit-ID: 46XZBqWxkBc

--HG--
extra : rebase_source : 6290aeed489770070308aafacad01ce5b63a60a1
2017-07-21 15:54:11 -05:00
Bevis Tseng
95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08: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
Heiher
fa12aab7f8 Bug 1384826 - Media: WebRTC: Fix build config for MIPS. r=jesup 2017-07-26 23:12:00 -04:00
Chris Pearce
0637427899 Bug 1382883 - Pass paths and open file handles to CDM host binaries on CDM startup. r=gerald
MozReview-Commit-ID: 9IhRqlFrNJf

--HG--
extra : source : de04ea0a90ae935bbc1d0f730332b034b5514f17
extra : intermediate-source : b18daff94ad3d832fcbd601d219c6db2eae46f90
2017-07-27 12:50:46 +12:00
Nils Ohlmeier [:drno]
e49209f98a Bug 1196974: remove mozDontOfferDataChannel from code and test. r=bwc
MozReview-Commit-ID: 1CW3TaSMVZw

--HG--
extra : rebase_source : dc0e069e07d28dc53c4ba57954491bb5a663b518
2017-07-18 14:24:33 +02:00
Nils Ohlmeier [:drno]
b047050729 Bug 1372467 - Stop at end of line after unknown attribute. r=bwc
MozReview-Commit-ID: 5tg6gKbQfHy
2017-06-12 22:45:35 -07:00
Nils Ohlmeier [:drno]
a4ec39d147 Bug 1372383 - Improve SDP parsing. r=bwc
MozReview-Commit-ID: EJOvtMjQsav
2017-06-12 19:36:58 -07:00
Jan-Ivar Bruaroey
5f43d20a48 Bug 1379392 - Avoid double-delete on failure to init VideoCapture module. r=mchiang
MozReview-Commit-ID: I9p2NVzqc8
2017-07-19 16:14:47 -04:00
Ryan VanderMeulen
d229288071 Merge m-c to autoland. a=merge
CLOSED TREE

--HG--
extra : amend_source : 2ab51304cc7df444f22c3aac001a1aba61faee3a
2017-07-21 09:42:41 -04:00
Sylvestre Ledru
8444ac4824 Bug 1383020 - Add braces to avoid some -Wdangling-else warnings r=jesup
ASSERT_NE can be on several lines

MozReview-Commit-ID: 1SfOdXmeXAf

--HG--
extra : rebase_source : cb0126ee0646192e110edb639858dce665acd093
2017-07-21 13:13:42 +02: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
Chris Pearce
c4af620223 Bug 1381720 - Update content_decryption_module.h. r=gerald
Update to chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Includes cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions,
HDCP definitions, and 10 and 12 bit image format definitions.

MozReview-Commit-ID: bYH3OBSzuT

--HG--
extra : rebase_source : cfc291b3452c2154ecd1ca16a2ece0a5a42f0b5e
2017-05-29 17:14:26 +12:00
Michael Froman
cf76a1f916 Bug 1380430 - Backport current webrtc.org RtpHeaderExtension handling changes and RtpStreamId implementation. r=drno
The new RtpHeaderExtension handling works better with variable length
header extensions, and the new RtpStreamId implementation takes
advantage of it.  This is useful to us because we'll be able to add
MID support using the same mechanism.

MozReview-Commit-ID: 5VYQYvhD5gr

--HG--
extra : rebase_source : 900126e0b136343a2767715b12d906b1dbbabe36
2017-07-12 13:44:40 -05:00
Ryan VanderMeulen
a064d6dbfc Merge m-c to inbound. a=merge 2017-07-18 13:00:03 -04:00
Dan Minor
817491807e Bug 1379836 - Fix AEC Logging; r=jesup
This enables apm logging by setting the apm_debug_dump variable in gyp.mozbuild.
Prior to this change, some files were including apm_data_dumper.h with logging
enabled and some were not.

This also removes the AEC* C interface and calls into webrtc::Trace directly.
Whatever historical reasons for having a C interface into these calls no
longer seems to apply. In addition reserving a buffer for the base file name
and then ensuring it was null terminated caused an ASAN "stack-buffer-overflow"
while testing. This was because it was not handling an empty base file
name properly. This would not normally happen if AEC logging was enabled through
about:webrtc, but it still seems safer to use std::string.

MozReview-Commit-ID: Ikz5xO74syA

--HG--
extra : rebase_source : 8e0c59117135fadb75f4a7e6be5588af1404533d
2017-07-12 16:49:15 -04:00
Jean-Yves Avenard
305c960af0 Bug 1379190: P3. Remove omx-plugin 3rd party libs. r=cpearce
They weren't used on android API < 16.

MozReview-Commit-ID: F6WHG9ApGdC

--HG--
extra : rebase_source : be3a222cb27d081b5e73d660602706f226088ffd
2017-07-13 13:04:05 +02:00
Wes Kocher
b1c83de1b7 Backed out 2 changesets (bug 1381720) for linux build failures in content_decryption_module.h a=backout
Backed out changeset e4d9cb334352 (bug 1381720)
Backed out changeset 69f177823866 (bug 1381720)

MozReview-Commit-ID: DctOanJkHh7
2017-07-17 23:21:49 -07:00
Alex Chronopoulos
7712d5e660 Bug 1381015 - Update cubeb from upstream to a329c6a. r=kinetik
MozReview-Commit-ID: Gfutv4Tnvix

--HG--
extra : rebase_source : 219433f6d6008814f8ce2839700a418cf0fda711
2017-07-17 11:48:15 +03:00
Chris Pearce
9901d75b55 Bug 1381720 - Update content_decryption_module.h. r=gerald
Update to chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Includes cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions,
HDCP definitions, and 10 and 12 bit image format definitions.

MozReview-Commit-ID: bYH3OBSzuT

--HG--
extra : rebase_source : d062d233c9a2b59aa5ae5c6e0584ed13b7c83e6e
2017-05-29 17:14:26 +12:00
Alfredo Yang
7c75a615c7 Bug 1379047 - treat JPEG as unknown codec since jpeg video track is not supported. r=kinetik
MozReview-Commit-ID: 1ufVK3uRYY3

--HG--
extra : rebase_source : 2d5133d2e84426c41df5b319ae3fdfa7d8f1ced9
2017-07-11 15:19:44 +08:00
Jean-Yves Avenard
c46ffaa380 Bug 1355048: P8. Implement WebrtcMediaDataDecoderCodec. r=jesup
This provides the abilty to use the PlatformDecoderModule interface, including hardware accelerated ones.

Code is disabled by default via the media.navigator.mediadatadecoder_enabled preference.

MozReview-Commit-ID: 7bWJXEK8CoO

--HG--
extra : rebase_source : df3801c02d3ea6e4c120a4836c4893e18e37d694
2017-07-01 01:51:00 +02:00
Jean-Yves Avenard
3db14f695e Bug 1355048: P7. Use Image's dimensions when available. r=jesup
Do not only rely on the dimensions retrieved via FrameSizeChange. Both the webrtc::VideoFrameBuffer object and layers::Image know about their dimensions.

We still need to keep the FrameSizeChange mechanism so that the attached media element know about its size before a frame is ready to be displayed.
We will revisit this problem later.

Additionally, don't assume that the frame's stride is the same as the frame's width. It may be true with the software decoders currently used, but it's not the norm.

MozReview-Commit-ID: BTY8lImoUbc

--HG--
extra : rebase_source : 83b07fe030bc19de89d5b5cc52a561fcf096be4d
2017-07-01 01:00:19 +02:00
Jean-Yves Avenard
33898e2e5d Bug 1355048: P6. Don't use unnecessary reentrant monitor. r=jesup
The methods using it aren't re-entrant. A mutex will do.

MozReview-Commit-ID: TIAL7Itp5A

--HG--
extra : rebase_source : 28e106b0bd7026a36b746d30b57896a5ed74bfa7
2017-07-01 00:01:55 +02:00
Jean-Yves Avenard
3b995b5876 Bug 1355048: P5. Remove RenderVideoFrame virtual method. r=jesup
It isn't used.
Amend documentation

MozReview-Commit-ID: Bg8rqzL034R

--HG--
extra : rebase_source : fd4edb87f64fb6b19e9bde612535462ad457a1af
2017-06-30 23:59:42 +02:00
Jean-Yves Avenard
7497341e3e Bug 1355048: P4. Remove unnecessary test, and make better use of monitor. r=jesup
MozReview-Commit-ID: F5qu7e6opZX

--HG--
extra : rebase_source : b2caf192904b5ead2a6711615938ce298fa564c0
2017-06-30 23:41:10 +02:00
Jean-Yves Avenard
b5bc435499 Bug 1355048: P3. Remove ImageHandle. r=jesup
This object isn't used and we can use the NativeHandle interface instead to pass this information.

MozReview-Commit-ID: ApMeQfJtZNJ

--HG--
extra : rebase_source : d9ea002a17eb712fb6b9c221739ff4da467fd04f
2017-06-30 20:46:32 +02:00
Jean-Yves Avenard
e24532a226 Bug 1355048: P2. Remove OMX h264 decoder. r=jesup
This platform is no longer support, and it could never have worked anyway.

MozReview-Commit-ID: 8qkVqQB07l8

--HG--
extra : rebase_source : 07d7f87cd133580e5e5461f7910aa848922f973a
2017-06-30 20:31:18 +02:00
Jean-Yves Avenard
ede50177a8 Bug 1355048: P1. Have WebrtcMediaDataDecoder placeholder. r=jesup
The code currently does nothing.

MozReview-Commit-ID: 6C0sLKIoJEV

--HG--
extra : rebase_source : d297494cdb3589e45bcf28b3ee9d5fac9601b200
2017-04-10 20:40:31 +02:00
Alfredo Yang
3c2e8f57fc Bug 1380468 - update rust parser. r=kinetik
MozReview-Commit-ID: CerH4JHFIP

--HG--
extra : rebase_source : 1f73e9cdb59eddbb4d3913186da75ea13c940466
2017-07-14 10:36:11 +08:00
Alfredo Yang
05427db62a Bug 1380468 - don't fallback when table size is too large. r=kinetik
MozReview-Commit-ID: 3oLLtIm8XqO

--HG--
extra : rebase_source : 840fe48d7a3640b30c6def92c0949df4fa2dd207
2017-07-14 10:34:52 +08:00
Wes Kocher
ee45f814bb Merge m-c to autoland, a=merge
MozReview-Commit-ID: GOb2bgdUd36
2017-07-14 17:27:36 -07:00
Andrew McCreight
cf00cf911b Bug 1379786, part 2 - Use nsContentUtils::GetSystemPrincipal in various places. r=mrbkap
MozReview-Commit-ID: KPXAqKeX4gI

--HG--
extra : rebase_source : 44fd734e7c5bbaba48bb25b882acc74cf0b81fb5
2017-07-10 14:24:54 -07:00
Ryan VanderMeulen
019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Andrea Marchesini
50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00