kopia lustrzana https://github.com/f4exb/sdrangel
Server: fix possible core dump in MainCore::changeSampleSource by removing the saving and loading of device settings on the working preset
rodzic
92235a2e41
commit
61d4de4601
|
@ -344,7 +344,6 @@ void MainCore::changeSampleSource(int deviceSetIndex, int selectedDeviceIndex)
|
|||
{
|
||||
qDebug("MainCore::changeSampleSource: deviceSet at %d", deviceSetIndex);
|
||||
DeviceSet *deviceSet = m_deviceSets[deviceSetIndex];
|
||||
deviceSet->m_deviceSourceAPI->saveSourceSettings(m_settings.getWorkingPreset()); // save old API settings
|
||||
deviceSet->m_deviceSourceAPI->stopAcquisition();
|
||||
|
||||
// deletes old UI and input object
|
||||
|
@ -401,8 +400,6 @@ void MainCore::changeSampleSource(int deviceSetIndex, int selectedDeviceIndex)
|
|||
DeviceSampleSource *source = deviceSet->m_deviceSourceAPI->getPluginInterface()->createSampleSourcePluginInstanceInput(
|
||||
deviceSet->m_deviceSourceAPI->getSampleSourceId(), deviceSet->m_deviceSourceAPI);
|
||||
deviceSet->m_deviceSourceAPI->setSampleSource(source);
|
||||
|
||||
deviceSet->m_deviceSourceAPI->loadSourceSettings(m_settings.getWorkingPreset()); // load new API settings
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue