mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 487659. Make sure we never pass a playback rate of 0 to the media cache. r=doublec
--HG-- extra : rebase_source : af86613bb5283e777acf1ca01d67eaa734cb8a0f
This commit is contained in:
parent
0785b005eb
commit
f1b439157e
@ -2033,7 +2033,10 @@ void nsOggDecoder::UpdatePlaybackRate()
|
||||
return;
|
||||
PRPackedBool reliable;
|
||||
PRUint32 rate = PRUint32(ComputePlaybackRate(&reliable));
|
||||
if (!reliable) {
|
||||
if (reliable) {
|
||||
// Avoid passing a zero rate
|
||||
rate = PR_MAX(rate, 1);
|
||||
} else {
|
||||
// Set a minimum rate of 10,000 bytes per second ... sometimes we just
|
||||
// don't have good data
|
||||
rate = PR_MAX(rate, 10000);
|
||||
|
Loading…
Reference in New Issue
Block a user