mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 1179110 - Fix ComputePlaybackRate. r=jww
This is a regression from https://hg.mozilla.org/mozilla-central/rev/3ead3466f84a
This commit is contained in:
parent
f15bd05ef7
commit
16d561e4cf
@ -851,7 +851,7 @@ double MediaDecoder::ComputePlaybackRate(bool* aReliable)
|
||||
int64_t length = mResource ? mResource->GetLength() : -1;
|
||||
if (!IsNaN(mDuration) && !mozilla::IsInfinite<double>(mDuration) && length >= 0) {
|
||||
*aReliable = true;
|
||||
return length * mDuration;
|
||||
return length / mDuration;
|
||||
}
|
||||
return mPlaybackStatistics->GetRateAtLastStop(aReliable);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user