mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 815107 - Ensure AudioClock::mOldOutRate has sensible value, prevents audio clock position poisoning on one code path, and initialize AudioClock::mOldBasePosition to 0. r=padenot
This commit is contained in:
parent
d4c7ea7a57
commit
3540cbded9
@ -1050,6 +1050,7 @@ AudioClock::AudioClock(AudioStream* aStream)
|
||||
mBasePosition(0),
|
||||
mBaseOffset(0),
|
||||
mOldBaseOffset(0),
|
||||
mOldBasePosition(0),
|
||||
mPlaybackRateChangeOffset(0),
|
||||
mPreviousPosition(0),
|
||||
mWritten(0),
|
||||
@ -1065,6 +1066,7 @@ void AudioClock::Init()
|
||||
mOutRate = mAudioStream->GetRate();
|
||||
mInRate = mAudioStream->GetRate();
|
||||
mPlaybackRate = 1.0;
|
||||
mOldOutRate = mOutRate;
|
||||
}
|
||||
|
||||
void AudioClock::UpdateWritePosition(uint32_t aCount)
|
||||
|
Loading…
Reference in New Issue
Block a user