Bug 1211091 - use upper boundary for streams per data channel. r=bwc, a=lizzard
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Fri, 02 Oct 2015 21:18:48 -0700
changeset 296547 4b93d228a7e42c6ffe5d1b95dfa88c1d4c2ec3b2
parent 296546 477c92901c3ac4dcf837bfb62e73c00a476f8903
child 296548 6a63f9c56503375e3052ec8c181b7d8e2ac4c18f
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwc, lizzard
bugs1211091
milestone43.0a2
Bug 1211091 - use upper boundary for streams per data channel. r=bwc, a=lizzard
media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp
@@ -1262,17 +1262,17 @@ PeerConnectionImpl::InitializeDataChanne
   }
 
 #if !defined(MOZILLA_EXTERNAL_LINKAGE)
   uint32_t channels = codec->mChannels;
   if (channels > MAX_NUM_STREAMS) {
     channels = MAX_NUM_STREAMS;
   }
 
-  rv = EnsureDataConnection(codec->mChannels);
+  rv = EnsureDataConnection(channels);
   if (NS_SUCCEEDED(rv)) {
     uint16_t localport = 5000;
     uint16_t remoteport = 0;
     // The logic that reflects the remote payload type is what sets the remote
     // port here.
     if (!codec->GetPtAsInt(&remoteport)) {
       return NS_ERROR_FAILURE;
     }