1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

PlutoSDR: fixed possible segfault when stopping one device in multiple stream confguration.

This commit is contained in:
f4exb
2018-01-08 00:37:15 +01:00
parent 885ed4885f
commit 9824843684
5 changed files with 7 additions and 4 deletions
@@ -259,7 +259,8 @@ bool PlutoSDRInput::openDevice()
qDebug("PlutoSDRInput::openDevice: look at Tx buddy");
DeviceSinkAPI *sinkBuddy = m_deviceAPI->getSinkBuddies()[0];
m_deviceShared = *((DevicePlutoSDRShared *) sinkBuddy->getBuddySharedPtr()); // copy parameters
DevicePlutoSDRShared* buddySharedPtr = (DevicePlutoSDRShared*) sinkBuddy->getBuddySharedPtr();
m_deviceShared.m_deviceParams = buddySharedPtr->m_deviceParams;
if (m_deviceShared.m_deviceParams == 0)
{