Bug 826349 - Make video keep its muted state after seeking. r=kinetik

This commit is contained in:
Paul Adenot 2013-01-15 19:57:04 +01:00
parent 66b6a9aeda
commit 653c14d03c

View File

@ -3537,12 +3537,14 @@ NS_IMETHODIMP nsHTMLMediaElement::SetPlaybackRate(double aPlaybackRate)
mPlaybackRate = ClampPlaybackRate(aPlaybackRate);
if (mPlaybackRate < 0 ||
mPlaybackRate > THRESHOLD_HIGH_PLAYBACKRATE_AUDIO ||
mPlaybackRate < THRESHOLD_LOW_PLAYBACKRATE_AUDIO) {
SetMutedInternal(true);
} else {
SetMutedInternal(false);
if (!mMuted) {
if (mPlaybackRate < 0 ||
mPlaybackRate > THRESHOLD_HIGH_PLAYBACKRATE_AUDIO ||
mPlaybackRate < THRESHOLD_LOW_PLAYBACKRATE_AUDIO) {
SetMutedInternal(true);
} else {
SetMutedInternal(false);
}
}
if (mDecoder) {