Bug 1179110 - Fix ComputePlaybackRate. r=jww

This is a regression from https://hg.mozilla.org/mozilla-central/rev/3ead3466f84a
This commit is contained in:
Bobby Holley 2015-07-01 16:57:25 -07:00
parent f15bd05ef7
commit 16d561e4cf

View File

@ -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);
}