AudioThread: rollback some guard code because of previously wrong understanding

This commit is contained in:
vsonnier 2018-01-22 07:26:13 +01:00
parent 033bbd07df
commit b55609c802

View File

@ -345,10 +345,7 @@ void AudioThread::setSampleRate(int sampleRate) {
//Set bounded sample rate:
for (size_t j = 0; j < boundThreads.size(); j++) {
AudioThread *srcmix = boundThreads[j];
// the controller thread is part of the boundedThreads, so prevent infinite recursion:
if (srcmix != this) {
srcmix->setSampleRate(sampleRate);
}
srcmix->setSampleRate(sampleRate);
}
//make a local copy, snapshot of the list of demodulators