mirror of https://github.com/f4exb/sdrangel.git
Remote Input: do not apply remote channel settings before they get updated via stream
This commit is contained in:
parent
ac28cadffa
commit
180d554812
|
@ -69,7 +69,6 @@ RemoteInput::RemoteInput(DeviceAPI *deviceAPI) :
|
||||||
|
|
||||||
RemoteInput::~RemoteInput()
|
RemoteInput::~RemoteInput()
|
||||||
{
|
{
|
||||||
disconnect(m_remoteInputUDPHandler, SIGNAL(metaChanged()), this, SLOT(handleMetaChanged()));
|
|
||||||
disconnect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*)));
|
disconnect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*)));
|
||||||
delete m_networkManager;
|
delete m_networkManager;
|
||||||
stop();
|
stop();
|
||||||
|
@ -328,6 +327,10 @@ void RemoteInput::applySettings(const RemoteInputSettings& settings, bool force)
|
||||||
|
|
||||||
void RemoteInput::applyRemoteChannelSettings(const RemoteChannelSettings& settings)
|
void RemoteInput::applyRemoteChannelSettings(const RemoteChannelSettings& settings)
|
||||||
{
|
{
|
||||||
|
if (m_remoteChannelSettings.m_deviceSampleRate == 1) { // uninitialized
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SWGSDRangel::SWGChannelSettings *swgChannelSettings = new SWGSDRangel::SWGChannelSettings();;
|
SWGSDRangel::SWGChannelSettings *swgChannelSettings = new SWGSDRangel::SWGChannelSettings();;
|
||||||
swgChannelSettings->setOriginatorChannelIndex(0);
|
swgChannelSettings->setOriginatorChannelIndex(0);
|
||||||
swgChannelSettings->setOriginatorDeviceSetIndex(m_deviceAPI->getDeviceSetIndex());
|
swgChannelSettings->setOriginatorDeviceSetIndex(m_deviceAPI->getDeviceSetIndex());
|
||||||
|
|
Loading…
Reference in New Issue