Bug 1312980 - CID 1374148: Control flow issues (DEADCODE) in GetUserMediaCallbackMediaStreamListener::NotifyChromeOfTrackStops()
MozReview-Commit-ID: GDuY611PcVM
--- a/dom/media/MediaManager.cpp
+++ b/dom/media/MediaManager.cpp
@@ -3623,17 +3623,17 @@ GetUserMediaCallbackMediaStreamListener:
MOZ_ASSERT(!stopAudio || mAudioDevice,
"If there's a pending stop for audio, there must be an audio device");
MOZ_ASSERT(!stopVideo || !mVideoStopped,
"If there's a pending stop for video, video must not have been stopped");
MOZ_ASSERT(!stopVideo || mVideoDevice,
"If there's a pending stop for video, there must be a video device");
if ((stopAudio || mAudioStopped || !mAudioDevice) &&
- (stopAudio || mVideoStopped || !mVideoDevice)) {
+ (stopVideo || mVideoStopped || !mVideoDevice)) {
// All tracks stopped.
Stop();
return;
}
mAudioStopped |= stopAudio;
mVideoStopped |= stopVideo;