mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 848954 - Part 24 - Clean up the clock getter, because the right thing is now done by the GraphDriver. r=roc
This commit is contained in:
parent
5f32ebf427
commit
e686bd4763
@ -334,15 +334,9 @@ MediaStreamGraphImpl::StreamTimeToGraphTime(MediaStream* aStream,
|
||||
GraphTime
|
||||
MediaStreamGraphImpl::GetAudioPosition(MediaStream* aStream)
|
||||
{
|
||||
if (!mMixedAudioStream) {
|
||||
return IterationEnd();
|
||||
}
|
||||
int64_t positionInFrames = mMixedAudioStream->GetPositionInFrames();
|
||||
if (positionInFrames < 0) {
|
||||
return IterationEnd();
|
||||
}
|
||||
return aStream->mAudioOutputStreams[0].mAudioPlaybackStartTime +
|
||||
RateConvertTicksRoundDown(GraphRate(), mSampleRate, positionInFrames);
|
||||
/* This is correlated to the audio clock when using an AudioCallbackDriver,
|
||||
* and is using a system timer otherwise. */
|
||||
return IterationEnd();
|
||||
}
|
||||
|
||||
GraphTime
|
||||
|
Loading…
Reference in New Issue
Block a user