1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Server: fix core dump in MainCore::changeSampleSink by removing the saving and loading of device settings on the working preset (same as in changeSampleSource)

This commit is contained in:
f4exb 2017-12-28 17:13:48 +01:00
parent 65ac9e2f2c
commit 92235a2e41

View File

@ -412,7 +412,6 @@ void MainCore::changeSampleSink(int deviceSetIndex, int selectedDeviceIndex)
{ {
qDebug("MainCore::changeSampleSink: device set at %d", deviceSetIndex); qDebug("MainCore::changeSampleSink: device set at %d", deviceSetIndex);
DeviceSet *deviceSet = m_deviceSets[deviceSetIndex]; DeviceSet *deviceSet = m_deviceSets[deviceSetIndex];
deviceSet->m_deviceSinkAPI->saveSinkSettings(m_settings.getWorkingPreset()); // save old API settings
deviceSet->m_deviceSinkAPI->stopGeneration(); deviceSet->m_deviceSinkAPI->stopGeneration();
// deletes old UI and output object // deletes old UI and output object
@ -469,8 +468,6 @@ void MainCore::changeSampleSink(int deviceSetIndex, int selectedDeviceIndex)
DeviceSampleSink *sink = deviceSet->m_deviceSinkAPI->getPluginInterface()->createSampleSinkPluginInstanceOutput( DeviceSampleSink *sink = deviceSet->m_deviceSinkAPI->getPluginInterface()->createSampleSinkPluginInstanceOutput(
deviceSet->m_deviceSinkAPI->getSampleSinkId(), deviceSet->m_deviceSinkAPI); deviceSet->m_deviceSinkAPI->getSampleSinkId(), deviceSet->m_deviceSinkAPI);
deviceSet->m_deviceSinkAPI->setSampleSink(sink); deviceSet->m_deviceSinkAPI->setSampleSink(sink);
deviceSet->m_deviceSinkAPI->loadSinkSettings(m_settings.getWorkingPreset()); // load new API settings
} }
} }