Bug 1580659 - part2 : remove redundant checking. r=chunmin

We have already had the same checking in `AudioCaptureStreamChange()`, so we can remove the checking in `AudioCaptureStreamChangeIfNeeded()`.

Differential Revision: https://phabricator.services.mozilla.com/D45749
This commit is contained in:
Alastor Wu
2019-09-24 06:55:27 +00:00
parent 85378cc8c1
commit a64d782831

View File

@@ -1107,11 +1107,6 @@ class HTMLMediaElement::AudioChannelAgentCallback final
if (!IsPlayingStarted()) {
return;
}
if (!mOwner->HasAudio()) {
return;
}
mOwner->AudioCaptureStreamChange(mAudioCapturedByWindow);
}