mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 826349 - Make video keep its muted state after seeking. r=kinetik
This commit is contained in:
parent
66b6a9aeda
commit
653c14d03c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user