Bug 997229 - Don't call IdealAudioRate on an offline MediaStreamGraph r=roc

--HG--
extra : rebase_source : 44aec47b98965a663600a84c630c0f89239842a6
This commit is contained in:
Paul Adenot 2014-04-17 11:15:47 +02:00
parent a86b22d40f
commit df3abc4a21

View File

@ -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 =