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

This commit is contained in:
Paul Adenot 2013-01-18 16:57:17 +01:00
Родитель 3f5531a79a
Коммит eba9254deb
1 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

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