зеркало из https://github.com/mozilla/gecko-dev.git
Bug 826349 - Make video keep its muted state after seeking. r=kinetik
This commit is contained in:
Родитель
3f5531a79a
Коммит
eba9254deb
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче