bug 962719 remove unnecessary OneIteration() parameters aFrom/aTo r=padenot

--HG--
extra : rebase_source : 7ad313275ef00a0306c8b3b4775f0088f07c9031
This commit is contained in:
Karl Tomlinson 2015-08-04 19:42:10 +12:00
parent c2379131a8
commit c5e3e52551
3 changed files with 4 additions and 10 deletions

View File

@ -301,9 +301,7 @@ ThreadedDriver::RunThread()
mGraphImpl->mFlushSourcesNow = mGraphImpl->mFlushSourcesOnNextIteration;
mGraphImpl->mFlushSourcesOnNextIteration = false;
stillProcessing = mGraphImpl->OneIteration(mIterationStart,
mIterationEnd,
nextStateComputedTime);
stillProcessing = mGraphImpl->OneIteration(nextStateComputedTime);
if (mNextDriver && stillProcessing) {
STREAM_LOG(LogLevel::Debug, ("Switching to AudioCallbackDriver"));
@ -846,9 +844,7 @@ AudioCallbackDriver::DataCallback(AudioDataValue* aBuffer, long aFrames)
mIterationEnd = stateComputedTime;
}
stillProcessing = mGraphImpl->OneIteration(mIterationStart,
mIterationEnd,
nextStateComputedTime);
stillProcessing = mGraphImpl->OneIteration(nextStateComputedTime);
} else {
NS_WARNING("DataCallback buffer filled entirely from scratch buffer, skipping iteration.");
stillProcessing = true;

View File

@ -1470,8 +1470,7 @@ MediaStreamGraphImpl::Process(GraphTime aFrom, GraphTime aTo)
}
bool
MediaStreamGraphImpl::OneIteration(GraphTime aFrom, GraphTime aTo,
GraphTime aStateEnd)
MediaStreamGraphImpl::OneIteration(GraphTime aStateEnd)
{
{
MonitorAutoLock lock(mMemoryReportMonitor);

View File

@ -173,8 +173,7 @@ public:
*/
void DoIteration();
bool OneIteration(GraphTime aFrom, GraphTime aTo,
GraphTime aStateEnd);
bool OneIteration(GraphTime aStateEnd);
bool Running() const
{