Bug 1312332 - Use stopVideo as intended. r?jib
MozReview-Commit-ID: JreGgjDwfam
--- 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;