mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 12:07:49 +02:00
hopefully a fix for the linux crash
This commit is contained in:
@ -318,11 +318,13 @@ private:
|
||||
|
||||
void selectDemod(demod::Demodulator* demod) {
|
||||
// Stopcurrently selected demodulator and select new
|
||||
afChain.stop();
|
||||
if (selectedDemod) {
|
||||
selectedDemod->stop();
|
||||
delete selectedDemod;
|
||||
}
|
||||
selectedDemod = demod;
|
||||
afChain.start();
|
||||
|
||||
// Give the demodulator the most recent audio SR
|
||||
selectedDemod->AFSampRateChanged(audioSampleRate);
|
||||
|
Reference in New Issue
Block a user