mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-05 06:37:51 -04:00
Server: fix possible core dump in MainCore::changeSampleSource by removing the saving and loading of device settings on the working preset
This commit is contained in:
parent
92235a2e41
commit
61d4de4601
@ -344,7 +344,6 @@ void MainCore::changeSampleSource(int deviceSetIndex, int selectedDeviceIndex)
|
|||||||
{
|
{
|
||||||
qDebug("MainCore::changeSampleSource: deviceSet at %d", deviceSetIndex);
|
qDebug("MainCore::changeSampleSource: deviceSet at %d", deviceSetIndex);
|
||||||
DeviceSet *deviceSet = m_deviceSets[deviceSetIndex];
|
DeviceSet *deviceSet = m_deviceSets[deviceSetIndex];
|
||||||
deviceSet->m_deviceSourceAPI->saveSourceSettings(m_settings.getWorkingPreset()); // save old API settings
|
|
||||||
deviceSet->m_deviceSourceAPI->stopAcquisition();
|
deviceSet->m_deviceSourceAPI->stopAcquisition();
|
||||||
|
|
||||||
// deletes old UI and input object
|
// deletes old UI and input object
|
||||||
@ -401,8 +400,6 @@ void MainCore::changeSampleSource(int deviceSetIndex, int selectedDeviceIndex)
|
|||||||
DeviceSampleSource *source = deviceSet->m_deviceSourceAPI->getPluginInterface()->createSampleSourcePluginInstanceInput(
|
DeviceSampleSource *source = deviceSet->m_deviceSourceAPI->getPluginInterface()->createSampleSourcePluginInstanceInput(
|
||||||
deviceSet->m_deviceSourceAPI->getSampleSourceId(), deviceSet->m_deviceSourceAPI);
|
deviceSet->m_deviceSourceAPI->getSampleSourceId(), deviceSet->m_deviceSourceAPI);
|
||||||
deviceSet->m_deviceSourceAPI->setSampleSource(source);
|
deviceSet->m_deviceSourceAPI->setSampleSource(source);
|
||||||
|
|
||||||
deviceSet->m_deviceSourceAPI->loadSourceSettings(m_settings.getWorkingPreset()); // load new API settings
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user