Commit Graph

8402 Commits

Author SHA1 Message Date
Andreas Pehrson
0fcedf1151 Bug 1828517 (MOZ) - Simplify RTCStatsTimestampMaker conversions with a new RTCStatsTimestamp class. r=webrtc-reviewers,dbaker
This adds a new helper class that has the same conversion state as
RTCStatsTimestampMaker, for conversions on any thread.
It has From* and To* methods for all the time bases we care about, and stores
its time internally in mozilla::TimeStamp.

This avoids having to implement a conversion method for every permutation of
time base pairs in RTCStatsTimestampMaker.

Differential Revision: https://phabricator.services.mozilla.com/D177539
2023-05-10 18:04:39 +00:00
Andreas Pehrson
8747b99a33 Bug 1828517 (MOZ) - Improve rtp packet delivery through MediaPipeline and conduits. r=webrtc-reviewers,dbaker
With earlier fixes to upstream's PacketReceiver::DeliverPacket, received rtp
packets were parsed twice:
- In MediaPipeline, with the proper extension map in order to extract the header
  for filtering.
- In conduits, with no extension map.

The conduits would therefore not parse any rtp header extensions, leading to
problems later on as data from the extensions would not get exposed to
libwebrtc or js.

This patch removes the rtp packet parsing in the conduits and moves any setting
of metadata over to MediaPipeline so there is a single point responsible for
parsing rtp packets. The packet is then transferred verbatim via the conduits to
libwebrtc.

Differential Revision: https://phabricator.services.mozilla.com/D177536
2023-05-10 18:04:38 +00:00
Michael Froman
7197cb84a6 Bug 1828517 (MOZ) - handle upstream removing AudioReceiveStreamInterface::GetRtpExtensions 2023-04-21 12:19:06 -05:00
Michael Froman
859c28a8de Bug 1828517 (MOZ) - handle upstream changing ReceiveStreamInterface api
Upstream removed:
ReceiveStreamInterface::transport_cc
ReceiveStreamInterface::SetTransportCc
2023-04-20 13:10:50 -05:00
Chun-Min Chang
72880921b4 Bug 1831930 - Apply local patches to libvpx r=webrtc-reviewers,ng
Apply local patches by running `./mach vendor media/libvpx/moz.yaml
--patch-mode-only`

Differential Revision: https://phabricator.services.mozilla.com/D177514
2023-05-12 01:08:58 +00:00
Chun-Min Chang
69a22f30f5 Bug 1831930 - Update libvpx to 19ec57e14938bcb12d87123b7c369212f19792eb r=webrtc-reviewers,ng
Update to 19ec57e14938bcb12d87123b7c369212f19792eb by running `./mach
vendor media/libvpx/moz.yaml --patch-mode=none`

Differential Revision: https://phabricator.services.mozilla.com/D177513
2023-05-12 01:08:58 +00:00
Chun-Min Chang
b50359b886 Bug 1827664 - Remove custom changes for MSVC in libvpx r=padenot
Gecko doesn't support msvc anymore.

Differential Revision: https://phabricator.services.mozilla.com/D177518
2023-05-12 01:08:58 +00:00
Chris Peterson
03f125ade5 Bug 1832219 - Define _USE_MATH_DEFINES and M_PI on both regular and mingw Windows builds. r=firefox-build-system-reviewers,cubeb-reviewers,glandium,padenot
Without _USE_MATH_DEFINES, Windows' math.h doesn't define M_PI. Since _USE_MATH_DEFINES is defined globally, redundant definitions of _USE_MATH_DEFINES in moz.build files can be removed.

obj-build/dist/include/mozilla/ServoStyleConstsInlines.h:396:32: error: use of undeclared identifier 'M_PI'
obj-build/dist/include/mozilla/StaticPrefList_apz.h:133:22: error: use of undeclared identifier 'M_PI'
obj-build/dist/include/mozilla/gfx/PathHelpers.h:139:33: error: use of undeclared identifier 'M_PI'

Differential Revision: https://phabricator.services.mozilla.com/D177590
2023-05-11 02:45:40 +00:00
Byron Campen
5c4ff3ddec Bug 1332163: Test-case for bug. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D176764
2023-05-10 15:13:40 +00:00
Stanca Serban
8b390637b2 Backed out 2 changesets (bug 1332163) for causing reftests failures in SdpHelper.cpp. CLOSED TREE
Backed out changeset 90557ee17ec1 (bug 1332163)
Backed out changeset 0895ae05973d (bug 1332163)
2023-05-10 04:20:44 +03:00
Byron Campen
3acd8ba766 Bug 1332163: Test-case for bug. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D176764
2023-05-09 23:07:18 +00:00
Byron Campen
c7504aeccf Bug 1829667: Make JsepTransceiver non-refcounted. r=mjf,webidl,mccr8
Involves substantial refactoring to make most access by-value (or through
functional-style in-place modifications) for safety.

Differential Revision: https://phabricator.services.mozilla.com/D176423
2023-04-28 14:53:57 +00:00
Paul Adenot
afc8589ea0 Bug 1830060 - Reapply patch on top of vendored libcubeb. r=cubeb-reviewers,kinetik
Depends on D176530

Differential Revision: https://phabricator.services.mozilla.com/D176531
2023-04-27 08:59:39 +00:00
Paul Adenot
45df9ca377 Bug 1830060 - Update libcubeb to revision 1ba9237. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D176530
2023-04-27 08:59:39 +00:00
Chun-Min Chang
67dc0a0870 Bug 1829975 - Correct libopus's upstream repo r=kinetik
The upstream repo now is https://gitlab.xiph.org/xiph/opus

Differential Revision: https://phabricator.services.mozilla.com/D176483
2023-04-26 16:40:11 +00:00
Updatebot
729f6e1676 Bug 1829258 - Update opus to f3de7ca74358eff2aec766b076ded84f463ac606 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D176104
2023-04-22 00:24:56 +00:00
Paul Adenot
ad3589b177 Bug 1828894 - Regenerate cubeb patch and reapply it. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D175875
2023-04-20 12:47:05 +00:00
Paul Adenot
c512f2a43e Bug 1828894 - Update libcubeb to revision 3ecf0c8. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D175874
2023-04-20 12:47:04 +00:00
Stanca Serban
2c574db450 Backed out 2 changesets (bug 1828894) for cubeb related bp-hybrid bustages. CLOSED TREE
Backed out changeset 3200eba0be97 (bug 1828894)
Backed out changeset 6426d03a45ce (bug 1828894)
2023-04-20 02:23:35 +03:00
Paul Adenot
477e16356b Bug 1828894 - Regenerate cubeb patch and reapply it. r=cubeb-reviewers,kinetik
Depends on D175874

Differential Revision: https://phabricator.services.mozilla.com/D175875
2023-04-19 21:31:08 +00:00
Paul Adenot
eacff86730 Bug 1828894 - Update libcubeb to revision 479f8c5. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D175874
2023-04-19 21:31:08 +00:00
Updatebot
1534bc81cb Bug 1828576 - Update opus to 9efa0eac04e44f399e2696eadd4abab0a0ee86a8 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D175733
2023-04-18 23:02:01 +00:00
serge-sans-paille
e035801cdc Bug 1826752 - Make media/gmp-clearkey/0.1 buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174878
2023-04-18 09:42:14 +00:00
serge-sans-paille
c7cd4a02f6 Bug 1826397 - ClearKeyDecryptor::Decrypt only decrypt first sample in CBCS mode r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174664
2023-04-17 13:25:23 +00:00
Stanca Serban
cefd926755 Backed out 9 changesets (bug 1826760, bug 1826758, bug 1826752, bug 1826756, bug 1826759, bug 1826761, bug 1826757, bug 1826753, bug 1826754) for causing bp-hybrid bustages in ClearKeyDecryptionManager.cpp.
CLOSED TREE

Backed out changeset 210012222277 (bug 1826761)
Backed out changeset e364bb149efa (bug 1826760)
Backed out changeset e456e2f9966c (bug 1826759)
Backed out changeset 2b6ff545f4a3 (bug 1826758)
Backed out changeset 95fe1de8ba00 (bug 1826757)
Backed out changeset f8af52d7f2a1 (bug 1826756)
Backed out changeset 2646e773f098 (bug 1826754)
Backed out changeset 58d5d74b1835 (bug 1826753)
Backed out changeset 8567e6595acc (bug 1826752)
2023-04-17 13:52:39 +03:00
serge-sans-paille
f2890518c7 Bug 1826752 - Make media/gmp-clearkey/0.1 buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174878
2023-04-17 10:11:55 +00:00
Chun-Min Chang
b54968aed8 Bug 1827249 - Apply local patches to libvpx r=media-playback-reviewers,padenot
Apply local patches by running `./mach vendor media/libvpx/moz.yaml
--patch-mode-only`

Depends on D175146

Differential Revision: https://phabricator.services.mozilla.com/D175147
2023-04-12 16:39:29 +00:00
Chun-Min Chang
0673d254cc Bug 1827249 - Update libvpx to 31b6d12 r=media-playback-reviewers,padenot
Update to 31b6d12892cebc57adccc62994f29ebbca828fa0 by running `./mach
vendor media/libvpx/moz.yaml --patch-mode=none`

Differential Revision: https://phabricator.services.mozilla.com/D175146
2023-04-12 16:39:29 +00:00
Sebastian Hengst
099c7dcb49 Merge mozilla-central to autoland. CLOSED TREE 2023-04-12 00:04:01 +02:00
Updatebot
6dde2ed59f Bug 1827248 - Update dav1d to 5aa3b38f9871859e14e55f18ab5e38318fe86305 r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D175056
2023-04-11 16:16:09 +00:00
Byron Campen
2b3f12dc57 Bug 1822194 (MOZ) - Rename this consistent with API changes in previous changeset. 2023-04-01 09:51:34 -05:00
Byron Campen
e22d9e3b26 Bug 1822194 (MOZ) - Catch up with API changes, do some defensive include-what-you-use work.
While working on this, I ran into trouble because include chains starting in
generated DOM cpp code were reaching deep down into libwebrtc, which expects
certain preprocessor defines to be set. Our cpp code sets these defines, but
the generated DOM cpp code does not (and should not). So, I've reworked the
includes and added forward declarations to avoid this problem.

Also, added a TODO about using this new API over in bug 1825877.
2023-03-31 16:19:26 -05:00
serge-sans-paille
64636c4643 Bug 1825328 - Make media/libcubeb/*test buildable outside of a unified build environment r=andi
Depends on D173971

Differential Revision: https://phabricator.services.mozilla.com/D173972
2023-03-31 13:29:45 +00:00
Cristian Tuns
8e06a7a853 Backed out 12 changesets (bug 1825325, bug 1825336, bug 1825333, bug 1825332, bug 1825324, bug 1824557, bug 1825328, bug 1825335, bug 1825330, bug 1825329, bug 1825327, bug 1825331) for causing build bustages in nsClipboard.cpp CLOSED TREE
Backed out changeset 9de3ed24d3a0 (bug 1825336)
Backed out changeset aef787728f19 (bug 1825335)
Backed out changeset a04c341244c1 (bug 1825333)
Backed out changeset e3ad15f762ba (bug 1825332)
Backed out changeset eed23da92a27 (bug 1825331)
Backed out changeset 8213bb54376e (bug 1825330)
Backed out changeset 747ec5ac4994 (bug 1825329)
Backed out changeset e91ff431f92d (bug 1825328)
Backed out changeset 59c18d13768b (bug 1825327)
Backed out changeset 538096d99e49 (bug 1825325)
Backed out changeset c76eb9d9b095 (bug 1825324)
Backed out changeset 8b81410eb686 (bug 1824557)
2023-03-31 12:58:53 -04:00
serge-sans-paille
6967f8a13f Bug 1825328 - Make media/libcubeb/*test buildable outside of a unified build environment r=andi
Depends on D173971

Differential Revision: https://phabricator.services.mozilla.com/D173972
2023-03-31 13:29:45 +00:00
Nika Layzell
d57c9498f6 Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio
This flag is not supported by most event targets and can have unexpected
side effects (namely spinning a nested event loop). All consumers have
been replaced with a new function which is more explicit about this side
effect.

Differential Revision: https://phabricator.services.mozilla.com/D173985
2023-03-30 16:53:51 +00:00
Chun-Min Chang
1118f48cad Bug 1822135 - Apply local patches to libvpx r=webrtc-reviewers,media-playback-reviewers,padenot
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=only` as what
media/libvpx/README_MOZILLA said.

Depends on D173561

Differential Revision: https://phabricator.services.mozilla.com/D173562
2023-03-30 16:37:07 +00:00
Chun-Min Chang
11ff2e9240 Bug 1822135 - Update libvpx to 5b05f6f r=webrtc-reviewers,media-playback-reviewers,padenot
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=none` as what
media/libvpx/README_MOZILLA said.

The updated libvpx revision is 5b05f6f3a01d7e25d0573b482245a2b8b0eb09bd.

Differential Revision: https://phabricator.services.mozilla.com/D173561
2023-03-30 16:37:07 +00:00
Dan Baker
d1d5fe1bad Bug 1531460 - Implement getCapabilities.r=bwc,webrtc-reviewers,emilio
Depends on D173788

Differential Revision: https://phabricator.services.mozilla.com/D173550
2023-03-29 22:49:53 +00:00
ChaseKnowlden
778b3037c5 Bug 1812638 - Update ownership for libtheora. r=kinetik DONTBUILD
Since Bryce left, add the new owner to it.

Differential Revision: https://phabricator.services.mozilla.com/D170283
2023-03-29 03:30:00 +00:00
Norisz Fay
6111da95d9 Backed out 4 changesets (bug 1531460) for causing wpt failures on decodingInfo.webrtc.html CLOSED TREE
Backed out changeset efd17f1d735a (bug 1531460)
Backed out changeset c8ec97292d07 (bug 1531460)
Backed out changeset 6cd802a21625 (bug 1531460)
Backed out changeset 99b6e83a6291 (bug 1531460)
2023-03-29 03:20:50 +03:00
Dan Baker
80516090ea Bug 1531460 - Implement getCapabilities.r=bwc,webrtc-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D173550
2023-03-28 21:45:16 +00:00
Byron Campen
d55e6fa9a4 Bug 1817096: Drive unmute from the conduit (on call thread) instead of the pipeline (on STS). r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D172907
2023-03-28 21:39:44 +00:00
Andi-Bogdan Postelnicu
4efa1bd0ba Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar
9db345d4c1 Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu
447f1e3358 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru
6d40eee997 Backed out 2 changesets (bug 1276351) for causing multiple failures.
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Andi-Bogdan Postelnicu
a1b827b503 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00
Mike Hommey
76df0cfce2 Bug 1820876 - Update NDK to r23c. r=firefox-build-system-reviewers,nalexander
Wrench android builds had been kept on rustc 1.67 waiting for this
upgrade.

Differential Revision: https://phabricator.services.mozilla.com/D172089
2023-03-23 22:18:09 +00:00
Stanca Serban
7c5ebbcf74 Backed out changeset df6f338d6a26 (bug 1820876) for causing build bustages on Android Shippable. CLOSED TREE 2023-03-23 14:13:08 +02:00