From 2e3209d6dcf294975a429e71158fb607cb7f8e90 Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Fri, 21 Dec 2018 20:03:36 +0000 Subject: [PATCH] Bug 1513973 - Remove check for `false`. r=jib The microphone source is no longer shared so this check is moot. Differential Revision: https://phabricator.services.mozilla.com/D15192 --HG-- extra : moz-landing-system : lando --- dom/media/webrtc/MediaEngineWebRTCAudio.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dom/media/webrtc/MediaEngineWebRTCAudio.cpp b/dom/media/webrtc/MediaEngineWebRTCAudio.cpp index abc7155ccbe5..dc50f8820f8f 100644 --- a/dom/media/webrtc/MediaEngineWebRTCAudio.cpp +++ b/dom/media/webrtc/MediaEngineWebRTCAudio.cpp @@ -511,10 +511,6 @@ nsresult MediaEngineWebRTCMicrophoneSource::SetTrack( 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);