Commit Graph

4988 Commits

Author SHA1 Message Date
John Lin
ab9060d531 Bug 1349883 - part 3: resolve decode promise according to buffer status. r=jya
MozReview-Commit-ID: JwOOi56t30Y

--HG--
extra : rebase_source : 48f0cc0bfde3f84cc0574c5a5da6c738112c843f
2017-04-07 17:07:02 +08:00
Gerald Squelart
1564d36454 Bug 1341483 - MP4Metadata::GetTrackIndice() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: BIgvy5eKNJl

--HG--
extra : rebase_source : 251d61df6136ab46d8efe33edd4199fa5aabd2f0
2017-03-15 16:55:50 +11:00
Gerald Squelart
2ea7fba755 Bug 1341483 - MP4Metadata::Crypto() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: EywDv5JuDK6

--HG--
extra : rebase_source : 017cd996817b1aaa78f5c7bed9fa05da3baf442c
2017-02-27 21:32:03 +11:00
Gerald Squelart
7961918dfc Bug 1341483 - MP4Metadata::GetTrackInfo() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: KQ3fJzZkrGW

--HG--
extra : rebase_source : b9f4324f50c81f4945c0a47e63af0cb616ba013e
2017-02-27 17:05:41 +11:00
Gerald Squelart
c93b449e6b Bug 1341483 - MP4Metadata::GetNumberTracks() now also returns a success/error code - r=kinetik
In addition to the returned MediaResult, a special number-of-tracks value
(not just 0) indicates an unrecoverable error.

For Rust-vs-Stagefright comparison purposes, an error is considered the same
as 0 (because Stagefright never returns errors, but Rust may, so complaining
about that would be too noisy, and useless to us.)

MozReview-Commit-ID: IwadWSOIWr4

--HG--
extra : rebase_source : 29f53ee6a02a0431adb0b615a122a4e7b480108c
2017-02-27 13:36:59 +11:00
Gerald Squelart
1bbbbd132d Bug 1341483 - MP4Metadata::Metadata() now also returns a success/error code - r=kinetik
The returned MediaResult is used as error or warning in MP4Demuxer::Init().

MozReview-Commit-ID: Bnv4xG8bCJ4

--HG--
extra : rebase_source : c1952ed61396834b0cd7da58c9b64481a5c46ab1
2017-02-27 13:01:11 +11:00
Nils Ohlmeier [:drno]
37ee2e02bb Bug 1355259: only filter out udp candidates if force_tcp is set. r=mjf
MozReview-Commit-ID: AKv0N74epZ1

--HG--
extra : rebase_source : 9a77174afca8fd45b614ec49f4eb86f04ced888a
2017-04-10 16:52:09 -07:00
Munro Mengjue Chiang
d61aa73f60 Bug 1354993 - Add PictureID into VP8 CodecSpecificInfo. r=jolin
MozReview-Commit-ID: 7l2WygPuHRX

--HG--
extra : rebase_source : 1594349dbce9140041e0a976534327f5fd4ed8be
2017-04-10 14:49:36 +08:00
Wes Kocher
5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Wes Kocher
05965b79a9 Merge inbound to central, a=merge 2017-04-10 16:32:45 -07:00
Paul Adenot
ebfeb605e3 Bug 1348344 - Backed out changeset c72cf98f1527. r=achronop
This was meant to be temporary, and we can remove it now.

MozReview-Commit-ID: 2A9RKIabYIZ

--HG--
extra : source : e6cd7e39bfdd77772ffd3a36448b7763db7ec6d1
extra : histedit_source : dcb1bd9d144aaa9abeef38107a6ee6d85cdf7b2f
2017-04-10 17:15:29 +02:00
Nico Grunbaum
9352ee95aa Bug 1344970 - rename mozRtt to roundTripTime r=jib,smaug
MozReview-Commit-ID: 3kES8JUPd3n

--HG--
extra : rebase_source : e49846845d7cbd43f96d13cb1881e0383517f197
2017-03-06 15:50:10 -08:00
Paul Adenot
b37280c289 Bug 1337641 - Temporarily disable an assert in cubeb duplex. r=achronop
MozReview-Commit-ID: GD57nZRoXFj

--HG--
extra : rebase_source : 638d4e3f38fb3f4989758f0f1ad7f9d5dc4680ab
2017-04-10 19:26:44 +02:00
Vineet
7c01ecff24 Bug 1337294 - Removed the unnecessary call to c_str() r=jesup
MozReview-Commit-ID: CpDEC7kRSXs

--HG--
extra : rebase_source : 7d44fe50c35abc6ee643a35821c9b3dea9560f10
2017-03-02 11:09:08 +05:30
Eric Rahm
2d1b7da05b Bug 1354207 - Set webrtc build flags when building under valgrind, etc. r=jesup
The webrtc gyp files have a 'build_for_tool' flag that controls among other
things what defines are provided at build time. This meant that during a
firefox valgrind build webrtc would still specify NVALGRIND, thus disabling
some valgrind macros. Similarly there are flags for asan and tsan that we
should probably have been specifying as well. This patch sets the
'build_for_tool' flag to the appropriate value when building under valgrind,
asan, and tsan.
2017-04-07 09:20:37 -07:00
Carsten "Tomcat" Book
3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Wes Kocher
7da1f4c235 Merge m-c to inbound a=merge 2017-04-06 15:30:43 -07:00
Nils Ohlmeier [:drno]
45a1983cc1 Bug 1354222: fix log level casting warnings. r=erahm
MozReview-Commit-ID: A6hnPD3NkYr

--HG--
extra : rebase_source : a59a3d5acfdc219dd3f21b6acf1179125c766f5b
2017-04-06 11:00:35 -07:00
James Willcox
224324d56d Bug 1344347 - Move Android out-of-process decoder service into GeckoView r=jolin
MozReview-Commit-ID: QTnp95uhQV


--HG--
rename : mobile/android/base/aidl/org/mozilla/gecko/media/FormatParam.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/FormatParam.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodec.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaManager.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaManager.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/Sample.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/Sample.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodecFactory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodecFactory.java
rename : mobile/android/base/java/org/mozilla/gecko/media/Codec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/Codec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/CodecProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/CodecProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/FormatParam.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/FormatParam.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrm.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrm.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java
rename : mobile/android/base/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaDrmProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaDrmProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaManager.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaManager.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SamplePool.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SamplePool.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SessionKeyInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SessionKeyInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/mozglue/SharedMemory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
2017-04-06 14:32:58 -05:00
Michael Froman
1a2153bf46 Bug 1353575 - Switch to google stun server instead of twilio for ice_unittest.cpp. r=bwc,drno
MozReview-Commit-ID: HrS3oKjg17Z

--HG--
extra : rebase_source : a4a40bb9a5694054d736cabc7ff22b57037f6487
2017-04-04 13:47:54 -05:00
Byron Campen [:bwc]
f93af701e0 Bug 1353028: Fix broken extmap validation logic. r=drno
MozReview-Commit-ID: Egvr4ppNZ5Q

--HG--
extra : rebase_source : f22da96ae9beb4b43338f84168e41bfa230700d1
2017-04-03 15:05:31 -05:00
Carsten "Tomcat" Book
7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
Alfredo.Yang
348ae4d9df Bug 1329126 - update rust mp4 parser for preventing buffer overflow. r=kinetik
MozReview-Commit-ID: Ih85J4nejLx

--HG--
extra : rebase_source : 033d42491bbaf556a1e5adc09406cf6fa2f81e18
2017-03-31 15:49:43 +08:00
Nico Grunbaum
deeb9fdcf9 Bug 1348657 - Part 2 - split send/recv packet counts r=jib
MozReview-Commit-ID: 2SENT4rGsLX

--HG--
extra : rebase_source : 8a6c960871ed7fffb28d5a7676d20c016daa3b58
2017-03-30 10:59:46 -07:00
Nico Grunbaum
af67a2fb4c Bug 1348657 - implement framesEncoded, pliCount, nackCount and firCount for webrtc stats r=jib,smaug
MozReview-Commit-ID: E873mbcrlLL

--HG--
extra : rebase_source : ca6f5d7ab0490948aaed1ae793ed5906149b7236
2017-03-21 21:52:06 -07:00
Eric Rahm
83eba01284 Bug 1353143 - Part 1: Explicitly include prlog.h in mtransport/logging.h. r=drno
This updates mtransport logging to explicitly include prlog.h and defines
MOZ_MTLOG in terms of PR_LOG rather than MOZ_LOG when building outside of XUL.
2017-04-04 14:36:14 -07:00
Carsten "Tomcat" Book
5d99fc5820 Merge mozilla-central to autoland 2017-04-04 12:38:55 +02:00
Carsten "Tomcat" Book
14e0b51ace merge mozilla-inbound to mozilla-central a=merge 2017-04-04 12:35:03 +02:00
Paul Adenot
8db2de79d7 Bug 1351803 - Statically link to avrt.lib on Windows, when compiling cubeb. r=glandium
We used to get the symbols we need using `LoadLibrary`, but now (since
661c653c86),
we can statically link to avrt.lib, because we only support Windows OSes that
have this library. For now, this works because avrt.lib is linked in
webrtc-land somewhere with a #pragma, but:
- We're going to stop using this bit of webrtc in the near future (around
  Firefox 54)
- Not linking this explicitely where it's used breaks --disable-webrtc, that is
  a popular option

MozReview-Commit-ID: 7b16Kdl3VUu

--HG--
extra : rebase_source : b4159872427b4e9d912e1228e75563ca9a8e828d
2017-03-30 06:26:19 -07:00
Matthew Gregan
2174e12534 Bug 1352929 - Update libcubeb to 04826edb. r=padenot 2017-04-04 14:02:04 +12:00
Randell Jesup
d5d480e33d Bug 1349581: defer nativeRegistration for android Jni to avoid thread issues r=gcp
MozReview-Commit-ID: Ep0ej5HkGE3
2017-04-03 16:58:44 -04:00
Michael Froman
5ffad762cd Bug 1350568 - don't dispatch IPC call to StunAddrsRequestChild after content process IPC channel goes away. r=jesup
MozReview-Commit-ID: IoAWO9Frf1u

--HG--
extra : rebase_source : fc3a5d8d066dadb476ea965014553c99515b1547
2017-03-26 13:30:28 -05:00
Tom Ritter
fcb35c70f7 Bug 1331349 Fix printf formatting errors in MinGW compilation r=froydnj
MozReview-Commit-ID: A4PMABfxzez

--HG--
extra : rebase_source : d0c40a495ad390aeb71ddc81c33daa081f6e0ba7
2017-03-31 00:14:43 -05:00
Chris Pearce
f96fedca29 Bug 1351954 - Change ClearKey CDM to allocate its video frame buffers optimally. r=gerald
The WMF decoder gives us video frames in buffers with the planes 16 row-aligned
for some reason. If we allocate our video frames the same size we waste memory.
So let's have the ClearKey CDM not allocate its video frames with the extra
padding rows.

Excluding the padding in our copy of the decoded data also makes my work in bug
1351953 easier.

MozReview-Commit-ID: 9dD40P6ST68

--HG--
extra : rebase_source : a6c4fea01e8bf2deef8edc78d0a041e8fed0c0b8
extra : source : 433028f9a2055869cd98710f0871d040605c0535
2017-03-28 18:00:01 +13:00
Ralph Giles
821d5fb522 Bug 1353944 - Update enums for mp4parse 0.8.0. r=kinetik
The support to namespace prefixing in moz-cheddar means we
can simplify exported enum names on the rust side. However
this makes for some spelling changes on the C side.

MozReview-Commit-ID: 4t6NDusx0uI

--HG--
extra : rebase_source : 1c1221507ce42965486d79e6809d1541f6410f55
2017-04-05 17:30:47 -07:00
Ralph Giles
3a9b45493a Bug 1353944 - Update to mp4parse 0.8.0. r=kinetik
Sync with crates.io version. Just enum spelling changes.

MozReview-Commit-ID: BS02zEoJaV1

--HG--
extra : rebase_source : a1a13979ba30ba178cc42f5b5fae8a6f089dc4b9
2017-04-05 16:19:47 -07:00
Munro Mengjue Chiang
5907cfe44d Bug 1265755 - Implement remote vp8 encoder and enable/disable them with pref; r=jolin
MozReview-Commit-ID: JZ1eUZNLAKq

--HG--
extra : rebase_source : 3d0da18ab91239db56d5425889d638b184e02b82
2017-03-30 09:00:13 +08:00
Dan Minor
1d80aba420 Bug 1351700 - Fix linking error when building webrtc-gtest; r=jesup
This adds a stub implementation for nsTraceRefcnt::WalkTheStack which we're
pulling in from <mozilla/Assertions.h> in some debug builds.

MozReview-Commit-ID: 6wVghIfKWWZ

--HG--
extra : rebase_source : 1e8472935c7f8ac486794fab764e08b30eea79ed
2017-03-29 14:22:23 -04:00
Nils Ohlmeier [:drno]
3fe5112bbb Bug 1345791: ICE disconnect state is not a crash. r=bwc
MozReview-Commit-ID: IwrWVvjkNmX

--HG--
extra : rebase_source : e9c4b92acddb82298b439152e622132a49bd6daa
2017-03-29 16:39:42 -05:00
Tom Ritter
6c832ecd7e Bug 1344909 When compiled with MinGW, use only a single core in gmp-clearkey r=cpearce
MozReview-Commit-ID: Ej9avF7TkaL

--HG--
extra : rebase_source : 804988fa70c9cc45bb404793dd1320dbd2bc4ac1
2017-03-23 13:58:54 -05:00
Dan Minor
774e2f6945 Bug 964133 - Build webrtc.org unit tests; r=jesup,ted.mielczarik
This adds a moz.build file for the tests. The alternative would be to hack up
the gyp files. Since gyp support has already been removed from upstream, this
does not really buy us anything as far as maintainabily goes. Once gn support
is available in our build system, we can remove this moz.build file and use
the gn files instead.

The include paths for the gtest and gmock headers in the webrtc.org tests are
not compatible with where we export the headers. We could patch each unittest,
but the include location has already changed upstream making this painful
to maintain. Instead, we duplicate the relevant headers to the expected path.

MozReview-Commit-ID: 1ADUAMxTCFq

--HG--
extra : rebase_source : 2cc10faa7018ee8af8e8f3d7805265ed2dd89507
2017-03-27 15:51:16 -04:00
Dan Minor
164d41ff3a Bug 964133 - Add stub implementation of OSXRunLoopSingleton.cpp; r=jesup
MozReview-Commit-ID: 8yJh0V2rLoR

--HG--
extra : rebase_source : 3df843511ecb40af2b6d83030453758e838e94be
2017-02-07 13:47:00 -05:00
Dan Minor
f44831c17d Bug 964133 - Build gflags; r=ted.mielczarik
This adds gflags to the list of ignored directories for clang static
analysis and adds "explicit" where required in mutex.h.

We also stop building a duplicate copy of snprintf for windows as our builds
already include a definition for it.


MozReview-Commit-ID: 4uMhTMvAKL0

--HG--
extra : rebase_source : d63d3797053c7720c725b3994cb3b2ca11bb191f
2017-03-28 15:46:57 -04:00
Dan Minor
15ed133076 Bug 964133 - Import gflags from webrtc.org branch 49; r=ted.mielczarik
MozReview-Commit-ID: 2AouGZrZa9w

--HG--
extra : rebase_source : 76ab8e4a280912aa08a6c94e1cdfb25488df836a
2017-03-08 11:33:01 -05:00
Dan Minor
6affa752e1 Bug 964133 - Fixup FakeIPC to build on windows; r=jesup
MozReview-Commit-ID: 2Jm82qs4hFL

--HG--
extra : rebase_source : dfade0944c84df23580121384d2501229b78c0c6
2017-01-30 15:37:57 -05:00
Dan Minor
d71edf00c9 Bug 964133 - Move FakeIPC to webrtc.org gtest; r=jesup
These were written for the signaling tests but are no longer needed there
because those tests link against libxul. They are still useful for the
webrtc.org unit tests, so we should move them there.

MozReview-Commit-ID: GVskiZebq19

--HG--
rename : media/webrtc/signaling/test/FakeIPC.cpp => media/webrtc/trunk/gtest/FakeIPC.cpp
rename : media/webrtc/signaling/test/FakeIPC.h => media/webrtc/trunk/gtest/FakeIPC.h
extra : rebase_source : 57b70f5dd3a55e73de0b066f228ddf957f477c26
2017-01-13 14:03:17 -05:00
Dan Minor
429e0c1350 Bug 964133 - move nICEr and nrappkit to libxul; r=ted.mielczarek
Building these as part of the webkit lib adds unnecessary dependencies on Mozilla code for things that only case about the webrtc static lib.

MozReview-Commit-ID: 7ThU7hAwRX0

--HG--
extra : rebase_source : eef256711e205d023a647e6196dcc61e657f6e28
2017-01-13 09:28:43 -05:00
Dan Minor
4205129c92 Bug 964133 - Remove webrtc.org copy of gtest; r=ted.mielczarek
MozReview-Commit-ID: LURWNU2zwRT

--HG--
extra : rebase_source : 5a0c8cd1e56bfbe82e581bce9dcf2cb126a605c5
2017-03-28 15:44:38 -04:00
Byron Campen [:bwc]
87716f1d4e Bug 1344556 - Part 6: Sanity check extmaps in answers. r=drno
MozReview-Commit-ID: Jv91RSe9ooL

--HG--
extra : rebase_source : b61404a8b41d68b3153bee8bdcd44d8a2359a2c8
2017-03-08 15:02:28 -06:00
Byron Campen [:bwc]
5ae671c866 Bug 1344556 - Part 5: Fix bug where sendonly extmaps would be configured on recv tracks, and vice versa. r=drno
MozReview-Commit-ID: DMwDGCnUTYX

--HG--
extra : rebase_source : c2eb3698f4d625d2e08d7deb6c27cce0d0312f01
2017-03-08 15:02:01 -06:00