Граф коммитов

3785 Коммитов

Автор SHA1 Сообщение Дата
Jan Beich 77930e373b Bug 1228230 - Rely more on top-level configure auto-detection. r=qdot
--HG--
extra : commitid : zmjwDqqQv6
2015-11-27 07:37:33 +00:00
Gerald Squelart a9a0ca3af0 Bug 1210319 - p3. Lowered useless log level - r=jya
--HG--
extra : commitid : 3l4NCSLhsWC
2015-12-01 13:46:07 -08:00
Gerald Squelart 23f5557d82 Bug 1210319 - p2. Minor intf clean-up, RIP trex - r=rillian
Made some class interfaces a bit more "C++11"-ish, to protect against some
possible issues.
Also removed 'trex', which was only used by code removed in previous patch.

--HG--
extra : commitid : FkTiMJ5sZLf
2015-12-01 13:45:55 -08:00
Gerald Squelart f8723d92f6 Bug 1210319 - p1. Removed unused code - r=rillian
--HG--
extra : commitid : 6LU02OBJDFK
2015-12-01 13:45:42 -08:00
Jean-Yves Avenard 7ae8605a51 Bug 1229339: Partial revert of commit c15c9f37f. r=cpearce
Replacement of nsTArray<MediaByteRange> by MediaByteRangeSet in the MoofParser was incorrect.
2015-12-02 08:35:57 +11:00
Alexandros Chronopoulos 6aab2674ce Bug 1202087 - Filter out non-shareable application for win8 or greater. r=jesup 2015-11-11 14:01:27 +02:00
Chris Pearce d6743b5aff Bug 1186406 - Copy input to ClearKey's decoder, so we can return its containing shmem earlier. r=gerald
We're failing in the "Very rough kill-switch" case in
GMPVideoDecoderParent::Decode() we find that too many shmems are in use when we
come to send a "Decode" message to the GMP, and that causes an error which
percolates up to cause the test failure.

This patch changes gmp-clearkey to copy the input encrypted and compressed
sample and immediately return the shmem to the parent process. We are
copying the data anyway when we decrypt, so we can rejigg things so that we
don't actually end up doing a second copy.
2015-12-01 18:13:58 +13:00
EKR 764814bceb Bug 1227781 - Fix crash with bogus STUN parameters. r=bwc 2015-11-30 12:15:19 -08:00
Jean-Yves Avenard 5b14282671 Bug 1227396: P14. Reduce memory usage of sample index for audio tracks. r=cpearce
All samples in an audio track are keyframes. As such, use block on 128 samples instead.
2015-11-30 11:36:39 +11:00
Jean-Yves Avenard bb0aacbf79 Bug 1227396: P13. Refactor how MP4 buffered range is calculated. r=cpearce
We now use an index of samples made of block of samples delimited by keyframes. The search is performed using a binary search. This allows to quickly find which blocks are found within the media cache.
On a 8 core mac pro, this leads to a 67% improvement on CPU time spent playing a long MP4 video (from 112s CPU to 45s CPU)

The optimisation is only possible if all mp4 data chunks are continuous (which they almost always are)
2015-11-30 11:29:37 +11:00
Jean-Yves Avenard 219b4520a6 Bug 1227396: P10: Remove stray function definition. r=cpearce 2015-11-30 11:29:35 +11:00
Jean-Yves Avenard fdf27ff498 Bug 1227396: P9. Remove unnecessary monitor. r=cpearce
The Index and MoofParser are now only used via the MP4Demuxer which is guaranteed to always be called on the same taskqueue.
2015-11-30 11:29:35 +11:00
Jean-Yves Avenard a7975b198f Bug 1227396: P8. Replace MediaByteRange with Interval<int64_t> typedef. r=cpearce
It's now okay to simplify.
2015-11-30 11:29:34 +11:00
Jean-Yves Avenard c8c275cee2 Bug 1227396: P7. Replace nsTArray<MediaByteRange> with dedicated MediaByteRangeSet object. r=cpearce 2015-11-30 11:29:34 +11:00
Jean-Yves Avenard 70f2124283 Bug 1227396: P2. Rename some MediaByteRange methods. r=cpearce
Will facilitate the replacement of MediaByteRange by Interval<int64_t>
2015-11-30 11:29:30 +11:00
Nigel Babu 80fe8e107c Backed out changeset 8631caf756eb (bug 1225703) for Cpp bustage on OS X 10.10 debug
--HG--
extra : amend_source : 0bacde9a70f022e574c638e207d4786a0572ef7b
2015-11-27 12:20:58 +05:30
Chris Pearce efc8956d13 Bug 1228461 - Implement keyids initData type for ClearKey. r=gerald 2015-11-27 17:13:40 +13:00
Chris Pearce ad73151891 Bug 1228461 - Don't assert we must have keys for keyIds we've seen in ~ClearKeySession(). r=gerald 2015-11-27 17:13:35 +13:00
Matthew Gregan 44147bd7ac Bug 1225703 - Update in-tree libcubeb. r=padenot 2015-11-19 16:37:36 +13:00
Carsten "Tomcat" Book b9c3b3b73f Backed out changeset 5ecd639be1a4 (bug 1202087) for bustage 2015-11-26 12:44:02 +01:00
Alexandros Chronopoulos aeef183f90 Bug 1202087 - Filter out non-shareable application for win8 or greater. r=jesup 2015-11-11 14:01:27 +02:00
Mike Hommey b5c0f9f920 Bug 1224452 - Quote passthru variables. r=gps
Ideally, we should properly make and shell quote everything we print out
in makefiles, but that's a can of worms I don't want to open just yet. So
I'll limit myself to just passthru variables.
2015-11-26 08:51:02 +09:00
Mike Hommey 6a40d83fb7 Bug 1224452 - Straighten up a couple things in some moz.builds. r=gps
We're going to change how e.g. CFLAGS are printed out in backend.mk, and
to fit that model, the data in the corresponding moz.build variables
need to be straightened up.
2015-11-26 08:50:52 +09:00
Paul Kerr [:pkerr] c4670b9125 Bug 1226347 - Part 2: Allow control of AEC via prefs. r=rjesup 2015-11-24 08:32:11 -08:00
Randell Jesup 7d22cc9c0c Bug 1226347: Import cherry-pick of AEC changes from 43->48 (delay-agnostic AEC). r=pkerr 2015-11-23 11:11:58 -05:00
Wes Kocher dba42704d1 Backed out 2 changesets (bug 1226347) for build bustage CLOSED TREE
Backed out changeset da34ad5d6957 (bug 1226347)
Backed out changeset 63d13b6b43ee (bug 1226347)

--HG--
extra : commitid : 4yYcYyidto4
2015-11-24 09:02:03 -08:00
Paul Kerr [:pkerr] 46b05602ec Bug 1226347 - Part 2: Allow control of AEC via prefs. r=rjesup 2015-11-24 08:32:11 -08:00
Randell Jesup 05d80d2f86 Bug 1226347: Import cherry-pick of AEC changes from 43->48 (delay-agnostic AEC). r=pkerr 2015-11-23 11:11:58 -05:00
Gerald Squelart ed2eee2066 Bug 1227052 - Use delete[] for sinf->IPMPData. r=jya
--HG--
extra : rebase_source : d8197fdc08c009dedd25f83ef2a7fc68356043a7
2015-11-24 08:46:54 +01:00
Glenn Randers-Pehrson 60a6d95d13 Bug 1224244 - Update in-tree libpng to version 1.6.19. r=seth 2015-11-23 20:20:00 +01:00
Wes Kocher 6b785bc5a4 Backed out changeset 3f51676191a6 (bug 1225703) for cpp unittest failures on at least Windows CLOSED TREE
--HG--
extra : commitid : CP7XWRFUyfV
2015-11-22 23:00:58 -08:00
Matthew Gregan 43f3a0941b Bug 1225703 - Update in-tree libcubeb. r=padenot 2015-11-23 15:12:05 +13:00
Chris Pearce f74bb6b010 Bug 1226430 - Remove alg from ClearKey license parser. r=gerald 2015-11-23 09:58:51 +13:00
Boris Zbarsky 35f1292e72 Bug 1225603. Codegen ToJSValue overloads for Web IDL enums. r=smaug,jib 2015-11-21 12:15:11 -05:00
Randell Jesup 9cf12febe9 Bug 1220493: clean up validation of RTP headers r=pkerr 2015-11-19 11:49:25 -05:00
Landry Breuil f468ad9584 Bug 1226146: fix sndio audio_device backend after webrtc 43 landing in bug 1198458 r=jesup NPOTB 2015-11-19 09:48:26 -05:00
Byron Campen [:bwc] d43453c07e Bug 1175609 - Bring onnegotiationneeded in line with spec. r=mt
--HG--
extra : transplant_source : %D3Z%87AP%CC%BA%AA%0B%27z%A9bh%01%0A3%40%C7U
2015-11-16 17:05:39 -06:00
Randell Jesup d116f80e84 Bug 1198458: Fix typo in merges in OMX rs=bustage,kwierso
on a CLOSED TREE
2015-11-18 15:55:24 -05:00
Jan Beich 16d38a8bc6 Bug 1198458 Unbreak build on BSDs by fixing non-POSIX thread includes/usage. r=jesup
on a CLOSED TREE
2015-11-18 15:21:51 -05:00
Randell Jesup 9c83bc8f96 Bug 1198458: Rollup of changes previously applied to media/webrtc/trunk/webrtc and fixes to those rs=jesup r=froyd,jib,bwc,jesup,gcp,sotaro,pkerr,pehrsons
Landing as one rolled-up patch to avoid breaking regression tests, and in
keeping with previous WebRTC imports.  Broken out parts that needed review
are on the bug.
2015-11-18 15:03:25 -05:00
Randell Jesup 1d652361f7 Bug 1198458: Webrtc updated to branch 43; pull made 2015-09-29 09:00AM PDT rs=jesup
https://chromium.googlesource.com/external/webrtc
git checkout -b my_branch refs/remotes/branch-heads/43
commit 6979b024d7cebfdcd1e8f66da59ea157bbc9e47e (I believe)

--HG--
rename : media/webrtc/trunk/webrtc/build/tsan_suppressions_webrtc.cc => media/webrtc/trunk/webrtc/build/sanitizers/tsan_suppressions_webrtc.cc
rename : media/webrtc/trunk/webrtc/modules/audio_processing/utility/fft4g.c => media/webrtc/trunk/webrtc/common_audio/fft4g.c
rename : media/webrtc/trunk/webrtc/modules/audio_processing/utility/ring_buffer.c => media/webrtc/trunk/webrtc/common_audio/ring_buffer.c
rename : media/webrtc/trunk/webrtc/modules/audio_processing/utility/ring_buffer.h => media/webrtc/trunk/webrtc/common_audio/ring_buffer.h
rename : media/webrtc/trunk/webrtc/modules/audio_processing/utility/ring_buffer_unittest.cc => media/webrtc/trunk/webrtc/common_audio/ring_buffer_unittest.cc
rename : media/webrtc/trunk/webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_tests.isolate => media/webrtc/trunk/webrtc/modules/audio_coding/audio_codec_speed_tests.isolate
rename : media/webrtc/trunk/webrtc/modules/audio_coding/neteq/test/neteq_opus_fec_quality_test.cc => media/webrtc/trunk/webrtc/modules/audio_coding/neteq/test/neteq_opus_quality_test.cc
rename : media/webrtc/trunk/webrtc/modules/audio_processing/agc/analog_agc.c => media/webrtc/trunk/webrtc/modules/audio_processing/agc/legacy/analog_agc.c
rename : media/webrtc/trunk/webrtc/modules/audio_processing/agc/analog_agc.h => media/webrtc/trunk/webrtc/modules/audio_processing/agc/legacy/analog_agc.h
rename : media/webrtc/trunk/webrtc/modules/audio_processing/agc/digital_agc.c => media/webrtc/trunk/webrtc/modules/audio_processing/agc/legacy/digital_agc.c
rename : media/webrtc/trunk/webrtc/system_wrappers/source/system_wrappers_unittests.isolate => media/webrtc/trunk/webrtc/system_wrappers/system_wrappers_unittests.isolate
2015-11-18 15:03:22 -05:00
Ralph Giles e416737ae7 Bug 1225221 - vpx: allow 8k video. r=kinetik
Result of running update.sh with the new limit.
2015-11-16 11:10:00 -08:00
Ralph Giles 8f6696f4d2 Bug 1225221 - vpx: Allow 8k video in update.sh. r=kinetik
Raise the allowed frame size limit to allow 8k video
per gecko bug 1222145.
2015-11-16 11:09:00 -08:00
Ralph Giles e37a108abb Bug 1225217 - vpx: restore linux avx2 code in libvpx. r=kinetik
revert bug 1063356 part 5 now that all continuous integration
builds have sufficiently recent toolchains.
2015-11-16 10:58:00 -08:00
Landry Breuil 679a3084dd Bug 911450: followup, fix CriticalSectionScoped scope NPOTB r=jesup 2015-11-17 19:05:52 +01:00
Carsten "Tomcat" Book a22ff2640a Merge mozilla-central to mozilla-inbound 2015-11-17 12:33:46 +01:00
Carsten "Tomcat" Book 1cf9b8b2ab merge mozilla-inbound to mozilla-central a=merge 2015-11-17 12:26:16 +01:00
Landry Breuil 3f9b5a64be Bug 911450: webrtc sndio audio_device backend r=jesup
Most of the code originally from Alexandre Ratchov <alex@caoua.org>
2015-11-16 23:14:16 +01:00
Nils Ohlmeier [:drno] 1d8c0abcc0 Bug 1221837 - Accept hard coded codec numbers without rtpmaps. r=bwc
--HG--
rename : dom/media/tests/mochitest/test_peerConnection_basicAudio.html => dom/media/tests/mochitest/test_peerConnection_basicAudioPcmaPcmuOnly.html
extra : rebase_source : ca8ab16272e2b3fc58019518d3d31e43430e7283
2015-11-15 23:26:46 -08:00
David Anderson 8e086a182c Remove Gonk usage of ImageContainer::CreateImage. (bug 1222910, r=sotaro) 2015-11-17 00:09:01 -08:00
David Anderson 27bfc27d62 Decouple SharedRGBImage and PlanarYCbCrImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:01 -08:00
Wes Kocher c0ece6bf0d Merge m-c to fx-team, a=merge
--HG--
extra : commitid : 2bzybQqlwy0
2015-11-16 17:28:26 -08:00
Byron Campen [:bwc] a52533a8a3 Bug 1218326: Prevent datachannel operations on closed PeerConnections. r=jesup a=lizzard
--HG--
extra : commitid : 40ebY3LMneO
extra : rebase_source : b66bef2b46b8a70932e38824128cd930a9fba987
2015-10-28 12:48:17 -05:00
sajitk 582e1a55fa Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00
Jan de Mooij dabcd72958 Bug 1237201 part 6 - Handle Vector OOM in media/webrtc/. r=jesup 2016-01-14 15:19:33 +01:00
Randell Jesup d7077c329c Bug 1218217: bustage fix for static assert r=bustage
on a CLOSED TREE
2016-01-14 02:35:45 -05:00
Randell Jesup 6036210fe2 Bug 1218217: avoid buffersize overflow even if codec is unbounded in dimensions r=pkerr 2016-01-14 02:08:46 -05:00
Randell Jesup f2eebc5e16 Bug 1237224: Check sending framesize is set before calculating max fps when max-mbps is negotiated r=pkerr 2016-01-14 02:06:44 -05:00
James Willcox f15ace1296 Bug 1221228 - Work around busted OpenSL causing hangs/reboots on Android r=padenot 2015-11-13 08:40:46 -06:00
Ralph Giles 68f3cf2767 Bug 1218124 - Add vpx_once patch to update script. r=gerald
From 3fae7b20918a3a3c8a9dc6e7f92aef0d19fb20fa Mon Sep 17 00:00:00 2001
2015-11-12 17:00:07 -08:00
Ralph Giles 168bcdfbd5 Bug 1218124 - Use InterlockCompare in win32 vpx_once(). r=gerald
From 64f73cc1f7f57ca6643b027eae63041fec408ea8 Mon Sep 17 00:00:00 2001
2015-11-06 16:42:49 -08:00
Nils Ohlmeier [:drno] 6c9e203103 Bug 1223160 - added SDP parser file reader. r=bwc
--HG--
extra : rebase_source : f9f2057941364a4a496eb577f34b92c62550daaf
2015-11-09 13:57:29 -08:00
Gerald Squelart 33342972f0 Bug 1224019 - Disable Stagefright subset gtests - r=jya, rs=botond
These tests are exploratory, they don't particularly match whatever the
original issues were discovered, so it is safe to disable them for now.
A future bug will look at re-enabling them, but without all the output
that they generate.

--HG--
extra : rebase_source : c31b049d696d09094a8fb94f09525756840cf33f
2015-11-11 19:24:48 -05:00
Wes Kocher f3a9eb2a26 Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
--HG--
extra : commitid : BMVKq6cPeho
2015-11-11 09:36:56 -08:00
sajitk 3cbe348cdd Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
--HG--
extra : rebase_source : c73098485fa005d914304fb6e7f8eba3c15e66dc
2015-11-11 06:52:00 +01:00
Gerald Squelart a407a004d9 Bug 1216845 - Check fallible allocations - r=rillian
- Made externally-sized 'new' allocations fallible.
- Check return value of every new(fallible)/malloc/realloc.
- Consistently return -ENOMEM when allocations fail.
- MPEG4Extractor::getTrack() and getMetaData() can return null (because of
  failed parse or failed alloc); added missing checks in callers.

Note: Some allocs in the 2nd half of MPEG4Extractor have not been touched, as
they are in unused code to be removed in bug 1210319.
2015-11-11 12:37:53 +01:00
Gerald Squelart 305f63eb74 Bug 1216748 - p4. Check other Metadata::setData uses - r=rillian
Found only one other use that needed better checks: the size of the pssh
data was only checked after all items were added up; so it would be
possible to create a set of big items such that they create an overflow,
but the final sum looks reasonable.
Instead each item size should be checked, and the sum should also be
checked at each step.
2015-11-11 12:36:26 +01:00
Gerald Squelart 11139b4935 Bug 1216748 - p3. Ensure 'covr' data size cannot create underflow - r=rillian 2015-11-11 12:36:05 +01:00
Gerald Squelart e8a831bae2 Bug 1216748 - p2. Handle failed malloc in Metadata storage - r=rillian 2015-11-11 12:35:52 +01:00
Gerald Squelart fe2b536abd Bug 1216748 - p1. Added test case with different 'covr' sizes - r=rillian 2015-11-11 12:35:38 +01:00
Nils Ohlmeier [:drno] 2781200097 Bug 1208278 - improved STUN request timeout handling. r=bwc
--HG--
extra : rebase_source : 5db4b680b26eb5c4e9e69443602e3a0d8fbca247
2015-10-21 00:37:48 -07:00
Ralph Giles fb945d27e7 Bug 1220885 - Add telemetry probe for rust mp4parse success. r=kinetik p=ally
This is a boolean to record the overall success rate of the new
demuxer path.
2015-11-09 12:42:00 -08:00
Randell Jesup d90f4749ea Bug 800564: Handle MJPEG decode errors r=abr 2015-11-09 13:08:06 -05:00
Nils Ohlmeier [:drno] 8420475130 Bug 1220441 - Improve gather trickle ice unit tests. r=bwc r=mjf
--HG--
extra : transplant_source : %60%F7%F7%11%21%C1%10L%19u%C4M%11%40%E6%0F%D9%0AO%C5
2015-11-02 14:57:30 -08:00
hsteinbr e216ff61fb Bug 1211656 - GUM Constraints for screen sharing don't affect stream resolution. r=jib 2015-11-04 19:06:00 +01:00
Jeff Muizelaar bcf6317ef4 Bug 1217080. Move recycling functionality into RecyclingPlanarYCbCrImage. r=nical
This makes PlanarYCbCrImage abstract and moves the recycling functionality
into RecyclingPlanarYCbCrImage. This decreases the size of
SharedPlanarYCbCrImage and makes it possible for us to do part 3 of bug
1216644.
2015-11-06 13:55:31 -05:00
Gerald Squelart 2505b44960 Bug 1185230 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 23:20:00 +01:00
Gerald Squelart a7ce313646 Bug 1185230 - p2: Store MPEG4Source::mTimescale as uint32_t - r=rillian
The timescale is read as an unsigned integer, but was stored signed in MPEG4Source,
causing it to overflow into a negative number if too big, causing later issues when
exporting indices with negative timestamps.
2015-11-05 20:10:00 +01:00
Gerald Squelart 439afcf535 Bug 1181213 - Added Added mp4 test case to libstagefright gtest - r=rillian
Note: This bug is effectively fixed by bug 1181215, so only this test case is
provided to prove the successful resolution of this bug.
2015-11-05 19:12:00 +01:00
Gerald Squelart 468dab6c37 Bug 1181215 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:11:00 +01:00
Gerald Squelart 15f513a32e Bug 1181215 - p2: Better track verification - r=rillian
Copied some tests from MPEG4Source constructor to MPEG4Extractor::verifyTrack
so that we don't get late surprises, in particular a missing track ID.
2015-11-05 03:11:00 +01:00
Gerald Squelart 1a225cc661 Bug 1181220 - p2: Check if MIME types are valid - r=rillian 2015-11-05 19:10:00 +01:00
Gerald Squelart d26da5bb6a Bug 1181220 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:08:00 +01:00
Gerald Squelart 007ffc84ce Bug 1181223 - p2: Handle wrong saio/saiz size instead of assuming it is correct - r=rillian 2015-11-05 19:06:00 +01:00
Gerald Squelart 35a07e897c Bug 1181223 - p1: Added mp4 test case to libstagefright gtest - r=rillian 2015-11-05 19:05:00 +01:00
Gerald Squelart 0cd18ff32b Bug 1181719 - p1: Added mp4 test case to libstagefright gtest - r=rillian
Remove mdat, which is big and not useful in this test that only looks at
metadata.
2015-11-05 19:01:00 +01:00
Gerald Squelart 1f8be14a2b Bug 1181719 - p2: Check numBitsLeft before each getBits - r=rillian 2015-11-04 23:42:00 +01:00
Mike Hommey 4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Mike Hommey 762aba02cd Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Nathan Froyd e763192040 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
Ralph Giles 11afc76455 Bug 1189531 - Check for nullptr in convertTimeToDate. r=gerald
In current code it's not possible to pass nullptr, but there's
no harm in checking.

See also bug 1156891.
2015-11-04 14:43:00 -08:00
Ralph Giles 75e08b8620 Bug 1221656 - Update rust mp4parse to v0.1.4. r=kinetik
New upstream release.

- turn off debug trace messages by default.
- better rejection of bad ftyp boxes.
2015-11-04 10:15:00 -08:00
Ralph Giles 7c6d20d965 Bug 1221656 - Copy mp4parse.h in update-rust.sh. r=kinetik
We had added this header manually at some point, but the script
wasn't updating it.

Also bump the default mp4parse version to the latest.
2015-11-04 10:14:00 -08:00
Michael Froman e3f3d60e8c Bug 1192813 - update the default candidate as new candidates arrive. r=bwc 2015-10-01 10:20:11 -05:00
Nicolas Silva 1ebb1e2bb7 Bug 1219330 - Handle PlanaYCbCrImage::SetData failure. r=jya, jesup 2015-11-03 12:24:26 +01:00
Nils Ohlmeier [:drno] 944e3aaf48 Bug 1192403 - improve ICE TCP error message. r=mjf
--HG--
extra : transplant_source : -%25t%10%26%91%3EnY%1F%24%22%E2%94%24%B5%98%24c%16
2015-08-08 00:39:32 -07:00
Ralph Giles 62347f7023 Bug 1220882 - Use LazyLogModule in MP4Metadata. r=kinetik
Use the new LazyLogModule to instantiate a log for the rust
mp4parse test code instead of using indiscriminate printf()s.

Access results with NSPR_LOG_MODULES=MP4Metadata:5.
2015-11-02 16:19:00 -08:00
Randell Jesup ab137c3506 Bug 1176340: short-circuit self-assignment of DesktopDisplayDevice r=jib 2015-11-02 16:51:59 -05:00
Ralph Giles 0f8b14b1fe Bug 1219047 - Call rust mp4parser with logging. r=kinetik
Add a helper for passing the initialization segments
of mp4 streams to the rust parser and log the result.

This runs real data through the new parser for testing
but doesn't use the results.

Code is conditional on MOZ_RUST_MP4PARSE to be defined
in confvars.sh. See bug 1219530.
2015-11-02 11:39:00 -08:00
Ralph Giles 38b78f20c9 Bug 1220754 - Update rust mp4parse to v0.1.3. r=kinetik
New upstream release.

- We now require rust 1.4 for Box::into_raw().
- New mp4parse::Error types.
- Fix memory exhaustion bug with bad ftyp boxes.
2015-11-02 10:15:00 -08:00
Ralph Giles 01d264dc6e Bug 1220754 - Update rust mp4parse import script for v0.1.3. r=kinetik 2015-11-02 10:14:00 -08:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Makoto Kato 4e0d8487b0 Bug 1220043 - Add workaround for internal complier error by VS2015. r=rjesup 2015-10-30 17:08:30 +09:00
Makoto Kato b119d108ab Bug 1219566 - Add aarch64 macro to webrtc/trunk/build/build_config.h. r=rjesup 2015-10-30 17:08:25 +09:00
Makoto Kato e5902f9e56 Bug 1219228 - Generate correct source path of cpu-features.c. r=glandium 2015-10-30 12:23:42 +09:00
Ralph Giles dd78673eec Bug 1219475 - Fix a comparison warning. r=gerald
Coercing the shift to a bool makes the comparison useless.
This just affects whether a warning is printed, so there's
no change to what files we accept.

We also need to mask of the high 'Starts with SAP' bit
which is usually set and would replace our false negative
with a false positive. ISO/IEC 14496-12:2012(E) sec. 8.16.3.2
2015-10-28 16:10:00 -07:00
Nicholas Nethercote a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
Ralph Giles a370569334 Bug 1219452 - Fix unused attribute warning. r=kinetik
Results of running the new update-rust script.

- Include some #[inline] directives missed in bug 1215234.
- Remove #[crate-name] directive to silence a warning caused
  by our building byteorder as a submodule instead of a crate.
2015-10-28 15:29:09 -07:00
Ralph Giles 5ffe01b5a7 Bug 1219452 - Update script for rust mp4parser. r=kinetik
Automate update and patching of the rust mp4 parser from the
upstream repo. A rev for mp4parse-rust can be passed on the
command line, but the byteorder crate's version is hardcoded.

Differences to adapt to the gecko build system are applied as
patches like we do for other media code.

Unfortunately cargo isn't much help here. It can download
crates for us, and we can set CARGO_HOME to force it to
use a specific directory, but it doesn't return enough
information to get the versions, etc. without some guessing/scraping
to find the packaged source.
2015-10-28 15:28:16 -07:00
Jean-Yves Avenard aee82bf660 Bug 1195094: P1. Properly detects SPS changes for decoders requiring Annex B. r=cpearce 2015-10-29 00:46:31 +11:00
Byron Campen [:bwc] 2a66036623 Bug 1212908 - Update a=simulcast to match new grammar in 03 draft. r=mt
--HG--
extra : transplant_source : %16%0B8%F7%12%C4%E18j%BF%C4%F6%8A%F3%96p_%90Q%96
2015-10-20 10:31:26 -05:00
Nils Ohlmeier [:drno] 380290f5b6 Bug 1198883 - Part 2: Added WebRTC ICE candidates to Telemetry. r+vladan
--HG--
extra : transplant_source : %19%C7%F3%06%7F%86%08%3Bx%C4%C7%E8%F7Q%D1%0EN%AE%E6%EC
2015-10-08 14:44:50 -07:00
Nils Ohlmeier [:drno] de1c29e7b4 Bug 1198883 - Part 1: Improve ICE candidates telemetry probes. r=bwc
--HG--
extra : transplant_source : %A7J%AD%B6P%B0%95%B1_o%11n%25%A0%9DI%AE%DB_%26
2015-10-08 13:32:32 -07:00
Kyle Huey c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Eugen Sawin 0390a166fa Bug 1163667 - [2.1] Extend ByteReader interface with CanRead32(). r=jya 2015-10-26 18:30:52 +01:00
Nils Ohlmeier [:drno] 1622f57a40 Bug 1216815 - fix memory leaks in test TCP STUN server. r=mjf
--HG--
extra : transplant_source : %23%AE%89%D1%AD%D2Sr%ED%0DKc%14%C3%3F%CC%CC%86%99%B8
2015-10-20 17:07:09 -07:00
Byron Campen [:bwc] 29e45beb5c Bug 1214279: Fix the same infinite loop from bug 957236 in a different place. r=drno 2015-10-22 16:40:38 -04:00
Ralph Giles 0c54ce8b79 Bug 1217261 - Update mp4parse_rust gtest for api changes. r=kinetik.
Allocate an mp4parse_state struct and pass it through.
2015-10-21 18:53:41 -07:00
Ralph Giles ec66a95c8b Bug 1217261 - Update mp4parse-rust to v0.1.2. r=kinetik
This switches to #[derive(Debug)] for trace println!s, and
updates the C api wrapper to thread through the new MediaContext
as an opaque struct. The idea is to be able to query it later.

'extern crate byteorder' converted to 'mod byteorder'.
2015-10-21 18:53:26 -07:00
Mike Hommey 3de00b45dd Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Eric Rahm f296bb10b2 Bug 1174785 - Part 0: Use mozilla/StaticPtr.h in signaling. r=jesup
Moving xpcom/glue/Logging.h to xpcom/base/Logging.h causes build failures in
signaling due to include conflicts. Rather than having signaling include
'xpcom/base' directly we can switch it over to using the installed headers
under 'mozilla'.

--HG--
extra : rebase_source : aff44b19c23a1948a9c03b2fd4886be6280422a7
2015-10-15 12:02:28 -07:00
Nicholas Nethercote 5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
Ralph Giles ed4d10cea4 Bug 1215696 - Update tests for mp4parse v0.1.1. r=kinetik
Now that this is returning the correct number of tracks for
the test file we can un-XFAIL.
2015-10-19 16:30:52 -07:00
Ralph Giles 1c5fbb1d62 Bug 1215696 - Update mp4parse-rust to v0.1.1. r=kinetik
Change is just to loop over the input buffer in read_box_from_buffer()
so we parse the entire contents instead of just the first box.

'extern crate byteorder' converted to 'mod byteorder'.
2015-10-19 16:30:43 -07:00
Wes Kocher 1492cb26ec Backed out 2 changesets (bug 1215696) for build bustage causing a CLOSED TREE
Backed out changeset c1c69af32aa7 (bug 1215696)
Backed out changeset a186c0afb34f (bug 1215696)
2015-10-19 15:02:56 -07:00
Ralph Giles 2250d068e3 Bug 1215696 - Update tests for mp4parse v0.1.1. r=kinetik
Now that this is returning the correct number of tracks for
the test file we can un-XFAIL.
2015-10-19 14:15:37 -07:00
Ralph Giles 2e0c0bdbde Bug 1215696 - Update mp4parse-rust to v0.1.1. r=kinetik
Change is just to loop over the input buffer in read_box_from_buffer()
so we parse the entire contents instead of just the first box.

'extern crate byteorder' converted to 'mod byteorder'.
2015-10-19 14:15:37 -07:00
Ehsan Akhgari ecda739d3e Bug 1216177 - Remove the remaining nsRefPtr forward declarations; r=froydnj 2015-10-19 12:02:14 -04:00
Byron Campen [:bwc] 61d275e7db Bug 1212907 - a=rid support. r=mt
--HG--
extra : rebase_source : a9547d76a83de75304db263a5beb67295a362238
2015-10-08 16:55:39 -05:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Nils Ohlmeier [:drno] eaaf58dece Bug 1215616: use base address for server rflx ICE candidates r=bwc 2015-10-17 11:34:01 -04:00
Ralph Giles 2a418be9e4 Bug 1215234 - Update gtest for mp4parse-rust v0.1.0. r=kinetik
read_box_from_buffer now returns the (alleged) number of tracks,
or -1 on error instead of a bool. It currently returns 0 for
the test file instead of 2, so I marked that line with an XFAIL
comment for now.
2015-10-15 16:26:52 -07:00
Ralph Giles 00f4fa8146 Bug 1215234 - Update mp4parse-rust to v0.1.0. r=kinetik
'extern crate byteorder' converted to 'mod byteorder'.
2015-10-15 16:26:44 -07:00
Ralph Giles 705c464ab4 Bug 1215234 - Update to byteorder v0.3.13. r=kinetik
This just adds inline directives. The 'use' directive in new.rs
is updated to work inside our crate as before.
2015-10-15 16:26:37 -07:00
Byron Campen [:bwc] c80a5ed958 Bug 1208176 - Part 3: Be forgiving when we see prflx instead of host candidates in ice_unittest. r=drno
--HG--
extra : rebase_source : efe5b4e6c631a354d70ccbdd53427a282d254222
2015-10-06 15:09:45 -05:00
Byron Campen [:bwc] c513778651 Bug 1208176 - Part 2: Add a one-sided trickle test case to ice_unittest. r=drno
--HG--
extra : rebase_source : 24f6c0d825a2f0fc161197c0143e0808c6df67f2
2015-10-06 15:07:19 -05:00
Byron Campen [:bwc] eafccd90eb Bug 1208176 - Part 1: Add a couple of interface names. r=drno
--HG--
extra : rebase_source : 5c5f621394ed6b69893c58ec13c50ad71272608a
2015-10-06 15:06:36 -05:00
Chris Pearce efe66b4aca Bug 1214469 - Ensure gmp-clearkey accounts for mNumInputTasks when flushing. r=gerald 2015-10-14 19:42:24 +13:00
Sebastian Hengst 5436f69da6 Bug 1113443 - reject each media type with approriate default. r=bwc 2015-10-11 18:13:09 +02:00
Byron Campen [:bwc] 4204f5899a Bug 1211389 - Make absolutely sure the relay->srflx pointer doesn't dangle. r=drno 2015-10-05 14:32:22 -05:00
Gerald Squelart 60a48742e4 Bug 1211741 - Remove libstagefright ID3 files. r=k17e 2015-10-06 14:24:00 +02:00
Ted Mielczarek dcced52d74 bug 1176196 - update libjpeg-turbo to 1.4.2. r=jrmuizel
--HG--
extra : commitid : E8TzkSU0TOC
extra : rebase_source : df175815820cba7829062fd69f93f9a8aeceb473
2015-10-05 09:31:36 -04:00
Nils Ohlmeier [:drno] 2008bdc867 Bug 1211091 - use upper boundary for streams per data channel. r=bwc
--HG--
extra : transplant_source : %01%C3%B6%8C4%BA%7C%D2M%F6%98e%D5h%828%20%8D%17%FE
2015-10-02 21:18:48 -07:00
Jan Henning 7db0ee08cb Bug 1202286 - Part 0 - Add some explicit namespace references to keep the compiler and IntelliSense happy. r=esawin
DecoderTraits.cpp pulls in MP3Demuxer.h which in turn pulls in mp4_demuxer/ByteReader.h. In that context, for some reason the ByteReader can't find the definition for MediaByteBuffer unless it is prefixed with the proper namespace.

MP3Demuxer.cpp itself compiles fine, but for some reason in Visual Studio IntelliSense complains about TimeUnit and TimeIntervals being undefined unless the using statement uses the full namespace hierarchy.

Also fix a small typo.

--HG--
extra : rebase_source : fc46fc82bf06b61c9ac31c2f4331f84f8557c51e
2015-10-01 11:29:48 +02:00
Gerald Squelart 8d3b440600 Bug 1156505 - p2: Null-check sampleTable before use. r=rillian 2015-10-02 16:13:00 +02:00
Gerald Squelart 3912254dc2 Bug 1156505 - p1: Added test case file from bug. r=rillian 2015-10-05 04:01:00 +02:00
Nigel Babu 81457d9f19 Backed out changeset b05d8992f36c (bug 1156505) for build bustage on a CLOSED TREE
--HG--
extra : amend_source : 713237598ed473d81ac91f800a7e8601bc1f777d
2015-10-05 12:40:46 +05:30
Nigel Babu 20b4fdf19f Backed out changeset dd628d2021d5 (bug 1156505) 2015-10-05 12:40:44 +05:30
Gerald Squelart ffc47660b8 Bug 1156505 - p2: Null-check sampleTable before use - r=rillian
--HG--
extra : rebase_source : 9bacf9a568f1020ba19957cba06f3792b4e7c325
2015-10-02 16:13:00 +02:00
Gerald Squelart 9e0bca97d2 Bug 1156505 - p1: Added test case file from bug - r=rillian
--HG--
extra : rebase_source : 3ed46238e2e70b355aa9bb3a7628f2168cfb5203
2015-10-01 00:59:00 +02:00
Carsten "Tomcat" Book e91d5a31b6 Merge m-c to mozilla-inbound 2015-10-02 13:37:27 +02:00
Carsten "Tomcat" Book ca77b70a8d merge mozilla-inbound to mozilla-central a=merge 2015-10-02 11:52:49 +02:00
Gerald Squelart 1fe6483699 Bug 1204580 - p2: Check box ranges. r=rillian 2015-10-02 09:20:39 +02:00
Gerald Squelart 9a4c54dec5 Bug 1204580 - p1: Added test case files. r=rillian 2015-10-02 09:20:13 +02:00
Byron Campen [:bwc] 36ac94db5d Bug 1208096 - Handle various failure cases for TURN gathering better. r=drno
--HG--
extra : transplant_source : S%06%02%9F%60%C1%BEu%0A%7FB%FFwx%E0%93%C6%81%AD%19
2015-09-24 14:12:37 -05:00
Mike Taylor 8b3f3c5f86 Bug 1041882 - Remove Froyo-specific OMX plugin support. r=snorp 2015-09-26 09:06:00 +02:00
Mike Taylor 06ee049247 Bug 1041882 - Remove Froyo-specific support from libcubeb. r=snorp, r=padenot 2015-09-26 09:05:00 +02:00
Andreas Pehrson 937747498a Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : fba22e96c6c65a74e012509f3da67a4d7df7a244
2015-09-30 09:31:54 +08:00
Andreas Pehrson 2802ee3e88 Bug 1170958 - Add input stream and track as args to NotifyQueuedTrackChanges. r=roc
This allows for tracking the input track of an added track (for
ProcessedMediaStream tracks; SourceMediaStream tracks don't have input
tracks) directly in the NotifyQueuedTrackChanges handler, which will be
necessary for locking MediaInputPorts to specific tracks.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 4bed5dffe66b71b7ad23f4c02531d84af25cd316
2015-09-30 09:31:53 +08:00
Martin Thomson afdaddf1d7 Bug 1155923 - Removing moz prefix from RTC interfaces, r=jesup,smaug
--HG--
extra : transplant_source : %0Adu%1E%A6j%9E%C2B%25%ECruo%F7%7Fc%EA%99%18
2015-09-28 11:25:04 -07:00
Nils Ohlmeier [:drno] 2a1411fa20 Bug 1206465 - removed ice_ctx from TestStunTcpServer. r=bwc
--HG--
extra : rebase_source : 88db248915f75421f881f293ed08963065a21b31
2015-09-18 23:25:38 -07:00
Carsten "Tomcat" Book 4952084732 Backed out 3 changesets (bug 1155923) for causing test failures in promises-call.html
Backed out changeset 321a932e01a7 (bug 1155923)
Backed out changeset 6ac38acd6ab2 (bug 1155923)
Backed out changeset 2981db92416a (bug 1155923)
2015-09-28 14:02:41 +02:00
Gerald Squelart 29585ecb47 Bug 1200326 - p4 - Added test case from bug 1200326, with more checks - r=rillian 2015-09-26 04:44:00 +02:00
Gerald Squelart 842c4906d8 Bug 1200326 - p3 - Test case filenames are now in a list, to allow adding more tests - r=rillian 2015-09-26 04:43:00 +02:00
Gerald Squelart 3d366a1473 Bug 1200326 - part 2 - Parse subsets of the input stream - r=rillian
In addition to starting parsing at different points across the input stream,
different sizes are given, from the minimum step size up to the remainder of the stream.

--HG--
extra : amend_source : 1d98d71cba9bf87f4501b3a554a3c7fa0adc81bc
2015-09-26 04:42:00 +02:00
Gerald Squelart 8e4e911bcf Bug 1200326 - P 1 - Moved test case contents from test source into separate file - r=rillian
This will make it easier to modify input files and add more of them.
2015-09-26 04:40:00 +02:00
Martin Thomson 9c3bef623e Bug 1155923 - Removing moz prefix from RTC interfaces. r=jesup r=smaug
--HG--
extra : transplant_source : 1%F0%A8%03%D3%B9OAJW%06v%21%F1WX%03im%22
2015-09-24 16:31:47 -07:00
Jean-Yves Avenard 28995f8c35 Bug 1207441: [mp4] Ignore invalid tracks. r=gerald
This is designed to minimize the chance of regressions.
2015-09-28 14:12:47 +10:00
Wes Kocher 03a1803261 Backed out 9 changesets (bug 1170958) for frequent test_getUserMedia_addTrackRemoveTrack.html failures
Backed out changeset 277c1f8098d1 (bug 1170958)
Backed out changeset aa86bb9eea95 (bug 1170958)
Backed out changeset 8af8b85a4b26 (bug 1170958)
Backed out changeset ec1bf225e9cb (bug 1170958)
Backed out changeset 4a04ddca2b6b (bug 1170958)
Backed out changeset e85c9977a311 (bug 1170958)
Backed out changeset 16b40ff04e8f (bug 1170958)
Backed out changeset ad206925c84a (bug 1170958)
Backed out changeset 2106eccec79b (bug 1170958)
2015-09-25 13:08:55 -07:00
Randell Jesup f4030f94ef Bug 1207824: Add Telemetry for WebRTC call type, simultaneous tracks, and renegotiations r=bwc 2015-09-25 14:23:01 -04:00
Andreas Pehrson eacfc2cf0e Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.

--HG--
extra : commitid : Kvj9RrN9MgP
2015-09-25 23:23:18 +08:00
Andreas Pehrson 7aca9eb1fd Bug 1170958 - Add input stream and track as args to NotifyQueuedTrackChanges. r=roc
This allows for tracking the input track of an added track (for
ProcessedMediaStream tracks; SourceMediaStream tracks don't have input
tracks) directly in the NotifyQueuedTrackChanges handler, which will be
necessary for locking MediaInputPorts to specific tracks.

--HG--
extra : commitid : Kvj9RrN9MgP
2015-09-25 23:23:17 +08:00
Nicholas Nethercote 842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Randell Jesup 69e6fe68f6 Bug 953265: Adjust Opus bitrate in WebRTC to pass >8KHz audio, and comment r=bwc 2015-09-24 09:23:37 -04:00
Randell Jesup 93f63e0a1a Bug 953265: Update webrtc/getUserMedia default audio capture rate to 32KHz r=padenot 2015-09-24 09:23:37 -04:00
Jean-Yves Avenard b048d19b03 Bug 1206211: P2. Abort on OOM. r=kentuckyfriedtakahe 2015-09-24 16:42:54 +10:00
Jean-Yves Avenard 5414266df5 Bug 1206211: P1. Ensure operation can't overflow. r=kentuckyfriedtakahe 2015-09-24 16:42:54 +10:00
Jean-Yves Avenard 4b6099e165 Bug 1207478: P2. Prevent potential division by zero. r=gerald 2015-09-24 16:42:52 +10:00
Jean-Yves Avenard 7d65b942c5 Bug 1207478: P1. Prevent microseconds calculation overflow. r=gerald
This leaves us safe until year 294441 (assuming unix timestamp).
2015-09-24 16:42:51 +10:00
Randell Jesup 6027a43516 Bug 1207416: Add Telemetry for time spent in different Load states in WebRTC r=gcp 2015-09-23 14:10:28 -04:00
Nils Ohlmeier [:drno] d8aad7f00e Bug 1206981 - prevent ICE TCP from being turned off under e10s. r=jesup
--HG--
extra : rebase_source : 22fff856ca08d7f5d35f0d562e39ba925653ecc5
2015-09-21 17:55:23 -07:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Jean-Yves Avenard c5be92978d Bug 1207021: [mp4] Properly set dts on plain mp4 media. r=edwin 2015-09-23 12:59:26 +10:00
Jean-Yves Avenard d9647c7d7e Bug 1138992: P2. Add gtest. r=kentuckyfriedtakahe 2015-09-23 12:59:24 +10:00
Jean-Yves Avenard 9626f348b2 Bug 1138992: P1. Ignore ctts version if we have 0 samples in the table. r=kentuckyfriedtakahe 2015-09-23 12:59:24 +10:00
Nicholas Nethercote ab464dd743 Bug 1205930 - Tighten up warnings handling in media/omx-plugin/. r=gerald.
MetaData.h uses multi-char literals. This is kind of gross but probably safe
and hard to change, so this patch allows it while disallowing all other
compiler warnings. (This approach is already used in dom/media/moz.build.)

(An aside: I originally tried using |#pragma GCC ignoring -Wmultichar| to
temporarily disable the warnings in MetaData.h. But that works in gcc but not
in g++ because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431!)

--HG--
extra : rebase_source : 15ab8d3d6fe4d102b54e270ac7a6ff06af4cbe42
2015-09-20 22:10:01 -07:00
"Chih-Kai (Patrick) Wang" 028e16c84d Bug 950660: Part 4: Bridge TCPSocketChild to nr_socket r=bwc,jdm
Improve use of TCPSocket to track in-flight writes and suppress extra runnables
Adds lots of logging to nr_socket_buffered_stun.c
Rework mtransport code to use new TCPSocketChild interface
2015-01-05 15:49:50 +08:00
Nils Ohlmeier [:drno] 8e7eb5231c Bug 1205421 - fix DNS resolution of STUN server in ice_unittest. r=bwc
--HG--
extra : transplant_source : %CA%C8M%F6%8DrK%8D%113%C9%D512C%96%06%B8%86o
2015-09-16 13:42:57 -07:00
Michael Froman 41d164744a Bug 1095793 - use mid if provided to place candidate in msection. r=bwc
--HG--
extra : rebase_source : e85bbde1c0cbd3733f82a11c98245079ea1cbf5c
2015-09-10 13:20:09 -05:00
Gian-Carlo Pascutto 7979c10284 Bug 1192203 - Extract a robust version of getSupportedPreviewFpsRange. r=jesup 2015-09-16 16:17:49 +02:00
Wes Kocher 9379203266 Backed out changeset 51994c27948c (bug 1197280) for test_eme_non_mse_fails.html failures CLOSED TREE 2015-09-16 14:39:03 -07:00
Ralph Giles 02eebef322 Bug 1197280 - Use CheckedInt instead of manual comparison. r=baku,gerald
This is less error-prone and somewhat easier to read.
Based on a patch from Joshua J. Drake and suggestions
from Andrea Marchesini.

NB CheckedInt<T>::value() returns a T, so the comparison with
SIZE_MAX should always succeed. Doesn't warn on clang though.
2015-09-16 11:44:31 -07:00
Byron Campen [:bwc] 28466e3c45 Bug 1203246 - Factor track negotiation stuff out of JsepSessionImpl, and other simplification. r=mt
--HG--
extra : rebase_source : b409ca7f76ed9db9ec639e16b82590ae0c2f9bb6
2015-08-25 08:16:38 -05:00
Nils Ohlmeier [:drno] 2eb4be8e7c Bug 1204082 - try strtoull instead. r=mt
--HG--
extra : rebase_source : 70d4de95ee6f7757a8b37ed609dd8efb9ee05107
2015-09-14 16:33:28 -07:00
Kelly Davis 4e9539d667 Bug 1202989 - Added check for 0 length phones string in addition to NULL. r=andrenatal 2015-09-09 08:37:00 +02:00
Jean-Yves Avenard a927b107f0 Bug 1205179: [mp4] Don't reject 7 bytes long avcC atom. r=gerald
An AVC3 stream will typically use 7 bytes avcC (due to have 0 SPS/PPS)
2015-09-16 18:14:18 +10:00
Jean-Yves Avenard 69d5bfe389 Bug 1189992: Don't assume the last chunk always contains the sample we're looking for. r=gerald
If a chunk contains no samples it should be skipped and continue the search (and maybe hit EOS)
2015-09-16 12:37:47 +10:00
Martin Thomson f2d864c210 Bug 1125292 - Sending ALPN header field for WebRTC calls, r=bwc
--HG--
extra : commitid : 76muueM8Vfu
extra : amend_source : 0bdbcb10d875a100a91fd583bb863958a24c127c
2015-09-15 10:28:34 -07:00
Jean-Yves Avenard 3ab91d9f87 Bug 1197086: Change error into verbose only. r=rillian
the kKeyMaxInputSize is no longer used to determine the size of the allocated memory buffer as it's now dynamic.
2015-09-15 11:27:37 +10:00
Jean-Yves Avenard 123ded9cd5 Bug 1202012: P2. Make stagefright works on big-endian systems. r=rillian 2015-09-15 11:27:37 +10:00
Jean-Yves Avenard c6d2e5e3fa Bug 1202012: Use QTv2 header when available. r=rillian 2015-09-15 11:27:36 +10:00
Jean-Yves Avenard c90766327d Bug 1186716: Error if SPS NAL parsing failed. r=rillian
--HG--
extra : rebase_source : f06f2da854db0df3e0472ead49deaeab051501b4
2015-09-14 15:34:33 -07:00
Ralph Giles 7a066ceb75 Bug 1203736 - Convert H264::DecodeSPS assert to error return. r=jya
This lets us verify checking in a gtest.

--HG--
extra : rebase_source : 01906b3541c7153e3e207f62cc31b94f75281ec4
2015-09-10 14:48:17 -07:00
Byron Campen [:bwc] c59ebacca3 Bug 1186590 - Part 2 - Move hard-coded interface priority list into nrinterfaceprioritizer, and simplify some functions. r=drno
--HG--
extra : rebase_source : 63cd39c3a1b721c78244064b32338643c7e0e436
2015-09-04 15:25:37 -05:00
Byron Campen [:bwc] 0909da6121 Bug 1186590 - Part 1 - Enable interface prioritizer on all platforms. r=drno
--HG--
extra : rebase_source : 7a7b4d0481561a71aed0f3fa46aceaf297afefcc
2015-09-02 15:06:58 -05:00
Jean-Yves Avenard a0d1bf988d Bug 1185115: P2. replace all stagefright::Vector with nsTArray. r=kentuckyfriedtakahe 2015-09-12 19:57:15 +10:00
Jean-Yves Avenard ccb0cb109c Revert "Bug 1185115: P2. replace all stagefright::Vector with nsTArray. r=kentuckyfriedtakahe"
This reverts commit 757c4bd76326
2015-09-12 16:57:43 +10:00
Jean-Yves Avenard 2842b5f002 Bug 1185115: P2. replace all stagefright::Vector with nsTArray. r=kentuckyfriedtakahe 2015-09-12 16:47:30 +10:00
Johannes Pfrang 025fee3612 Bug 1202266 - Suppress '-Wformat-security' in libstagefright CXXFLAGS. r=kentuckyfriedtakahe
--HG--
extra : rebase_source : a93c2b3648b6dd14bf0a679fa241e8780c693780
2015-09-10 09:49:00 +02:00
Ralph Giles a54711a5f4 Bug 1202677 - Reject mp4 streams with short avc chunks. r=gerald 2015-09-08 14:03:44 -07:00
Paul Kerr [:pkerr] 931b933075 Bug 1030324: Remove VP8 encoder resize work around. r=rjesup
The VP8 encoder was re-initialized completely when the frame size changed
instead of calling the vpx_enc_config_set() method. The work around is not
longer needed.
2015-09-08 11:02:40 -07:00
Matthew Gregan d608d9a310 Bug 1200148 - Sanity check header lengths in Vorbis CodecData. r=derf 2015-09-08 11:44:45 +12:00
Ralph Giles bd0011b79c Bug 1187076 - Warn at end of SPS buffers. r=jya
Previously we asserted if we tried to read past the end
of a buffer in parsing H.264 SPS headers. This only affected
debug builds, but the failures were reported as crashes in
automated testing.

Therefore, commute the assert to a warning and silently accept
bad data of this type. The read is safe with the first assert
removed because of the subsequent check, and a similar one in
the parent class.
2015-09-08 21:46:22 -07:00
Nicholas Nethercote 24cd9d5226 Bug 1203005 - Remove all traces of -Wdeclaration-after-statement. r=glandium.
Even though we compile C code as C99, we used to need
-Wdeclaration-after-statement because MSVC didn't allow declarations after
statements.

However, Visual Studio 2013 added support, so we can now merrily mix
declarations and statements everywhere. Hooray.

--HG--
extra : rebase_source : 00a89fed733008785429827408a0c6c466971080
2015-09-09 04:57:44 -07:00
Byron Campen [:bwc] feb3886659 Bug 1200763 - Remove hard-coded STUN IP address from ice_unittest, and do a DNS lookup instead. r=drno
--HG--
extra : transplant_source : %A0%B1z%00%7E%0B3n%C5%0A%15%5E%E5%15M%AD%CF%01n%D8
2015-09-04 10:21:12 -05:00
Gerald Squelart 14790add1a Bug 1187067 - Added gtests using the bug's test file, running simple checks and many parsing runs to catch parser crashes. r=rillian 2015-09-04 07:07:00 +02:00
Gerald Squelart 6666b45098 Bug 1187067 - Null-check mLastTrack before dereferencing it - r=rillian 2015-09-03 00:58:00 +02:00
Michael Froman 5b41dcab91 Bug 1051052 - Made mid an outparam in JsepSession::AddLocalIceCandidate. r=bwc
--HG--
extra : transplant_source : %A4P%E5%0CuZ%DE%86%D2%C5u%3FhV%DBe%A9%CD%BC%8C
2015-09-01 16:40:00 -05:00
Michael Froman 4d7947ace5 Bug 1008792 - Check for valid pointer before using. r=bwc
--HG--
extra : transplant_source : %5E%08%E9.%109b%25e%97%0C%ED%5D%3F%2A1/%93%8A%B0
2015-09-01 11:52:43 -05:00
Gerald Squelart f40848d246 Bug 1201404 - Implement minimal gtests to exercise the MPEG4 parser - r=rillian 2015-09-03 00:05:00 +02:00
Byron Campen [:bwc] 379ef453c3 Bug 1201209 - Extend the timeout on socket readiness in test_nr_socket_unittest. r=drno
--HG--
extra : transplant_source : Y%C5%23%21%80%3B%AD%98%F2%23%C2pU%3E0%82%11%16%13%B2
2015-09-02 14:27:07 -05:00
Pavlo 9704fc6569 Bug 1037997 - Added possibility to choose monitors during screen capturing. r=florian,jesup
--HG--
extra : rebase_source : 6b2476d5c03dffa27c8a5c570ec1392d332b81d2
2015-09-03 07:24:00 +02:00
Ralph Giles 03b4683f2c Bug 1186715 - Add diagnostic asserts. r=k17e 2015-08-19 10:33:13 -07:00
Byron Campen [:bwc] 929bf0a871 Bug 1094447 - Use UDP/TLS/RTP/SAVPF for audio/video m-lines. r=drno
--HG--
extra : transplant_source : 7%D7%A9%81H%CCF%BD%29%3E%16%94%F2%CE%3E%8FD%A0%A5%99
2015-09-01 17:15:30 -05:00
Nils Ohlmeier [:drno] 03ad9c30eb Bug 1199766 - Disable ICE TCP SO gathering via user pref. r=bwc
--HG--
extra : transplant_source : %60%C8%88-%E0%F2%9F%3FMn%A8%7C%3Ah%94s%D2%99%2AX
2015-08-28 13:22:45 -07:00
Paul Adenot 2e5e264e67 Bug 901633 - Part 16 - Remove another allocation in the sending side. r=jesup
--HG--
extra : rebase_source : 1bf54b42e91ad549e33fbe163097cff83085dde1
2015-09-01 14:26:14 +02:00
Paul Adenot 5d3591994f Bug 901633 - Part 15 - Remove an allocation on the sending side, out of the packetizer. r=jesup
--HG--
extra : rebase_source : c0fae0eb11531618e9f99e094082ef4ca30cff44
2015-09-01 14:26:13 +02:00
Paul Adenot c0fd8df08b Bug 901633 - Part 11 - Add an API in webrtc.org's output mixer to get the output channel count. r=jesup
--HG--
extra : rebase_source : 15ca543bb0a7f3a0b79ab10531613cee605b3e7b
2015-09-01 14:25:48 +02:00
Paul Adenot db0807f658 Bug 901633 - Part 10 - Change the receiving side of the MediaPipeline so that it can detect and handle stereo. r=jesup
--HG--
extra : rebase_source : ec1f808a2417524d484821656430c21268dd05a7
2015-08-12 14:43:51 +02:00
Paul Adenot a84ad7251d Bug 901633 - Part 9 - Make the necessary changes to VoEExternalMediaImpl::ExternalRecordingInsertData so that it the number of channels is forwarded down the webrtc.org code. r=jesup
--HG--
extra : rebase_source : 02a2e46f75db29f9333e1d36e462903e95d4c49b
2015-08-11 13:49:29 +02:00
Paul Adenot 9ab78935d7 Bug 901633 - Part 8 - Use our new generic packetizer in the MediaPipeline so that we can packetize stereo easily. r=jesup
--HG--
extra : rebase_source : 1c58f04c05f169b17ace9190c1430589edcd992c
2015-08-11 13:49:29 +02:00
Paul Adenot badc346628 Bug 901633 - Part 5 - Make MediaPipeline downmix and properly convert audio for webrtc.org code. r=jesup
This means converting to int16, interleaving, and down-mixing to stereo (or
keeping it to mono if it's already mono of course).

--HG--
extra : rebase_source : 48278718869613b2072b6d2d20765771221948a9
2015-07-29 18:39:56 +02:00
Edwin Flores e12b94321f Bug 1185388 - Limit the number of cores used by WMF in ClearKey CDM - r=cpearce 2015-09-01 17:31:48 +12:00
Matthew Gregan 4a3512acbf Bug 1199794 - Add NULL checks to avoid crashing during media playback if the audio device removed. r=padenot
--HG--
extra : rebase_source : fc390ed0cd902c2195cdaf8c151fcbe69050beb3
2015-08-28 19:13:00 -04:00
Paul Adenot bc630a1430 Bug 1190676 - Part 5 - Fix consumers: PeerConnection. r=jesup
--HG--
extra : rebase_source : 5aa0bc3c233ee842cd983a0cd2c338bced1376db
2015-08-25 10:29:50 +02:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Chris Peterson 6b261a1c9e Bug 1197563 - Polyfill __func__ for MSVC 2013 and earlier. r=froydnj 2015-08-20 23:39:18 -07:00
Anthony Jones bf71b3c4f9 Bug 1180101 - Skip four bytes when we hit a zero length box; r=jya 2015-08-26 18:12:59 +12:00
Andreas Pehrson 834ece7e25 Bug 1198107 - Destroy VP8 encoder context before re-initing on resolution change to avoid leaking memory. r=jesup
--HG--
extra : transplant_source : Uv%0F7%E5N%C2%21%15b%5CF%12%E9%EE%B2%EE%D9%FB%D5
2015-08-25 16:55:28 +08:00
Jan Gerber c7721c8d82 Bug 1073319 - Enable AVX2 for libvpx on linux (libvpx). r=rillian
--HG--
extra : rebase_source : f7bd1cad5cab8c51a87be437923c63c2483dac3e
2015-07-16 02:38:00 -07:00
Jan Gerber 1db34826a1 Bug 1073319 - Enable AVX2 for libvpx on linux (update.py). r=rillian
--HG--
extra : rebase_source : f3b1532895359fbe6ed2fd7fa7283fd1e6c815d8
2015-07-16 02:37:00 -07:00
Jacek Caban 8f93a52f18 Bug 1197282 - Include <atomic> in VideoDecoder.h. r=cpearce 2015-08-25 12:40:20 +02:00
Matthew Gregan bd4557d750 Bug 1197049 - Retain stream volume across device changes. r=padenot 2015-08-21 14:46:22 +12:00
Ethan Hugg afda08fc27 Bug 1191301 - Re-enable the use of media.navigator.video.use_tmmbr pref. r=bwc 2015-08-24 09:31:38 -07:00
Matthew Gregan da63388633 Bug 1136360 - Report actual number of frames written to ReleaseBuffer. r=jesup 2015-08-21 18:09:34 +12:00
Matthew Gregan 7de719b648 Bug 1136360 - Account for stream and device latency in stream position calculation. r=jesup 2015-08-21 13:53:21 +12:00
Matthew Gregan cea13e8bed Backed out 2 changesets (bug 1136360)
Backed out changeset 004f6db9c2dd (bug 1136360)
Backed out changeset 9b568fb8d447 (bug 1136360)
2015-08-24 13:25:57 +12:00
Matthew Gregan 52219f5e5c Bug 1136360 - Report actual number of frames written to ReleaseBuffer. r=jesup 2015-08-21 18:09:34 +12:00
Matthew Gregan 5faa47f98e Bug 1136360 - Account for stream and device latency in stream position calculation. r=jesup 2015-08-21 13:53:21 +12:00