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

3588 Коммитов

Автор SHA1 Сообщение Дата
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