Bug 1513973 - Remove check for `false`. r=jib, a=RyanVM
authorAndreas Pehrson <apehrson@mozilla.com>
Fri, 04 Jan 2019 06:39:33 +0000
changeset 506546 962f5d3b5330da93a74f344f5c1c4523b54bf72d
parent 506545 57bcf1f66de4bf38078f00e87208996e238c6249
child 506547 59f2b329c3a1a189cb830443c0410e3bf54bec44
push id10457
push userryanvm@gmail.com
push dateMon, 07 Jan 2019 15:23:57 +0000
treeherdermozilla-beta@dac16eb67fd6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib, RyanVM
bugs1513973
milestone65.0
Bug 1513973 - Remove check for `false`. r=jib, a=RyanVM The microphone source is no longer shared so this check is moot. Differential Revision: https://phabricator.services.mozilla.com/D15192
dom/media/webrtc/MediaEngineWebRTCAudio.cpp
--- a/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
+++ b/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
@@ -511,20 +511,16 @@ nsresult MediaEngineWebRTCMicrophoneSour
 nsresult MediaEngineWebRTCMicrophoneSource::SetTrack(
     const RefPtr<const AllocationHandle>&,
     const RefPtr<SourceMediaStream>& aStream, TrackID aTrackID,
     const PrincipalHandle& aPrincipal) {
   AssertIsOnOwningThread();
   MOZ_ASSERT(aStream);
   MOZ_ASSERT(IsTrackIDExplicit(aTrackID));
 
-  if (mStream && mStream->Graph() != aStream->Graph()) {
-    return NS_ERROR_NOT_AVAILABLE;
-  }
-
   MOZ_ASSERT(!mStream);
   MOZ_ASSERT(mTrackID == TRACK_NONE);
   MOZ_ASSERT(mPrincipal == PRINCIPAL_HANDLE_NONE);
   mStream = aStream;
   mTrackID = aTrackID;
   mPrincipal = aPrincipal;
 
   AudioSegment* segment = new AudioSegment();