Commit Graph

5325 Commits

Author SHA1 Message Date
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
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02: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
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