mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
AudioThread: rollback some guard code because of previously wrong understanding
This commit is contained in:
parent
033bbd07df
commit
b55609c802
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user