Commit Graph

4107 Commits

Author SHA1 Message Date
Wes Kocher
55d7bfae3f Backed out changesets 8ed054e5853e,d56adef9c8e0,408df9f84697,7092e498ac3a,29dce05596c6,ae1dc75009e7 (bug 1231975) for breaking local mochitests a=backout
MozReview-Commit-ID: 17mJDyZMVju

--HG--
extra : histedit_source : cf965b94d4b36cc1b4ce0a89272f9c355ae1b82e%2C72cefdebce52a0e6653a87dd0ef0a1316fe0ec18
2016-04-27 10:20:42 -07:00
Matthew Gregan
de83009807 Bug 1267513 - Update libnestegg to pick up BlockGroup parsing fixes. r=giles 2016-04-27 15:25:26 +12:00
Yoshi Huang
7ae2e09f40 Bug 1263496 - Part 2: fix for NS_NULLPRINCIPAL_CONTRACTID. r=bholley
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=NS_NULLPRINCIPAL_CONTRACTID&redirect=true
2016-04-27 18:38:03 +08:00
Nils Ohlmeier [:drno]
49438ee761 Bug 1251821: increase UDP socket send buffer on Win 7 r=jdm,jesup
MozReview-Commit-ID: ETkx1Z56bI8

--HG--
extra : rebase_source : c3221aa336beb5fcf450754537a5cd1856357494
2016-04-08 16:51:21 -07:00
Nils Ohlmeier [:drno]
696852ce71 Bug 929977: Add support for RFC 7675 ICE consent freshness. r=bwc,mt
MozReview-Commit-ID: HGRM10L0R3M

--HG--
extra : rebase_source : c50f8665230140096dd163bb5fbb13482a976c91
2016-04-26 13:11:25 -07:00
Byron Campen [:bwc]
475039d8aa Bug 1231975 - Part 5: Fix an intermittent failure caused by the NAT simulator erroneously canceling NR_ASYNC_WAIT_READ. r=drno
MozReview-Commit-ID: HwatO6UaeEX

--HG--
extra : rebase_source : 9ba82ea745c3aa8f4e3c14291aca36d68b775f7e
extra : source : e215c66a184b9424e76892673f2849d3bf262606
2016-04-14 15:33:40 -05:00
Byron Campen [:bwc]
d99ec1f82d Bug 1231975 - Part 4: Add some logging and simplification in TestNrSocket. r=drno
MozReview-Commit-ID: ASbgh62xqQU

--HG--
extra : rebase_source : 162ab84cf48171a818e3aff7c65b4964a4989b05
extra : source : 99b6fffc375214bd061e729ed0462edbaec844ce
2016-04-14 09:24:47 -05:00
Byron Campen [:bwc]
0654267081 Bug 1231975 - Part 3: Break a reference cycle between PendingResolution and DNSRequestChild. r=drno
MozReview-Commit-ID: CS1q6LyUsIe

--HG--
extra : rebase_source : d42f45b1e2bd7b96808ca814d25258904ce6ebfe
extra : source : 68ac205949c9b5d57f85689f660ebf9de119d384
2016-04-07 13:12:54 -05:00
Byron Campen [:bwc]
18f4a13f02 Bug 1231975 - Part 1: Basic audio mochitests for NAT scenarios. r=drno
MozReview-Commit-ID: 1chfSrXeCL1

--HG--
extra : rebase_source : d5fa4d0138112d5932f4db43958b60f1606f0af2
extra : source : 81271ec54981bd4c7b0fa72889ba509e5c434ff4
2016-03-14 13:31:01 -05:00
Byron Campen [:bwc]
903901c97b Bug 1231981 - Part 3: Set up TURN server for webrtc mochitests, when configured to. r=drno
MozReview-Commit-ID: CVbAYPrwpuB

--HG--
extra : rebase_source : 81f06e74ab74558cfba435cac79bc6fee0d7409c
extra : source : 9249495e35aa39f4cf4f5604a9e1b56608c8775a
2016-03-04 15:45:57 -06:00
ctai
4e89100cf8 Bug 1266644 - Rename DOMMediaStream:: CreateXXXStream to DOMMediaStream:: CreateXXXStreamAsInput. r=jesup r=pehrsons
MozReview-Commit-ID: 4X0Q1XuENa4
2016-04-25 11:43:27 +08:00
ctai
8fcb64e480 Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.

--HG--
rename : dom/media/StreamBuffer.cpp => StreamTracks.cpp
rename : dom/media/StreamBuffer.h => StreamTracks.h
2016-01-26 10:49:01 +08:00
Charles Collicutt
5d60c22c60 Bug 1261414 - Don't build libav with sysctl on Unix (it's not used anyway). r=glandium 2016-04-12 13:15:00 +02:00
Jean-Yves Avenard
71b5b956c8 Bug 1264199: [speex] P7. Handle memory allocation failures during initialization. r=kinetik
Fix submitted upstream.

MozReview-Commit-ID: JpHoVKu2S7w

--HG--
extra : rebase_source : 71292f9f45e8a2d7e02e720ce367f291edaf00b8
2016-04-19 14:39:39 +10:00
Matthew Gregan
ff1d7be7b4 Bug 1266623 - Up/down mix WASAPI capture streams when stream formats don't match. r=padenot 2016-04-26 13:31:49 +12:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Carsten "Tomcat" Book
94cebd7b33 Backed out changeset a9fcd0e98cc3 (bug 1231981) 2016-04-25 16:28:53 +02:00
Carsten "Tomcat" Book
42f342e18c Backed out changeset 4cff2bed6747 (bug 1231975) 2016-04-25 16:28:47 +02:00
Carsten "Tomcat" Book
f49979964c Backed out changeset 1913c67263eb (bug 1231975) 2016-04-25 16:28:44 +02:00
Carsten "Tomcat" Book
8353eec0ac Backed out changeset 9d0c273048d6 (bug 1231975) 2016-04-25 16:28:42 +02:00
Carsten "Tomcat" Book
7cc02680ae Backed out changeset b21f8efbd341 (bug 1231975) 2016-04-25 16:28:41 +02:00
Byron Campen [:bwc]
543c799051 Bug 1266468: Respond to STUN requests with 400 if the component is failed. r=drno
MozReview-Commit-ID: 106OvQ7WLvp

--HG--
extra : rebase_source : 797c932080d07ff3d0be2fd20d9082944f1ac51d
2016-04-21 13:00:26 -05:00
Byron Campen [:bwc]
f508596540 Bug 1231975 - Part 5: Fix an intermittent failure caused by the NAT simulator erroneously canceling NR_ASYNC_WAIT_READ. r=drno
MozReview-Commit-ID: HwatO6UaeEX

--HG--
extra : rebase_source : 4fa178e6b2d715d5f7e56e7dd19d607830c31ff7
2016-04-14 15:33:40 -05:00
Byron Campen [:bwc]
4262b60302 Bug 1231975 - Part 4: Add some logging and simplification in TestNrSocket. r=drno
MozReview-Commit-ID: ASbgh62xqQU

--HG--
extra : rebase_source : 3fdcbf69370a69556b6b34d1a9c8c142732e21f8
2016-04-14 09:24:47 -05:00
Byron Campen [:bwc]
fb77b5d2b8 Bug 1231975 - Part 3: Break a reference cycle between PendingResolution and DNSRequestChild. r=drno
MozReview-Commit-ID: CS1q6LyUsIe

--HG--
extra : rebase_source : efc3eb166d01de91c2d628540fda625155d8cd26
2016-04-07 13:12:54 -05:00
Byron Campen [:bwc]
98c17059df Bug 1231975 - Part 1: Basic audio mochitests for NAT scenarios. r=drno
MozReview-Commit-ID: 1chfSrXeCL1

--HG--
extra : rebase_source : 20d6bc3424e433fbc0a98739310598c3c9433c87
2016-03-14 13:31:01 -05:00
Byron Campen [:bwc]
50135632ac Bug 1231981 - Part 3: Set up TURN server for webrtc mochitests, when configured to. r=drno
MozReview-Commit-ID: CVbAYPrwpuB

--HG--
extra : rebase_source : f52583fe21269d4d4214b93315cc75f0535de55d
2016-03-04 15:45:57 -06:00
Michael Froman
7de8875d6b Bug 1264416 - RollbackIceRestart wasn't resetting mIceRestartState. r=drno
MozReview-Commit-ID: BPmHKOCt9Im

--HG--
extra : transplant_source : %D7q%D9%A6%89%8C%B0C%1B%F5%B0%85%0E%C2%B0%03%C9%16u%B6
2016-04-21 00:35:57 -05:00
Jacek Caban
92367ea979 Bug 1244773 - Fixed ffvpx compilation on mingw. r=jya 2016-04-23 14:34:59 +02:00
Nils Ohlmeier [:drno]
9e5040ab92 Bug 1264351: removed hand break which disables ICE TCP on e10s r=jesup
MozReview-Commit-ID: 8Llssz59QwM

--HG--
extra : rebase_source : 0b624b9fc0e758eb7d09084493b4dcfe4ae0a0ec
2016-04-13 10:16:35 -07:00
Alex Chronopoulos
6f159ce8bf Bug 1266753 - Fix mac bustage: use the old enum values, on a CLOSED TREE. r=padenot
MozReview-Commit-ID: 3wr3iTG6IWY
2016-04-22 18:42:11 +02:00
Alex Chronopoulos
a60e62f398 Bug 1266753 - Update cubeb to revision dbdfb to pick up OSX device notification changes. r=padenot
MozReview-Commit-ID: 7N66FmG9P5u
2016-04-22 16:36:39 +02:00
Andreas Pehrson
54d652f0b5 Bug 1266685 - Don't pass too many frames to the MediaPipelineTransmit VideoFrameConverter. r=jesup
MozReview-Commit-ID: 4XwcfBW9nkY

--HG--
extra : rebase_source : 80a61240a214633f1023043b9cc3846df3fc2df9
extra : source : b9e6df3042ec08778f3c5f85d093367f8f9bce52
2016-04-15 16:00:09 +02:00
Chris Peterson
78f3e767ba Bug 1266293 - Remove unnecessary compiler version check and stdint polyfill for MSVS 2010 in webrtc/signaling/. r=drno 2016-04-18 22:51:47 -07:00
Carsten "Tomcat" Book
9d468452aa Backed out changeset a9bfe66b235c (bug 1264199)
--HG--
extra : rebase_source : f8151216bd24997a1f0de70ec515c920151a7dc4
2016-04-21 16:31:52 +02:00
Jean-Yves Avenard
a0ff91528b Bug 1264199: [speex] P7. Handle memory allocation failures during initialization. r=kinetik
Fix submitted upstream.

MozReview-Commit-ID: JpHoVKu2S7w

--HG--
extra : rebase_source : 592c0dcb4e01308116e0ea264a59fe9e592986b3
2016-04-19 14:39:39 +10:00
Wes Kocher
c65b052530 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Aas4kEyBseh
2016-04-20 14:19:25 -07:00
Wes Kocher
e5a7b1fed7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1WOpYvB2IHo
2016-04-20 13:54:50 -07:00
Wes Kocher
b8f98ffe9f Backed out 8 changesets (bug 1264199) for permafailing media mochitests on OSX 10.6 a=backout
Backed out changeset 0f20f2080824 (bug 1264199)
Backed out changeset 90351d2719be (bug 1264199)
Backed out changeset f484b42cbdda (bug 1264199)
Backed out changeset b79b62146120 (bug 1264199)
Backed out changeset f587df589b69 (bug 1264199)
Backed out changeset 02f781a573b4 (bug 1264199)
Backed out changeset d3677ae4c8ec (bug 1264199)
Backed out changeset d08288654ec9 (bug 1264199)

MozReview-Commit-ID: HVtiBSOxf7t
2016-04-20 11:01:36 -07:00
Jean-Yves Avenard
1d8e31734e Bug 1264199: [speex] P7. Handle memory allocation failures during initialization. r=kinetik
Fix submitted upstream.

MozReview-Commit-ID: JpHoVKu2S7w
2016-04-20 15:03:46 +10:00
Benoit Girard
85ba14a3e5 Bug 1263249 - Bubble up unique failureId in GetFeatureStatus. r=mconley,milan
MozReview-Commit-ID: JveFLuIcbaN

--HG--
extra : rebase_source : 3f583b44c30495b237fd263e4818430443bf5513
2016-04-13 17:12:47 -04:00
Andreas Pehrson
34fc67e392 Bug 1246310 - Let MediaPipelineReceive tracks start at 0. r=jesup
We create the tracks with a segment lasting from 0 to current time,
so there's no need to offset them with the same amount again.

MozReview-Commit-ID: DPPgxWM2oeR

--HG--
extra : rebase_source : 585d9bec5a157d05239f572626f98506764dc3f6
extra : source : d22823bbe4816c03bbdb3f2c52e5d2043244d014
2016-04-15 15:59:31 +02:00
Randell Jesup
90f6a18287 Bug 1265641: Move AEC tail length and delay-agnostic settings to getUserMedia r=padenot
MozReview-Commit-ID: 6vHQlmt9lxR
2016-04-19 20:20:45 -04:00
Paul Adenot
f1ecd64200 Bug 1265692 - Update cubeb to 0bc02f9. r=padenot,kinetik
This picks up fixes for:

- bug 1264892
- bug 1265541
- bug 1263514
- bug 1263505

MozReview-Commit-ID: CaNRARFO9UD
2016-04-19 14:02:23 +02:00
Sotaro Ikeda
3b81e9dd7d Bug 1262278 - Rename PlanarYCbCrImage::SetData and PlanarYCbCrImage::SetDataNoCopy r=nical 2016-04-18 20:12:41 -07:00
Nils Ohlmeier [:drno]
3ccfa94608 Bug 1264726: ignore unsupported SDP bandwidth parameters. r=bwc
MozReview-Commit-ID: WIsWIllUph

--HG--
extra : rebase_source : 23e48ad729bb1e5478c23e20ba5139e8d4f444ee
2016-04-15 22:29:26 -07:00
Nils Ohlmeier [:drno]
df7216ecb4 Bug 1259842: allow RFC1918 pairing again r=mjf
MozReview-Commit-ID: 6afbRF64PM2

--HG--
extra : rebase_source : fbdf8db55ed9fb22cf39b375551741a5e75aac14
2016-04-05 17:10:03 -07:00
Paul Adenot
3ef0477eee Bug 1269692 - Update cubeb to revision 17e3048d0afa1152776fb1867cdb61c49fae69e4.
This picks up the fixes for bug 1268675 and bug 1268499, both reviewed by
kinetik.

MozReview-Commit-ID: GLIDQgIGqch
2016-05-03 11:53:19 +02:00
Thomas Zimmermann
4fd6e14941 Bug 1264892: Use system declaration of |__system_property_get| on B2G, r=padenot 2016-04-18 14:32:29 +02:00
Jan Beich
33681ffdb9 Bug 1239550 - Apply bug 1228230 against media/ffvpx. r=glandium,jya
MozReview-Commit-ID: EGLaoJnSaWY

--HG--
extra : rebase_source : cb63892bbe75a6eabbd318d179797218254cf2f1
2016-04-09 10:48:50 +00:00
Randell Jesup
fc63a4eb34 Bug 1263384: validate input frames against configured resolution in vp8 r=rillian
MozReview-Commit-ID: BxDCnJe0mzs
2016-04-15 23:11:01 -04:00
Andreas Pehrson
aed4228f29 Bug 1262970 - Change PRINCIPAL_HANDLE_NONE to a nullptr #define. r=froydnj
MozReview-Commit-ID: A69mWTDTkkP

--HG--
extra : rebase_source : 24c885f5078c723fce709c3d498c39b312c12e39
extra : amend_source : afd886cd8c4264ee152a059fc2feda59220f281a
2016-04-14 11:39:11 +02:00
Jean-Yves Avenard
c2567cb4bd Bug 1264622: [MP4] Resync stagefright's updateAudioTrackInfoFromESDS_MPEG4Audio with upstream. r=kentuckyfriedtakahe
This adds support for parsing AOT audio specific config (which contains extended channels layout).

MozReview-Commit-ID: 7yNGBEAI7sv

--HG--
extra : rebase_source : 6f29c04f1f29785ba097d64df13794f80672fb50
2016-04-14 23:32:40 +10:00
Chris Peterson
4a84eac069 Bug 1264208 - Enable libav assertions. r=jya
--HG--
rename : media/ffvpx/cpu_perms.h => media/ffvpx/libavutil_visibility.h
2016-04-10 22:25:56 -07:00
Michael Froman
eeafb75c78 Bug 1264344 - Don't restart ICE on first CreateOffer call if iceRestart option is true. r=bwc
MozReview-Commit-ID: 18qpyjAo0By

--HG--
extra : rebase_source : 172dcd1dfe95bdad684a4ce9a352183f2e77bafc
2016-04-13 11:41:05 -05:00
Paul Adenot
c769964bb2 Bug 1264594 - Update libcubeb to revision 727121. r=kinetik
MozReview-Commit-ID: 26uBiAvDcFy
2016-04-14 12:33:18 +02:00
Randell Jesup
cb5f591b1b Bug 1263735: Update libcubeb to remove wasapi stubbing for enumeration r=kinetik
Also removes two spurious includes that were landed as possible bustage fixes in mozilla

MozReview-Commit-ID: 5PIxLpEAFmI
2016-04-11 17:19:46 -04:00
Michael Froman
438bea1ee6 Bug 906986 - Rework rollback/finalize to include a committed state. r=bwc, r=drno
MozReview-Commit-ID: z7uEn5xEBf

--HG--
extra : rebase_source : 18565a3c49045af9445a93de8753110169caf465
2016-04-05 20:12:04 -05:00
Michael Froman
e2e642f12e Bug 906986 - Ice restart and tests. r=bwc, r=drno, r=smaug
MozReview-Commit-ID: AMEi7SZebBG
MozReview-Commit-ID: GS2EkamNGc7

--HG--
extra : rebase_source : f715bc837331028f6b5e22820c530e34ca5bedb8
2016-04-08 09:20:53 -05:00
Michael Froman
3afe176e86 Bug 906986 - Wrap NrIceCtx in NrIceCtxHandler which will allow us to handle ice restart. r=bwc, r=drno
MozReview-Commit-ID: 8MEfEBf2Pvi

--HG--
extra : rebase_source : ca23f499f155593e0601f918ab16ee38fae35f42
2016-03-31 14:12:19 -05:00
Michael Froman
ae71fe6a8c Bug 906986 - Genericize some of the test setup and improve logging. r=bwc, r=drno
MozReview-Commit-ID: 7HddAbcncFC

--HG--
extra : rebase_source : fd418ab3493011f25ed8aaaea50549474d29108b
2016-03-31 11:31:58 -05:00
Michael Froman
d4c059685e Bug 906986 - Use the streams from the ice_ctx, don't hold a separate set. r=bwc, r=drno
MozReview-Commit-ID: FwomOrICh70

--HG--
extra : rebase_source : bdb08ab1cb8e6c5779171e30aecb282bd5e30e24
2016-03-31 10:17:28 -05:00
Michael Froman
ac55e03a26 Bug 906986 - Rework fix for Bug 1241690 to avoid reliance on NrIceCtx inside NrIceMediaStream. r=bwc, r=drno
MozReview-Commit-ID: 1QCfbZUGdwM

--HG--
extra : rebase_source : e47546e226839410b65013c66eab53b0212e86fe
2016-03-31 09:24:17 -05:00
Michael Froman
04ec3df956 Bug 906986 - Disable TestSrflxCandPairingFilter until bug 1226838 is fixed. r=bwc, r=drno
MozReview-Commit-ID: 5QFUeqDG4dh

--HG--
extra : rebase_source : a7c3f93e33072d0645339a6a169d49a9f58b04f2
2016-03-31 09:16:23 -05:00
Nils Ohlmeier [:drno]
4d0aaaafea Bug 1244926: added TCP socket filter to only allow outgoing STUN. r=jesup
MozReview-Commit-ID: 8PpL6Z0za71

--HG--
rename : media/mtransport/stun_udp_socket_filter.cpp => media/mtransport/stun_socket_filter.cpp
rename : media/mtransport/stun_udp_socket_filter.h => media/mtransport/stun_socket_filter.h
rename : netwerk/base/nsIUDPSocketFilter.idl => netwerk/base/nsISocketFilter.idl
extra : rebase_source : 2acf092e587a19a2019f463fa0a015373d3881d3
2016-02-11 01:18:46 -08:00
Ralph Giles
2a3fb1bc74 Bug 1262637 - Remove rust mp4parse sse2 check. r=ajones
This reverts bug 1255869 which added a runtime check for sse2
support to work around sse2 instructions in the rust standard
library targeting i686-pc-windows-msvc.

We now make official builds against i586-pc-windows-msvc which
should omit the sse2 instructions which aren't supported for
all our current users.
2016-04-06 15:30:00 -07:00
Andreas Pehrson
92b0ad8df1 Bug 1248154 - Default to 0x0 frame size before receiving any frames. r=pkerr
MozReview-Commit-ID: 50et98ezPvV

--HG--
extra : rebase_source : c51bf77774e2d088ca8613b9b661d66133e9bb9b
2016-04-07 17:50:53 +02:00
Andreas Pehrson
a64c4b22bd Bug 1208371 - Do image format conversion async in MediaPipeline. r=jesup
This is necessary since frame conversion could stall the MediaStreamGraph,
causing delay buildups and other junk.

This passes frames to a TaskQueue that converts on its own thread pool and
passes them on to VideoConduit when converted.

If the TaskQueue already has some buffered tasks (3 for now) we will drop new
frames coming in.

MozReview-Commit-ID: FXQyN0LecrX

--HG--
extra : rebase_source : 235789ba34608071e1934215f730e9b3493051a0
2016-03-18 11:01:26 +01:00
Andreas Pehrson
3693b06c8b Bug 1208371 - Update sink identity after adding track. r=mt
MozReview-Commit-ID: HL4YvBe3SuN

--HG--
extra : rebase_source : 50fde927644202fee6f7d08cbf5b0efaba3e75d8
2016-03-14 11:53:21 +01:00
Andreas Pehrson
3f68d5c8e1 Bug 1208371 - Don't treat audio chunks as mutable in MediaPipeline. r=padenot
MozReview-Commit-ID: 26VPBK2WOsB

--HG--
extra : rebase_source : e66f941c8ea41af28245991e2daeeb76ca4dea47
2016-03-10 15:36:10 +01:00
Andreas Pehrson
056ff9c9d0 Bug 1208371 - Never send more than one disabled frame in a row to the WebRTC encoder. r=jesup
MozReview-Commit-ID: 1F7zjGz32ad

--HG--
extra : rebase_source : 57a55bdaaa24b62654f2c4c78ffb038085fbd1b9
2016-03-10 14:35:50 +01:00
Andreas Pehrson
785d6859a4 Bug 1208371 - Forward declare MediaStreamGraph classes in MediaPipeline.h. r=bwc
MozReview-Commit-ID: DsDHelzMsz0

--HG--
extra : rebase_source : b83f9298795de1ae803930f17df4ba18f00e8425
2016-01-26 16:19:08 +08:00
Andreas Pehrson
ee5913bb8b Bug 1208371 - Move MediaStreamTrack's label to MediaStreamTrackSource. r=jib
MozReview-Commit-ID: Aj7Cht4zxc6

--HG--
extra : rebase_source : c454a9f2b81a6a1eb574c1abee0fab64abbe5b72
2016-01-22 16:27:37 +08:00
Andreas Pehrson
3d73308fdd Bug 1208371 - Clean up unnecessary virtuals in MediaPipeline. r=bwc
MozReview-Commit-ID: 1XTgE5oSdAs

--HG--
extra : rebase_source : f285efd02d8f409bc5c97cc9750b832f073944c0
2016-01-22 11:34:15 +08:00
Andreas Pehrson
ae216eef78 Bug 1208371 - Forward declare MediaStreamTrack in MediaPipeline.h. r=bwc
MozReview-Commit-ID: C6PCMIEJVQD

--HG--
extra : rebase_source : 616306c7cd1f773bc31a3fbe24c32d56961b4b90
2016-01-22 11:33:43 +08:00
Andreas Pehrson
b631e13d54 Bug 1208371 - Hook up MediaPipeline with PrincipalHandle. r=mt,bwc
MozReview-Commit-ID: DLyLZu7kC3p

--HG--
extra : rebase_source : 839de544b55fb98e610fec04d45551249d1af57b
2016-03-03 17:30:39 +01:00
Andreas Pehrson
be74876e25 Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup
PrincipalHandle is a thread safe pointer to a holder of (the main-thread-only
nsIPrincipal) that can be passed around the MSG.

A MediaStreamTrack whose source has just updated its principal, sets the new
principal aside (as its "pending principal"), and combines the new principal
into its current principal.

Then the source starts passing the new principal to the MediaStreamGraph as
a PrincipalHandle.

Changes to a track's PrincipalHandle on the MSG will be surfaced through the
MediaStreamTrackListener API. These changes are dispatched to main thread
and compared to a MediaStreamTrack's pending principal. In case of a match
the track knows the correct principal is flowing and can move the pending
principal to be the current principal and update any main thread principal
observers.

MozReview-Commit-ID: D0JXGWhQFFU

--HG--
extra : rebase_source : 296e269bb46fc5a85a9c3f90dfc0dc40e53572bc
2016-04-06 14:56:44 +02:00
Andreas Pehrson
2fb962f7fd Bug 1208371 - Let PeerConnection consume principals from tracks instead of streams. r=mt
MozReview-Commit-ID: 4kp8wTFohxZ

--HG--
extra : rebase_source : 02cc59262bd2574686d5bb41b49768814afd52b7
2016-03-10 17:35:35 +01:00
Andreas Pehrson
f1662d16c9 Bug 1208371 - Switch MediaPipeline to use direct listeners on tracks. r=jesup,bwc
MozReview-Commit-ID: BSSfkTwXoVN

--HG--
extra : rebase_source : 8f001d4513062bb426f0a18670a3692ecf737a52
2016-03-18 14:21:51 +01:00
Andreas Pehrson
cee42d7c20 Bug 1208371 - Move PeerConnection to use PeerIdentity on MediaStreamTrack. r=mt
MozReview-Commit-ID: ILNizs4dzmx

--HG--
extra : rebase_source : f0a6aa81a6b04e2db6c8bc746fe19c2ba92e18b4
2016-01-05 10:16:29 +08:00
Andreas Pehrson
eb7cd31741 Bug 1208371 - Make PeerIdentity RefCounted. r=mt
This so it can be shared between multiple tracks.

MozReview-Commit-ID: 3mjQImVY0f8

--HG--
extra : rebase_source : 9c8d11bb38e06a2cf5f7bf1c24ca657e28387682
2016-01-05 10:16:28 +08:00
Andreas Pehrson
0decc9b8a0 Bug 1208371 - Resolve ambiguous symbol MediaStreamTrack. r=bwc
MozReview-Commit-ID: KaFvTMxOiJQ

--HG--
extra : rebase_source : 1d85778755647cd4757b309634257b6d6d32f120
2016-01-05 10:16:27 +08:00
Andreas Pehrson
a47ce20618 Bug 1208371 - Rename CreateOwnDOMTrack/CreateClonedDOMTrack to CreateDOMTrack/CloneDOMTrack. r=jib
MozReview-Commit-ID: DOGiwcYycJY

--HG--
extra : rebase_source : 197fc7a7c5d36200f987c38f26ab77ec8ea2d290
2016-01-05 10:16:26 +08:00
Andreas Pehrson
0396985d77 Bug 1208371 - Route ApplyConstraints through MediaStreamTrackSource. r=jib
MozReview-Commit-ID: CnJnxszKU4o

--HG--
extra : rebase_source : f5ef65897108b3feadd51b8b11a47f65a7a71ff1
2016-02-01 22:43:38 +08:00
Andreas Pehrson
5f32f21927 Bug 1208371 - Remove MediaStreamTrack::GetStream. r=jib
MozReview-Commit-ID: GP0Mo3CZZ8E

--HG--
extra : rebase_source : 196b149a180e033e021366790bf662037c4ec89f
2016-02-01 22:48:05 +08:00
Andreas Pehrson
84740b0197 Bug 1208371 - Make it possible to look up stream id by track in PeerConnectionImpl. r=jib
This attempts to get rid of uses of MediaStreamTrack::GetStream() in
PeerConnectionImpl but does unfortunately not go all the way. There's
still a use case in ReplaceTrack() so we handle it for now by making
PeerConnectionImpl a friend of MediaStreamTrack.

MozReview-Commit-ID: K4sKjWqjOSI

--HG--
extra : rebase_source : 913e7280151a275c8866ff44fa1886d8e2dc6660
2016-01-15 12:48:51 +08:00
Andreas Pehrson
4ce83c6b90 Bug 1208371 - Make PeerConnectionImpl pass its principal to MediaStreamTrack through a new RemoteTrackSource. r=mt
MozReview-Commit-ID: BxjQCHnmbDd

--HG--
extra : rebase_source : 475db7268fcb7b377c942c0999ab02967aa8a606
2016-01-14 21:07:12 +08:00
Andreas Pehrson
7d39fb28c3 Bug 1208371 - Break PCImpl::SetRemoteDescription into smaller pieces. r=mt,bwc
MozReview-Commit-ID: KzhcdLv4uen

--HG--
extra : rebase_source : 89177bd030e32206f67b617023846c43da6740c3
2016-01-22 14:38:50 +08:00
Andreas Pehrson
5cc032f3e6 Bug 1208371 - Turn DOMMediaStream::PrincipalChangeObserver into PrincipalChangeObserver<DOMMediaStream>. r=mt
MozReview-Commit-ID: JkBUEGdavZX

--HG--
extra : rebase_source : aca48148a30fc16db6a6435c592480a61174d96b
2016-01-22 12:10:41 +08:00
Andreas Pehrson
f52f9b9310 Bug 1208371 - Add convenience method for checking if TrackID is explicit. r=roc
MozReview-Commit-ID: 330Fk17FJD4

--HG--
extra : rebase_source : 27395cdf427e6096f90097c1502b7930162d2c3e
2016-01-05 10:16:22 +08:00
Andreas Pehrson
9899305f28 Bug 1208371 - Add a MediaStreamTrackSource interface. r=roc
This lets a MediaStreamTrack communicate with its source/producer on the
main thread. It's for now used for stopping a track at the source and
retrieving some metadata, but it could also be a link between actual
sinks of a track and the source, to for instance let the source optimize
by scaling down the resolution when all sinks want lowres-video.

MozReview-Commit-ID: D4SJLr0aqhJ

--HG--
extra : rebase_source : ea511b5c86ca4836bfa980825f04617fef498261
2016-04-06 14:46:56 +02:00
Andreas Pehrson
88628853b2 Bug 1208371 - Move OnTracksAvailableCallback out of DOMMediaStream. r=roc
So it can be forward declared.

MozReview-Commit-ID: 4RH7p8AzO84

--HG--
extra : rebase_source : e9c4ef72029de4ed09dca3b51ba2b46829f41d14
2016-01-05 10:16:21 +08:00
bechen
fd7bde80bb Bug 1215115 - part2: Mux opus into webm, remove bitdepth. r=rillian
MozReview-Commit-ID: 7D74vONbkFP

--HG--
extra : transplant_source : 2%AA%C8%F34%1E%CF%3C%9B%88%AC%AD%9F-%DC%7C%FE%B1m%5D
2016-04-01 11:04:00 +08:00
Makoto Kato
933513d8df Bug 1262335 - Part 4. Remove Android GB/HC OMX code. r=snorp
MozReview-Commit-ID: 4mkPBNXG6Jl

--HG--
extra : rebase_source : c186dc855cc1dc2bbb731a7b05fa52aca5beb169
2016-04-06 17:31:13 +09:00
Makoto Kato
daa228c32b Bug 1262335 - Part 2. Remove Android GB/HC defines from OMX. r=snorp
MozReview-Commit-ID: HKbYZXftKBc

--HG--
extra : rebase_source : ac07306100914857848ca58714a517c4069711da
2016-04-06 17:30:17 +09:00
Nico Grunbaum
f5e5add0aa Bug 1260784 - fix Stop Debug Mode button r=jesup
MozReview-Commit-ID: JHt5jWaY4xK
2016-03-30 09:12:15 -07:00
Nathan Froyd
d7dfb00a02 Bug 1261116 - only compile libcubeb's test_resampler if PulseAudio is enabled; r=kinetik 2016-03-31 13:06:04 -04:00
Jan-Ivar Bruaroey
aa408de276 Bug 1254187: Fix maxBitrate to respect simulcast. r=jesup
MozReview-Commit-ID: 51dz5y0q6qQ

--HG--
extra : rebase_source : 2b25f67832214cc9f6f816e9a70c119329a7b083
2016-04-01 15:10:47 -05:00
Byron Campen [:bwc]
7325e61fd6 Bug 1258753: Base candidate pair priority on controlling/controlled. r=drno
MozReview-Commit-ID: 6RAFaAtBbJq

--HG--
extra : rebase_source : 976b63d44fc7c50efa8f40b067cf45b56c66ed09
extra : source : 7b6263bcd3d7e9148914f5aaace10fc69ea0395d
2016-03-22 12:22:56 -05:00
Mike Hommey
d06322ac66 Bug 1257888 - Link chromium mutex-based atomics implementation to webrtc signaling tests. r=froydnj 2016-03-30 07:21:07 +09:00
Randell Jesup
bbbc6476fd Bug 1256430: start AEC log independently of webrtc TRACE r=jesup,pkerr 2016-03-29 11:32:54 -04:00
Nicholas Nethercote
ea9bc73f05 Bug 1254780 (attempt 2) - Shrink log_types from 1024 entries to 16. r=ekr.
MozReview-Commit-ID: KWrOTuTlt6H

--HG--
extra : rebase_source : 36ec95f4584ea0d67286e9956456dffbe5294401
2016-03-11 10:06:32 +11:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Randell Jesup
e8ac0554c8 Bug 1251502: _XOPEN_SOURCE level fix rs=bustage
on a CLOSED TREE

MozReview-Commit-ID: JUCRshXkC83
2016-03-27 19:06:37 -04:00
Randell Jesup
21d6b08430 Bug 1251502: include bustage fix rs=bustage
MozReview-Commit-ID: HTnSyDGKddY
2016-03-27 17:32:33 -04:00
Alex Chronopoulos
8747368bb1 Bug 1251502 - Add a duplex AudioUnit implementation. r=kinetik,padenot
MozReview-Commit-ID: Fbx9Qlsc50j
2016-03-25 17:44:37 +01:00
Paul Adenot
aba1a5fcce Bug 1251502 - Add a generic duplex resampler and a duplex WASAPI implementation. r=kinetik
This also imports various other commits from cubeb.

MozReview-Commit-ID: 4oUwHR8EUvd
2016-03-25 17:44:02 +01:00
Alex Chronopoulos
15a8cce414 Bug 1251502 - Update cubeb's udpate.sh script to account for new files. r=kinetik
MozReview-Commit-ID: 6sA4rvsoczP
2016-03-25 17:43:02 +01:00
Alex Chronopoulos
97cb78e3ec Bug 1251502 - Update moz.build for cubeb tests. r=kinetik
MozReview-Commit-ID: DBUde7unwfL
2016-03-25 17:42:44 +01:00
Alex Chronopoulos
f8e11f59de Bug 1251502 - Compile the resampling code in cubeb for OSX and Linux. r=kinetik
MozReview-Commit-ID: FqDBIojiAuF
2016-03-25 17:42:30 +01:00
Alex Chronopoulos
8c04e867b0 Bug 1251502 - cubeb does not use cubeb-stdint.h anymore, remove it from moz.build. r=kinetik
MozReview-Commit-ID: AzEmEec1jS
2016-03-25 17:42:10 +01:00
Byron Campen [:bwc]
6765c70f22 Bug 933986. Switch over from index to an id, and ensure uniqueness when feeding into the candidate priority calculation. r=drno
MozReview-Commit-ID: 5LOQJbsnEWN

--HG--
extra : rebase_source : 644695f73f316fa8e71e410442f3796822e3255a
2013-11-04 16:50:10 -08:00
Wes Kocher
739bbe42b0 Backed out changeset 5d1c109f708b (bug 1256430) for android build bustage CLOSED TREE
MozReview-Commit-ID: dVx9S3N7y5

--HG--
extra : amend_source : e68b76d577c0d8c3b6228782c9d937c6facd2417
2016-03-25 11:56:52 -07:00
[:ng]
8e69ead3a7 Bug 1256430: start AEC log independently of webrtc TRACE; r=pkerr
MozReview-Commit-ID: 9TlmjwjKXIL
2016-03-20 16:51:45 -07:00
Byron Campen [:bwc]
03253b8221 Bug 1256720: Remove a bad assertion, and simplify some code. r=drno
MozReview-Commit-ID: 3h52q8Wrp8R

--HG--
extra : rebase_source : a1cf4d7fa29e4ed7bb6a1f5be19d1b2af2ef5316
2016-03-24 15:05:53 -05:00
Jan-Ivar Bruaroey
9ff449087b Bug 1259236 - throw NotSupportedError on pc.addTrack of track in constructed stream. r=bwc
MozReview-Commit-ID: LBP9CybRmrI

--HG--
extra : rebase_source : f9deb3cca7e891562a3cbe5766f027dabcdf6ed9
2016-03-24 12:45:22 -04:00
Sebastian Hengst
4029855eed Backed out changeset e139011ede5b (bug 1254780) for crashes in mozilla::gfx::Log<1,mozilla::gfx::CriticalLogger>::WriteLog on Windows 7 debug. r=backout 2016-03-24 10:52:52 +01:00
Nicholas Nethercote
d6246f169d Bug 1254780 - Shrink log_types from 1024 entries to 16. r=ekr.
--HG--
extra : rebase_source : 7cc7a749b080fb3e35c9b8cf285ff88738ef3234
2016-03-11 10:06:32 +11:00
Gregory Szorc
6a9168778b Bug 1124033 - Disable C4311 and C4312 in directories exhibiting warnings; r=ehsan
There are a long tail of C4311 and C4312 warnings in VS2015. Rather than
wait until all of them are fixed to land VS2015, we're taking the easy
way out and disabling these warnings in every directory currently
exhibiting a warning. This is evil. But it is a lesser evil than
globally disabling C4311 and C4312. At least with this approach new
C4311 and C4312 warnings in directories that aren't suppressing them
shouldn't be introduced.

MozReview-Commit-ID: 2cwWrjMD6B9

--HG--
extra : rebase_source : 3e7b8ea042765fdf138f5ca93a0f9dab75a95fcd
2016-03-23 17:19:20 -07:00
Trevor Saunders
b744ac7d84 bug 1250492 - include sstream in SdpMediaSection.h instead of iostream r=jesup
It gets rid of a couple static constructors, and should make the build slightly
faster since we compile less code.
2016-03-23 09:26:01 -04:00
Trevor Saunders
4b87a31ba8 bug 1250492 - use tl::Max instead of std::max to get rid of a static constructor r=jesup
std::max is only constexpr in c++14 and >, but we build as c++11 so
initializing a constant with std::max ends up with a static constructor.
Fortunately we have tl::Max around which forces evaluation of the math at
compile time.
2016-03-23 09:25:48 -04:00
Matthew Gregan
358dd6f8a1 Bug 1257699 - Update in-tree libnestegg. r=giles 2016-03-23 13:47:14 +13:00
Randell Jesup
6f22cfc9fb Bug 1247574: Force webrtc audio input processing to resample to target rate to fix 16KHz mics. r=padenot
MozReview-Commit-ID: BBZcX03Z6Kn
2016-03-19 16:05:13 -04:00
Ralph Giles
484761817e Bug 1255866 - stagefright: Fix unused variable warnings. r=ajones
MozReview-Commit-ID: 7UwVTewfYde
2016-03-21 14:20:43 -07:00
Byron Campen [:bwc]
1327e24325 Bug 1256750: Remove unnecessary sscanf_s parameter on windows, and fix format string everywhere else. r=jesup
MozReview-Commit-ID: 3YFhTbGg5ec

--HG--
extra : rebase_source : 5a7de94ed893d9434b6195f029d7c634c9f848a0
2016-03-15 14:10:28 -05:00
Randell Jesup
d6e073cec4 Bug 1254876: assert windows recording is shut down r=pkerr 2016-03-21 02:57:13 -04:00
Byron Campen [:bwc]
02772181cb Bug 1257472: Forgive rport of 0. r=drno,ekr
MozReview-Commit-ID: 12YyYqrt3wR

--HG--
extra : rebase_source : b3e8397a0c29f8a9d354e4081fcf76e103fd11d8
2016-03-17 10:50:33 -05:00
Randell Jesup
9865e1f013 Bug 1257616: We can release Conduits immediately if we're on MainThread already r=drno 2016-03-17 20:45:09 -04:00
Jacek Caban
01fffbb313 Bug 1257270 - Use std::nullptr_t instead of nullptr_t in WMFUtils.h. r=cpearce 2016-03-17 10:39:46 +01:00
Martin Thomson
7d88785757 Bug 1251822 - Disable ChaCha20Poly1305 for unit tests that check cipher suite, r=ekr
MozReview-Commit-ID: H7IW0iOTAzx

--HG--
extra : rebase_source : 7d637e24ea89c0d070fbe0511dd445f8d11e51f6
2016-03-16 17:52:49 +11:00
Jean-Yves Avenard
aa950b3d46 Bug 1232313: [mp4] Use cumulative decode time if tfdt box is not present. r=kentuckyfriedtakahe
Per ISO 14496-12, the Track fragment decode time (tfdt) is optional.

MozReview-Commit-ID: LNrMPYlkDvt

--HG--
extra : rebase_source : fbacde893352db9248a3ebe6a62b2042eb3106b6
2016-03-16 18:58:48 +11:00
Jean-Yves Avenard
c2467e583e Bug 1254721: Ensure consistency between Cenc offsets and sizes table. r=gerald
MozReview-Commit-ID: E1KbKIIBR87
2016-03-16 16:59:05 +11:00
Jean-Yves Avenard
e9909fb19d Bug 1254731: [mp4] P2. Remove unused parsing of creation date. r=gerald
We just don't care about it in our use.
Additionally, gmtime and strftime are not thread safe at all (they use global static internally)

MozReview-Commit-ID: HfRpCyx4MpK
2016-03-16 16:56:27 +11:00
Jean-Yves Avenard
4ca801910c Bug 1254731: P1. Check for overflow and that conversion succeeded. r=gerald
MozReview-Commit-ID: Cs33P9QyP2V
2016-03-16 16:56:27 +11:00
Nils Ohlmeier [:drno]
eca4273031 Bug 1233181: improve misleading log message about missing STUN & TURN servers. r?=mjf
MozReview-Commit-ID: sQzU9u96yP

--HG--
extra : rebase_source : 9a5d3198ee4d52fab556d2eace08aa41ea75cf5a
2015-12-16 12:00:27 -08:00
Mike Shal
f33175df08 Bug 1254950 - Remove several media Makefile.ins; r=ted
MozReview-Commit-ID: 4dvngHQnH0b
2016-03-14 18:02:02 -04:00
Nicholas Nethercote
3101dc7152 Bug 820972 - Comment out colorTable[] because we don't need it. r=jesup.
This saves 64 KiB of static data.
2016-03-11 12:41:30 +11:00
Ralph Giles
2c98c3b096 Bug 1255869 - Don't call into mp4parse-rust on machines without sse2. r=kinetik
Work around sse2 instructions in the rust standard library
built for the i686-pc-windows-msvc target. We disable
sse2 code generation for our own code.

MozReview-Commit-ID: F6n0CmBd8dQ
2016-03-11 11:48:00 +13:00
Mike Hommey
d464f29e5f Bug 1255813 - Remove build system support for Solaris, HPUX and AIX. r=ted 2016-03-15 07:34:50 +09:00
Ted Mielczarek
68bd5e8c4d bug 1244743 - Replace MOZ_NATIVE_X with MOZ_SYSTEM_X. r=gps
MozReview-Commit-ID: 9ip3qeAXFEe

--HG--
extra : commitid : H6aEkHprVyX
extra : rebase_source : e20d5f4b297caf66711c72cd55dd76f7f9ef9d9c
extra : histedit_source : 47545e0ea61eb66f16545f70e6d3792a389bedb1
2016-02-01 10:49:34 -05:00
Ted Mielczarek
86995dd661 bug 1248020 - convert a bunch of moz.build files to use USE_YASM. r=mshal
MozReview-Commit-ID: n59TejhJq6

--HG--
extra : rebase_source : a5fd47c48ae4f03fcd2b699d7283a8838d24449c
extra : amend_source : cdd00e6f76195956dd83f8a2e3109d453459d158
extra : histedit_source : 4e36a2c2ff01a2cb352a46b2f4d9062f14be5232
2016-03-03 11:38:59 -05:00
Ted Mielczarek
5c634ab869 bug 1248016 - make ASFILES rules work with .s/.asm, get rid of ASM_SUFFIX. r=mshal
MozReview-Commit-ID: 1MK0Kud51vR

--HG--
extra : rebase_source : de7a7f11bfbbac1e8eccc34de39dd2d88d803b03
extra : amend_source : d7eddb71b050e0576e783c6ce8c67f66cfd88e13
2016-03-01 13:47:19 -05:00
Christoph Kerschbaumer
b47c0eea98 Bug 1254691 - Remove SEC_NORMAL from webrtc/. r=bwc 2016-03-10 08:52:34 -08:00
Boris Zbarsky
1228b7cbd3 Bug 1255269. Get rid of nsITCPSocketCallback.fireDataEvent. r=jdm 2016-03-10 18:07:28 -05:00
Timothy Nikkel
1f99404503 Bug 1187420. r=drc r=jmuizelaar a=abillings 2016-03-10 13:23:27 -06:00
Byron Campen [:bwc]
736356238e Bug 1248637: Prune duplicate CANCELLED candidate pairs. r=drno
MozReview-Commit-ID: HeErN7xMxbQ

--HG--
extra : rebase_source : d8f355e6cc74c73c3e9bc100a2bb2b2603931e55
2016-03-01 10:47:14 -06:00
Noel Gordon
6b3d2d0174 Bug 1050342. Fix a case where the fast huffman decoder in libjpeg-turbo can produce different results depending on how data is fed to it. r=seth
This change comes from the blink repo https://codereview.appspot.com/229430043/ and is unlikely to be accepted upstream into libjpeg-turbo.
2016-03-09 17:56:35 -06:00
Gian-Carlo Pascutto
568a64e79a Bug 1254507 - Fix leak in WebRTC DesktopApplication class. r=jesup
MozReview-Commit-ID: FLuQZcPyv0d

--HG--
extra : rebase_source : 24bc9507bb4abee94a1238176675948249c102f1
2016-03-08 14:14:05 +01:00
Gerald Squelart
2d4fdb1b57 Bug 1253471 - Remove Metadata hard-coded limit - r=jya
Instead of relying on some arbitrary limit for ftyp+moov box sizes, we check
for overflow and possible type truncations, and then let memory allocation
routines (e.g. MediaByteBuffer::SetLength) deal with actual memory limitations.

MozReview-Commit-ID: AXXxvdDYnnr
2016-03-08 17:25:33 +11:00
Nils Ohlmeier [:drno]
6d382efd5e Bug 1253198: add WebRtcIce prefix to all ICE unit tests. r=bwc
MozReview-Commit-ID: 5wD8Dl9ETkB

--HG--
extra : rebase_source : edf942c35be1d4caba5501b9395a70953eaa8344
2016-03-03 01:40:52 -08:00
Nils Ohlmeier [:drno]
01210346dd Bug 1217677: increase UDP socket receive buffer for <= Win7. r=jesup,mcmanus
MozReview-Commit-ID: A3yCZZ3Pwcu

--HG--
extra : rebase_source : 67d200194ed72076fcb6064f16ec94334f8fb5e7
2016-03-01 21:46:50 -08:00
Nils Ohlmeier [:drno]
1a7d746ecc Bug 1252777: skip over ICE TCP host candidate creation failures. r=bwc
MozReview-Commit-ID: 6l0ierHz5eL

--HG--
extra : rebase_source : 5bcce0063cf092f9eba278ea6790a0ada07eb82c
2016-03-02 01:27:01 -08:00
Byron Campen [:bwc]
b0ba04fb55 Bug 1221473: Do not treat answer as authoritative wrt payload types. r=drno
MozReview-Commit-ID: 2uVn60j8QfC

--HG--
extra : rebase_source : 4f5ee469a514deb4e89745885cda34cb6061a660
2015-11-06 10:14:23 -06:00
[:ng]
9e95296e04 bug 1241064 - updating stats filter SSRC when audio channel SSRC changes; r=jib
bug: getStats was returning statistics for the shortlived, initial SSRC
now updating SSRC filter on statistics update callback to match audio channel ssrc
getStats API now returns statistics for correct SSRC: jitter, packets lost, etc.

MozReview-Commit-ID: WCd71WMkUW

--HG--
extra : rebase_source : 5d3a5a14e04313749173d264894e44411c3417bf
2016-03-03 08:03:06 -08:00
Nathan Froyd
b938c57967 Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-03-02 15:28:27 -05:00
Makoto Kato
89dd964ab1 Bug 1252737 - use size_t instead of uint32_t for InitEncode(). r=jesup
Although 3rd parameter VideoEncodeer::InitEncode() is defiend as size_t, WebrtcIMXH264VideoCodec and WebrtcMediaCodecVP8VideoCodec uses uint32_t.  This will cause build error for 64bit platform.

MozReview-Commit-ID: 20NgE5e7Cuz

--HG--
extra : rebase_source : 6da7b73504843b1062daff2b6977743114c2591e
2016-03-02 13:05:43 +09:00
Nathan Froyd
9d78c6759b Bug 1252901 - don't use ScopedFreePtrTraits in MediaEngineWrapper.h; r=jesup
ScopedFreePtrTraits is somewhat of an internal implementation detail of
Scoped.h, and it's not hard to write out the two static functions we
need from ScopedFreePtrTraits anyway.  Removing this means that we can
clear the way for ScopedFreePtr to be removed.
2016-03-02 11:43:58 -05:00
Mike Hommey
1ba1737ec0 Bug 1252699 - Set WEBRTC_DETECT_ARM_NEON when optional neon is requested. r=jesup 2016-03-03 06:28:10 +09:00
Byron Campen [:bwc]
f1f2ee96b5 Bug 1037618 - Part 1: Add some logging to highlight TCP connection failures. r=drno
MozReview-Commit-ID: 4q84yGspvyX

--HG--
extra : rebase_source : 099d1dd32cc46ed96ac234fe0a65c85333acfdf1
2016-03-01 12:06:12 -06:00
Byron Campen [:bwc]
f3294c2565 Bug 1252585: Clear received_ct_ in TestStunServer::Reset r=drno
MozReview-Commit-ID: F7Dgk5gN4cs

--HG--
extra : rebase_source : 5a5b536b906a01dfb171008ba02ce3650abafca9
2016-03-01 13:59:43 -06:00
Byron Campen [:bwc]
8e9153abea Bug 1252163: Fix CheckTcpConnectivity to wait for readable/writeable when necessary. r=drno
MozReview-Commit-ID: 6hz0eCghYE0

--HG--
extra : rebase_source : 46b1221ab29c33455f7ceb3c0e149e4c8aaa2397
2016-02-29 12:33:47 -06:00
Byron Campen [:bwc]
3a66dfe493 Bug 1252171: Update last_used_ on TCP port mappings when they are used, similar to UDP. r=drno
MozReview-Commit-ID: DNinTza44la

--HG--
extra : rebase_source : 5d65d9a4c21ad113a2762ebf397b1e7b8f289dd5
2016-02-29 13:04:42 -06:00
Jan-Ivar Bruaroey
fe08f0669c Bug 1250990 - Make RTCRtpEncodingParameters.scaleResolutionDownBy work with H.264 unicast. r=jesup
MozReview-Commit-ID: 2j8rRzZemql

--HG--
extra : rebase_source : c3750d3ed62d99d05cf2b637ef06001b5a9c347e
2016-02-28 09:19:23 -05:00
Dan Minor
3b0b90c4ba Bug 1158741 - Implement a version of omxSP_FFTInv_CCSToR_F32_Sfs in openmax DL's FFT that is not scaled r=padenot
The new routine actually multiplies by two for consistency with the other FFT
routines in use.

MozReview-Commit-ID: Hk2Dg3fR2cQ

--HG--
extra : rebase_source : 08bdbbd65d372a3d0eb69568313cec33ccea6af3
2016-01-25 06:38:29 -05:00
Julian Seward
0c7e11d71b Bug 1252073 - Uninitialised value uses in mozilla::EncodingConstraints::operator==. r=docfaraday@gmail.com.
--HG--
extra : rebase_source : 705e0e821163e8f49d591d77ad306e317884d1c9
2016-03-02 12:29:36 +01:00
Wes Kocher
6866309c97 Backed out 2 changesets (bug 1251714, bug 1251715) for gtest failures in media code
Backed out changeset 1bbd0cd10f76 (bug 1251714)
Backed out changeset 80b197c5608f (bug 1251715)

MozReview-Commit-ID: EHOtiKLS4Xr
2016-03-01 11:36:35 -08:00
Nathan Froyd
70d7688ee3 Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-02-26 14:52:15 -05:00
Byron Campen [:bwc]
cb39275975 Bug 818618: Honor (and emit) opus stereo fmtp param. r=jesup
MozReview-Commit-ID: IgA305eiu1s

--HG--
extra : rebase_source : bc94c0c18bb95af7e2f9eb27dcda6a5699264ab1
2016-02-26 10:47:03 -06:00
Matthew Gregan
9ef5badfe1 Bug 1251504 - Update libnestegg to remove generated nestegg-stdint.h. r=giles 2016-02-26 15:38:14 +13:00
Sebastian Hengst
b63895fdbf Backed out changeset 4cc3fae66ffb (bug 1250990) for frequent failure of modified test test_peerConnection_scaleResolution.html. r=frequentorange 2016-02-28 09:59:16 +01:00
Jan-Ivar Bruaroey
2f66effab3 Bug 1250990 - Make RTCRtpEncodingParameters.scaleResolutionDownBy work with H.264 unicast. r=jesup
MozReview-Commit-ID: 2j8rRzZemql

--HG--
extra : rebase_source : 1e039392219000830d869f0ad5432a297f6d6987
2016-02-26 16:16:11 -05:00
Eric Rahm
e9c93e58a3 Bug 1251737 - Remove remaining references to MOZILLA_XPCOMRT_API from media. r=jesup 2016-02-27 11:12:07 -08:00
Eric Rahm
2917e8395e Bug 1239870 - Part 5: Switch over mtransport tests to mozilla gtests. r=bwc
This converts the individual cppunit gtests into the combined mozilla gtest
which has access to xpcom internals. The build file is simplified to reflect
this change, individual main functions are removed, and duplicate symbols are
removed.
2016-02-09 10:02:40 -08:00
Eric Rahm
082b84fde2 Bug 1239870 - Part 4: Disable broken proxy tunnel tests. r=bwc
Several of the proxy tunnel tests are broken. The proxy tunnel test is also
not run in automation.
2016-02-25 15:54:04 -08:00
Eric Rahm
c9f8e6756f Bug 1239870 - Part 3: Add a base mtransport gtest. r=bwc
This adds a base test for other mtransport tests to be derived from. It
handles common setup used by the mtransport tests and parses relevant env
vars.
2016-02-25 14:25:49 -08:00
Eric Rahm
d5bd208a66 Bug 1239870 - Part 2: Split out NrIceCtx initialization. r=bwc
This splits NrIceCtx initialization into its own function so that the tests
can initialize without having to create a dummy instance.
2016-02-24 18:37:18 -08:00
Eric Rahm
0d0d8d2c9e Bug 1239870 - Part 1: Remove declaration of test_utils from header. r=bwc
Once files are all compiled into the same gtest this will cause duplicate
symbol errors. It's also unused.
2016-02-09 10:02:37 -08:00
Wes Kocher
72d9604d91 Backed out 8 changesets (bug 1251482, bug 1251494, bug 1251473, bug 1239870) for gtest failures
Backed out changeset f064a5efbb8c (bug 1251494)
Backed out changeset 9e33adec1aa6 (bug 1251482)
Backed out changeset ab0347657e25 (bug 1251473)
Backed out changeset 1d385d4f195d (bug 1239870)
Backed out changeset ceb3e1ee7dda (bug 1239870)
Backed out changeset 8574075bf42f (bug 1239870)
Backed out changeset ba077a3afbc7 (bug 1239870)
Backed out changeset eb99ab06414d (bug 1239870)

MozReview-Commit-ID: 7r9SEk4VGNU
2016-02-26 17:14:57 -08:00
Eric Rahm
6968bce012 Bug 1239870 - Part 5: Switch over mtransport tests to mozilla gtests. r=bwc
This converts the individual cppunit gtests into the combined mozilla gtest
which has access to xpcom internals. The build file is simplified to reflect
this change, individual main functions are removed, and duplicate symbols are
removed.
2016-02-09 10:02:40 -08:00
Eric Rahm
6c7be83907 Bug 1239870 - Part 4: Disable broken proxy tunnel tests. r=bwc
Several of the proxy tunnel tests are broken. The proxy tunnel test is also
not run in automation.
2016-02-25 15:54:04 -08:00
Eric Rahm
dc59103e98 Bug 1239870 - Part 3: Add a base mtransport gtest. r=bwc
This adds a base test for other mtransport tests to be derived from. It
handles common setup used by the mtransport tests and parses relevant env
vars.
2016-02-25 14:25:49 -08:00
Eric Rahm
c93c9b8dbe Bug 1239870 - Part 2: Split out NrIceCtx initialization. r=bwc
This splits NrIceCtx initialization into its own function so that the tests
can initialize without having to create a dummy instance.
2016-02-24 18:37:18 -08:00
Eric Rahm
a90c690c9a Bug 1239870 - Part 1: Remove declaration of test_utils from header. r=bwc
Once files are all compiled into the same gtest this will cause duplicate
symbol errors. It's also unused.
2016-02-09 10:02:37 -08:00
Glenn Randers-Pehrson
95cc84e607 Bug 1230757 - Update in-tree libpng to version 1.6.21. r=seth
--HG--
extra : rebase_source : a3385a5b90d364900095f037355141f342e43c49
2016-01-16 09:27:00 -05:00
Byron Campen [:bwc]
ca4206043b Bug 1251214: Ignore R_WOULDBLOCK in nr_stun_client_send_request r=ekr
MozReview-Commit-ID: HLrvq4BqT9D

--HG--
extra : rebase_source : 4fdef84e82f8eec2f013b7c667bb0ac606ce0751
2016-02-25 11:34:27 -06:00
Byron Campen [:bwc]
50802e775a Bug 1249098: Support maxplaybackrate for opus. r=jesup
MozReview-Commit-ID: 7BKVFkbPgV2

--HG--
extra : rebase_source : 3ef372486a8c608c780e864412942e8819cc3f88
2016-02-18 14:13:35 -06:00
Byron Campen [:bwc]
a2f128dc8b Bug 1247656: Make sure that remote reoffer does not change the media type of an m-line. r=drno
MozReview-Commit-ID: DFXgLuSW6nM

--HG--
extra : rebase_source : f8872a6e7d9dc2aecbbfbfa46497176f63d21282
2016-02-11 13:00:58 -06:00
Jan-Ivar Bruaroey
c4ea91fa82 Bug 1247619 - add console warning about OAuth for STUN not yet supported. r=jesup,smaug
MozReview-Commit-ID: L0nViIWiIDn

--HG--
extra : rebase_source : 3d463e85c811426384a758dca3b0a82370c22099
2016-02-25 00:24:16 -05:00
Jan-Ivar Bruaroey
ceba79f2b0 Bug 1244913 - resolution-based bitrates for each simulcast layer, scaleResolutionDownBy, and working maxBitrate in unicast. r=bwc,jesup
MozReview-Commit-ID: 347J1ElsOEx

--HG--
extra : rebase_source : 33eff52e6082815d732de49a2bac584cfc9c87c4
2016-02-12 19:56:56 -05:00
Jan-Ivar Bruaroey
f7040b1412 Bug 1244913 - change SelectBandwidth to SelectBitrates. r=jesup
MozReview-Commit-ID: Gc5WN7JIozV

--HG--
extra : rebase_source : 86bc3281c3f2db284555c498436c4a6469148647
2016-02-12 16:08:00 -05:00
Randell Jesup
831c3445c4 Bug 1248335: avoid using SvcInternal structure entirely, as system-vpx may not have it r=pkerr
MozReview-Commit-ID: 146FTSGQ8Ck
2016-02-23 11:55:24 -05:00
Nathan Froyd
689320c0d0 Bug 1249369 - use UniquePtr instead of nsAutoArrayPtr in MediaPipeline.cpp; r=jesup 2016-02-18 14:09:23 -05:00
Paul Kerr [:pkerr]
04967dd524 Bug 1240790: Add newlines to WEBRTC_TRACE_FILE. r=rjesup 2016-02-18 13:16:26 -08:00
Byron Campen [:bwc]
87730e478f Bug 1241153: Stop blocking addTrack on GMP init, and update codecs on existing tracks when GMP init finishes. r=jesup
MozReview-Commit-ID: GqUBh0O5Dpk

--HG--
extra : rebase_source : 5b38531baf499b91c57ecc3cb6ddf9c10c8d5f15
2016-02-12 14:21:33 -06:00
Nathan Froyd
746ba1a2f5 Bug 1248770 - change sdp_unittests to cope with diverse c++ standard interpretations; r=jesup
The C++ standard, [facet.num.get.virtuals], defines the method to be
used for reading numeric values from an iterator.  The core loop is
defined thusly in N3242 (the draft for the C++11 standard):

  Stage 2: If in==end then stage 2 terminates. Otherwise a charT is
  taken from in and local variables are initialized as if by

    char_type ct = *in;
    char c = src[find(atoms, atoms + sizeof(src) - 1, ct) - atoms];
    if (ct == use_facet<numpunct<charT> >(loc).decimal_point())
      c = '.';
    bool discard =
      ct == use_facet<numpunct<charT> >(loc).thousands_sep()
      && use_facet<numpunct<charT> >(loc).grouping().length() != 0;

  where the values src and atoms are defined as if by:

    static const char src[] = "0123456789abcdefxABCDEFX+-";
    char_type atoms[sizeof(src)];
    use_facet<ctype<charT> >(loc).widen(src, src + sizeof(src), atoms);

  for this value of loc.

  If discard is true, then if '.' has not yet been accumulated, then the
  position of the character is remembered, but the character is
  otherwise ignored. Otherwise, if '.' has already been accumulated, the
  character is discarded and Stage 2 terminates.

  If the character is either discarded or accumulated then in is
  advanced by ++in and processing returns to the beginning of stage 2.

  Stage 3: The sequence of chars accumulated in stage 2 (the field) is
  converted to a numeric value by the rules of one of the functions
  declared in the header <cstdlib>:

    - For a signed integer value, the function strtoll.
    - For an unsigned integer value, the function strtoull.
    - For a floating-point value, the function strtold.

The important part for our purposes here is the line:

    char c = src[find(atoms, atoms + sizeof(src) - 1, ct) - atoms];

which implies that we are to accumulate any and all characters that
might be numerical constituents.  According to the spec text, we might
accumulate a long run of numeric constituents, only to decide in stage 3
that our accumulated string cannot be a valid number.  Please note that
this includes characters like 'x' and 'X' which are only valid as part
of a hexadecimal prefix.

sdp_unittests has a number of tests that look like:

  ParseInvalid<SdpImageattrAttributeList::XYRange>("[x", 1);

The test converts the input string to a stringstream, and attempts to
read an integer from the stream starting after the '[' character.  The
test expects that no input from the string stream will be consumed, as
the character 'x' cannot begin any number, and thus the position of the
stream after failure will be 1.  This behavior is consistent with MSVC's
standard library, libstdc++, and stlport.

However, libc++ uses a different algorithm that appears to hew more
closely to the letter of the spec, and consumes the 'x' character as
being a valid constituent character ("accumulates" in the above text).
The string is rejected as an invalid integer, yet the position of the
string stream afterwards is different from what the test expects, and we
therefore fail.

This patch therefore alters a number of tests to use a different invalid
character, 'v', that both the incremental algorithm (MSVC, libstdc++,
stlport) and the all-at-once algorithm (libc++) will recognize as not
being a valid constituent character and stop the parsing early, as
expected.  You might think that specifying the base for numeric input as
std::dec would work, and it partially does, but reading floating-point
numbers still reads the 'x' characters (!).
2016-02-16 21:09:34 -05:00
Jean-Yves Avenard
fb123d02a5 Bug 1248483: Resync FFvpx to n3.0-1-g0aa2fbd. r=kentuckyfriedtakahe
MozReview-Commit-ID: JPOz0SldaSv
2016-02-18 11:34:06 +11:00
Wes Kocher
c9708caf53 Backed out changeset d2cb189066ea (bug 1247656) for being a possible cause of the spike in ASAN test_browserElement_oop_getWebManifest.html failures
--HG--
extra : commitid : uaVd6qwUQY
extra : rebase_source : 09d7a5cca83c8599b916d217176821742d703b98
2016-02-16 16:40:38 -08:00
Louis Christie
e7c36cac63 Bug 1231793: Part 1 - Added read functions for Little Endian integers to ByteReader.h. r=jya 2016-02-17 00:28:48 +11:00
Aidin Gharibnavaz
6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
ISHIKAWA, Chiaki
be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00