mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1283489 - mParams.mPlaybackRate should be updated after call GetVideoPosition(). r=jwwang
This commit is contained in:
parent
7fc51f7d9e
commit
55fd27efdb
@ -122,7 +122,6 @@ void
|
||||
AudioSinkWrapper::SetPlaybackRate(double aPlaybackRate)
|
||||
{
|
||||
AssertOwnerThread();
|
||||
mParams.mPlaybackRate = aPlaybackRate;
|
||||
if (!mAudioEnded) {
|
||||
// Pass the playback rate to the audio sink. The underlying AudioStream
|
||||
// will handle playback rate changes and report correct audio position.
|
||||
@ -133,6 +132,10 @@ AudioSinkWrapper::SetPlaybackRate(double aPlaybackRate)
|
||||
mPlayDuration = GetVideoPosition(now);
|
||||
mPlayStartTime = now;
|
||||
}
|
||||
// mParams.mPlaybackRate affects GetVideoPosition(). It should be updated
|
||||
// after the calls to GetVideoPosition();
|
||||
mParams.mPlaybackRate = aPlaybackRate;
|
||||
|
||||
// Do nothing when not playing. Changes in playback rate will be taken into
|
||||
// account by GetVideoPosition().
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user