Commit Graph

1762 Commits

Author SHA1 Message Date
Mike Hommey
3ca7fe29fc Bug 1252699 - Set WEBRTC_DETECT_ARM_NEON when optional neon is requested. r=jesup 2016-03-03 06:28:10 +09:00
Jan-Ivar Bruaroey
88fd4efbef Bug 1250990 - Make RTCRtpEncodingParameters.scaleResolutionDownBy work with H.264 unicast. r=jesup
MozReview-Commit-ID: 2j8rRzZemql
2016-02-28 09:19:23 -05:00
Julian Seward
762a4308cd Bug 1252073 - Uninitialised value uses in mozilla::EncodingConstraints::operator==. r=docfaraday@gmail.com. 2016-03-02 12:29:36 +01:00
Wes Kocher
7aec8bfd97 Backed out 2 changesets (bug 1251714, bug 1251715) for gtest failures in media code
Backed out changeset 1bbd0cd10f76 (bug 1251714)
Backed out changeset 80b197c5608f (bug 1251715)

MozReview-Commit-ID: EHOtiKLS4Xr
2016-03-01 11:36:35 -08:00
Nathan Froyd
bf6441626b Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-02-26 14:52:15 -05:00
Byron Campen [:bwc]
a70cee5b5c Bug 818618: Honor (and emit) opus stereo fmtp param. r=jesup
MozReview-Commit-ID: IgA305eiu1s
2016-02-26 10:47:03 -06:00
Sebastian Hengst
06d19d0d14 Backed out changeset 4cc3fae66ffb (bug 1250990) for frequent failure of modified test test_peerConnection_scaleResolution.html. r=frequentorange 2016-02-28 09:59:16 +01:00
Jan-Ivar Bruaroey
6cc4f19688 Bug 1250990 - Make RTCRtpEncodingParameters.scaleResolutionDownBy work with H.264 unicast. r=jesup
MozReview-Commit-ID: 2j8rRzZemql
2016-02-26 16:16:11 -05:00
Eric Rahm
f63018386e Bug 1251737 - Remove remaining references to MOZILLA_XPCOMRT_API from media. r=jesup 2016-02-27 11:12:07 -08:00
Eric Rahm
224ec523e8 Bug 1239870 - Part 5: Switch over mtransport tests to mozilla gtests. r=bwc
This converts the individual cppunit gtests into the combined mozilla gtest
which has access to xpcom internals. The build file is simplified to reflect
this change, individual main functions are removed, and duplicate symbols are
removed.
2016-02-09 10:02:40 -08:00
Wes Kocher
94c4427375 Backed out 8 changesets (bug 1251482, bug 1251494, bug 1251473, bug 1239870) for gtest failures
Backed out changeset f064a5efbb8c (bug 1251494)
Backed out changeset 9e33adec1aa6 (bug 1251482)
Backed out changeset ab0347657e25 (bug 1251473)
Backed out changeset 1d385d4f195d (bug 1239870)
Backed out changeset ceb3e1ee7dda (bug 1239870)
Backed out changeset 8574075bf42f (bug 1239870)
Backed out changeset ba077a3afbc7 (bug 1239870)
Backed out changeset eb99ab06414d (bug 1239870)

MozReview-Commit-ID: 7r9SEk4VGNU
2016-02-26 17:14:57 -08:00
Eric Rahm
790cd2e39e Bug 1239870 - Part 5: Switch over mtransport tests to mozilla gtests. r=bwc
This converts the individual cppunit gtests into the combined mozilla gtest
which has access to xpcom internals. The build file is simplified to reflect
this change, individual main functions are removed, and duplicate symbols are
removed.
2016-02-09 10:02:40 -08:00
Byron Campen [:bwc]
b9788e3878 Bug 1249098: Support maxplaybackrate for opus. r=jesup
MozReview-Commit-ID: 7BKVFkbPgV2
2016-02-18 14:13:35 -06:00
Byron Campen [:bwc]
4fbfa39f74 Bug 1247656: Make sure that remote reoffer does not change the media type of an m-line. r=drno
MozReview-Commit-ID: DFXgLuSW6nM
2016-02-11 13:00:58 -06:00
Jan-Ivar Bruaroey
713785ea79 Bug 1247619 - add console warning about OAuth for STUN not yet supported. r=jesup,smaug
MozReview-Commit-ID: L0nViIWiIDn
2016-02-25 00:24:16 -05:00
Jan-Ivar Bruaroey
9f731f009b Bug 1244913 - resolution-based bitrates for each simulcast layer, scaleResolutionDownBy, and working maxBitrate in unicast. r=bwc,jesup
MozReview-Commit-ID: 347J1ElsOEx
2016-02-12 19:56:56 -05:00
Jan-Ivar Bruaroey
ad805f4ccc Bug 1244913 - change SelectBandwidth to SelectBitrates. r=jesup
MozReview-Commit-ID: Gc5WN7JIozV
2016-02-12 16:08:00 -05:00
Randell Jesup
86885f216e Bug 1248335: avoid using SvcInternal structure entirely, as system-vpx may not have it r=pkerr
MozReview-Commit-ID: 146FTSGQ8Ck
2016-02-23 11:55:24 -05:00
Nathan Froyd
798482b96e Bug 1249369 - use UniquePtr instead of nsAutoArrayPtr in MediaPipeline.cpp; r=jesup 2016-02-18 14:09:23 -05:00
Paul Kerr [:pkerr]
9936e427b2 Bug 1240790: Add newlines to WEBRTC_TRACE_FILE. r=rjesup 2016-02-18 13:16:26 -08:00
Byron Campen [:bwc]
3b10fb7a89 Bug 1241153: Stop blocking addTrack on GMP init, and update codecs on existing tracks when GMP init finishes. r=jesup
MozReview-Commit-ID: GqUBh0O5Dpk
2016-02-12 14:21:33 -06:00
Nathan Froyd
758485aa11 Bug 1248770 - change sdp_unittests to cope with diverse c++ standard interpretations; r=jesup
The C++ standard, [facet.num.get.virtuals], defines the method to be
used for reading numeric values from an iterator.  The core loop is
defined thusly in N3242 (the draft for the C++11 standard):

  Stage 2: If in==end then stage 2 terminates. Otherwise a charT is
  taken from in and local variables are initialized as if by

    char_type ct = *in;
    char c = src[find(atoms, atoms + sizeof(src) - 1, ct) - atoms];
    if (ct == use_facet<numpunct<charT> >(loc).decimal_point())
      c = '.';
    bool discard =
      ct == use_facet<numpunct<charT> >(loc).thousands_sep()
      && use_facet<numpunct<charT> >(loc).grouping().length() != 0;

  where the values src and atoms are defined as if by:

    static const char src[] = "0123456789abcdefxABCDEFX+-";
    char_type atoms[sizeof(src)];
    use_facet<ctype<charT> >(loc).widen(src, src + sizeof(src), atoms);

  for this value of loc.

  If discard is true, then if '.' has not yet been accumulated, then the
  position of the character is remembered, but the character is
  otherwise ignored. Otherwise, if '.' has already been accumulated, the
  character is discarded and Stage 2 terminates.

  If the character is either discarded or accumulated then in is
  advanced by ++in and processing returns to the beginning of stage 2.

  Stage 3: The sequence of chars accumulated in stage 2 (the field) is
  converted to a numeric value by the rules of one of the functions
  declared in the header <cstdlib>:

    - For a signed integer value, the function strtoll.
    - For an unsigned integer value, the function strtoull.
    - For a floating-point value, the function strtold.

The important part for our purposes here is the line:

    char c = src[find(atoms, atoms + sizeof(src) - 1, ct) - atoms];

which implies that we are to accumulate any and all characters that
might be numerical constituents.  According to the spec text, we might
accumulate a long run of numeric constituents, only to decide in stage 3
that our accumulated string cannot be a valid number.  Please note that
this includes characters like 'x' and 'X' which are only valid as part
of a hexadecimal prefix.

sdp_unittests has a number of tests that look like:

  ParseInvalid<SdpImageattrAttributeList::XYRange>("[x", 1);

The test converts the input string to a stringstream, and attempts to
read an integer from the stream starting after the '[' character.  The
test expects that no input from the string stream will be consumed, as
the character 'x' cannot begin any number, and thus the position of the
stream after failure will be 1.  This behavior is consistent with MSVC's
standard library, libstdc++, and stlport.

However, libc++ uses a different algorithm that appears to hew more
closely to the letter of the spec, and consumes the 'x' character as
being a valid constituent character ("accumulates" in the above text).
The string is rejected as an invalid integer, yet the position of the
string stream afterwards is different from what the test expects, and we
therefore fail.

This patch therefore alters a number of tests to use a different invalid
character, 'v', that both the incremental algorithm (MSVC, libstdc++,
stlport) and the all-at-once algorithm (libc++) will recognize as not
being a valid constituent character and stop the parsing early, as
expected.  You might think that specifying the base for numeric input as
std::dec would work, and it partially does, but reading floating-point
numbers still reads the 'x' characters (!).
2016-02-16 21:09:34 -05:00
Wes Kocher
4f33922c99 Backed out changeset d2cb189066ea (bug 1247656) for being a possible cause of the spike in ASAN test_browserElement_oop_getWebManifest.html failures 2016-02-16 16:40:38 -08:00
Aidin Gharibnavaz
ea7185b2c6 Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn
2016-02-12 19:10:07 +03:30
ISHIKAWA, Chiaki
72d38a6835 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Byron Campen [:bwc]
5dbe821fae Bug 1247656: Make sure that remote reoffer does not change the media type of an m-line. r=drno
MozReview-Commit-ID: DFXgLuSW6nM
2016-02-11 13:00:58 -06:00
Nils Ohlmeier [:drno]
dbe6ba0194 Bug 1247547: removed double accounting for WEBRTC_ICE_ADD_CANDIDATE telemetry probes. r=bwc
MozReview-Commit-ID: 43nNMVFLqT
2016-02-11 02:16:03 -08:00
Nathan Froyd
4be833cfe1 Bug 1247395 - use UniquePtr for control messages in MediaStreamGraphImpl; r=roc 2016-01-20 16:14:33 -05:00
[:ng]
2bc7dd5f70 Bug 1241321 - No RTCP stats for audio streams. r=rjesup
AudioConduit was calling a deprecated and unimplemented to get SenderInfo RTCP stats.
2016-01-29 14:45:21 -08:00
Aidin Gharibnavaz
e084f12c9a Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Paul Kerr [:pkerr]
5c388980b8 Bug 1219339 - Part2: Ensure close of webrtc trace file during shutdown. r=rjesup 2016-02-10 13:10:46 -08:00
Karl Tomlinson
316215eb62 bug 1242991 correct vpx include path and vpx/svc_context.h visibilty r=glandium
to fix up --with-system-vpx after f442638a.
2016-02-05 12:06:11 +13:00
Carsten "Tomcat" Book
ab60132384 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures 2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
238dcd01fc Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-07 10:56:00 +01:00
Nils Ohlmeier [:drno]
e9daa7d505 Bug 1246011: fixed PT comparising for PT's without rtpmap. r=jesup 2016-02-05 11:58:05 -08:00
Randell Jesup
29c2248186 Bug 1219339: switch GetStaticInstance to use IPC's Singleton<T> impl r=froyd 2016-01-14 00:16:49 -05:00
Birunthan Mohanathas
9bed3781f9 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Byron Campen [:bwc]
2b40da56f0 Bug 1234578 - Assert if PCM is destroyed improperly. r=rjesup 2016-01-29 14:54:47 -06:00
Phil Ringnalda
863943dfb7 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
f94b4ff6a2 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey
94f653c385 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Randell Jesup
3854285c82 Bug 1242199: Add lower-limit WebRTC bandwidth pref for testing r=pkerr 2016-01-28 23:49:46 -05:00
Randell Jesup
766780d266 Bug 1243607: make webrtc bitrate prefs take precedence over automatic bitrate selection r=pkerr 2016-01-27 21:55:42 -05:00
Paul Kerr [:pkerr]
3d9ecccf0b Bug 1221786: clear about:webrtc logs for private browsing sessions. r=jib
No WebRTC session statistics will be saved until all PeerConnections
in private browsing window end. In addition, the shared
WebRTC ICE signalling log for that e10s process is disabled until the
private session close.
2016-01-26 08:08:25 -08:00
Nigel Babu
662e3f1bc8 Backed out changeset ebf10602138c (bug 1243607) for test_peerConnection_verifyVideoAfterRenegotiation.html timeout 2016-01-28 13:24:31 +05:30
Nigel Babu
919772ab2a Backed out changeset 5d8f454c269e (bug 1243607) for test_peerConnection_verifyVideoAfterRenegotiation.html timeout 2016-01-28 13:24:23 +05:30
Randell Jesup
1f5ab1ba0f Bug 1243607: Fix out-of-order limit checks in WebRTC bandwidth settings rs=me 2016-01-28 00:37:41 -05:00
Randell Jesup
91f4950365 Bug 1243607: make webrtc bitrate prefs take precedence over automatic bitrate selection r=pkerr 2016-01-27 21:55:42 -05:00
Paul Kerr [:pkerr]
11e4400955 Bug 1209252: add buttons to clear session and signaling logs. r=jib, r=sicking 2016-01-27 16:05:10 -08:00
Nils Ohlmeier [:drno]
00f823a33b Bug 1242334: fixed jesp session test bustage CLOSED TREE. r=jesup r=bustage 2016-01-25 00:28:41 -08:00