1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-03 05:37:50 -04:00

UDP source: fixed audio port assignment in configuration message handler

This commit is contained in:
f4exb 2015-12-05 03:36:31 +01:00
parent ddd5ec5dc8
commit 70d4088fa6

View File

@ -291,6 +291,8 @@ bool UDPSrc::handleMessage(const Message& cmd)
if (cfg.getAudioPort() != m_audioPort) if (cfg.getAudioPort() != m_audioPort)
{ {
m_audioPort = cfg.getAudioPort();
disconnect(m_audioSocket, SIGNAL(readyRead()), this, SLOT(audioReadyRead())); disconnect(m_audioSocket, SIGNAL(readyRead()), this, SLOT(audioReadyRead()));
delete m_audioSocket; delete m_audioSocket;
m_audioSocket = new QUdpSocket(this); m_audioSocket = new QUdpSocket(this);