mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 997229 - Don't call IdealAudioRate on an offline MediaStreamGraph r=roc
--HG-- extra : rebase_source : 44aec47b98965a663600a84c630c0f89239842a6
This commit is contained in:
parent
a86b22d40f
commit
df3abc4a21
@ -1259,8 +1259,8 @@ MediaStreamGraphImpl::RunThread()
|
||||
UpdateStreamOrder();
|
||||
}
|
||||
|
||||
TrackRate sampleRate;
|
||||
// Find the sampling rate that we need to use for non-realtime graphs.
|
||||
TrackRate sampleRate = IdealAudioRate();
|
||||
if (!mRealtime) {
|
||||
for (uint32_t i = 0; i < mStreams.Length(); ++i) {
|
||||
AudioNodeStream* n = mStreams[i]->AsAudioNodeStream();
|
||||
@ -1270,6 +1270,8 @@ MediaStreamGraphImpl::RunThread()
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
sampleRate = IdealAudioRate();
|
||||
}
|
||||
|
||||
GraphTime endBlockingDecisions =
|
||||
|
Loading…
Reference in New Issue
Block a user