From 180d55481243f74f5ec7ec0a753e81d7a7c8c7a9 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 11 Jan 2022 23:23:18 +0100 Subject: [PATCH] Remote Input: do not apply remote channel settings before they get updated via stream --- plugins/samplesource/remoteinput/remoteinput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/samplesource/remoteinput/remoteinput.cpp b/plugins/samplesource/remoteinput/remoteinput.cpp index 117bd4de3..aa872aaa7 100644 --- a/plugins/samplesource/remoteinput/remoteinput.cpp +++ b/plugins/samplesource/remoteinput/remoteinput.cpp @@ -69,7 +69,6 @@ RemoteInput::RemoteInput(DeviceAPI *deviceAPI) : RemoteInput::~RemoteInput() { - disconnect(m_remoteInputUDPHandler, SIGNAL(metaChanged()), this, SLOT(handleMetaChanged())); disconnect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*))); delete m_networkManager; stop(); @@ -328,6 +327,10 @@ void RemoteInput::applySettings(const RemoteInputSettings& settings, bool force) void RemoteInput::applyRemoteChannelSettings(const RemoteChannelSettings& settings) { + if (m_remoteChannelSettings.m_deviceSampleRate == 1) { // uninitialized + return; + } + SWGSDRangel::SWGChannelSettings *swgChannelSettings = new SWGSDRangel::SWGChannelSettings();; swgChannelSettings->setOriginatorChannelIndex(0); swgChannelSettings->setOriginatorDeviceSetIndex(m_deviceAPI->getDeviceSetIndex());