Bug 1445860: set PeerIdenity only on transmitting Transceivers. r=mt
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Wed, 14 Mar 2018 20:47:45 -0700
changeset 408662 0665d23d7e8788a07048f1454ea4457c0197b9d0
parent 408661 81633daf4115ceaac528e778ea188a22d04efcc5
child 408665 29dcc9cb77c372c97681a47496488ec6c623915d
child 408694 6c397982f283e459e1623b2b0c7b0c5546981f5c
push id100996
push userbtara@mozilla.com
push dateSat, 17 Mar 2018 10:37:43 +0000
treeherdermozilla-inbound@97160a734959 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmt
bugs1445860
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1445860: set PeerIdenity only on transmitting Transceivers. r=mt MozReview-Commit-ID: 10rKPDwuh9d
media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp
--- a/media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp
+++ b/media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp
@@ -119,17 +119,17 @@ TransceiverImpl::InitVideo()
       mReceiveTrack);
 }
 
 nsresult
 TransceiverImpl::UpdateSinkIdentity(const dom::MediaStreamTrack* aTrack,
                                     nsIPrincipal* aPrincipal,
                                     const PeerIdentity* aSinkIdentity)
 {
-  if (mJsepTransceiver->IsStopped()) {
+  if (!(mJsepTransceiver->mJsDirection & sdp::kSend)) {
     return NS_OK;
   }
 
   mTransmitPipeline->UpdateSinkIdentity_m(aTrack, aPrincipal, aSinkIdentity);
   return NS_OK;
 }
 
 void