kopia lustrzana https://gitlab.com/eliggett/wfview
Remove parent from classes that are moved to a thread
rodzic
ed3ba16a8d
commit
135640df44
|
@ -112,7 +112,7 @@ bool audioHandler::init(audioSetup setup)
|
|||
|
||||
// We "hopefully" now have a valid format that is supported so try connecting
|
||||
|
||||
converter = new audioConverter(this);
|
||||
converter = new audioConverter();
|
||||
converterThread = new QThread(this);
|
||||
if (setup.isinput) {
|
||||
converterThread->setObjectName("audioConvIn()");
|
||||
|
|
|
@ -102,7 +102,7 @@ void servermain::makeRig()
|
|||
if (radio->rigThread == Q_NULLPTR)
|
||||
{
|
||||
qInfo(logSystem()) << "Creating new rigThread()";
|
||||
radio->rig = new rigCommander(radio->guid,this);
|
||||
radio->rig = new rigCommander(radio->guid);
|
||||
radio->rigThread = new QThread(this);
|
||||
radio->rigThread->setObjectName("rigCommander()");
|
||||
|
||||
|
|
|
@ -921,7 +921,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, quint
|
|||
|
||||
QUdpSocket::connect(udp, &QUdpSocket::readyRead, this, &udpAudio::dataReceived);
|
||||
|
||||
rxaudio = new audioHandler(this);
|
||||
rxaudio = new audioHandler();
|
||||
rxAudioThread = new QThread(this);
|
||||
rxAudioThread->setObjectName("rxAudio()");
|
||||
|
||||
|
@ -946,7 +946,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, quint
|
|||
pingTimer->start(PING_PERIOD); // send ping packets every 100ms
|
||||
|
||||
if (enableTx) {
|
||||
txaudio = new audioHandler(this);
|
||||
txaudio = new audioHandler();
|
||||
txAudioThread = new QThread(this);
|
||||
rxAudioThread->setObjectName("txAudio()");
|
||||
|
||||
|
|
|
@ -367,7 +367,7 @@ void udpServer::controlReceived()
|
|||
|
||||
outAudio.isinput = false;
|
||||
|
||||
radio->txaudio = new audioHandler(this);
|
||||
radio->txaudio = new audioHandler();
|
||||
radio->txAudioThread = new QThread(this);
|
||||
radio->txAudioThread->setObjectName("txAudio()");
|
||||
|
||||
|
@ -409,7 +409,7 @@ void udpServer::controlReceived()
|
|||
radio->rxAudioSetup.isinput = true;
|
||||
memcpy(radio->rxAudioSetup.guid, radio->guid, GUIDLEN);
|
||||
|
||||
radio->rxaudio = new audioHandler(this);
|
||||
radio->rxaudio = new audioHandler();
|
||||
|
||||
radio->rxAudioThread = new QThread(this);
|
||||
radio->rxAudioThread->setObjectName("rxAudio()");
|
||||
|
|
|
@ -405,7 +405,7 @@ void wfmain::makeRig()
|
|||
{
|
||||
if (rigThread == Q_NULLPTR)
|
||||
{
|
||||
rig = new rigCommander(this);
|
||||
rig = new rigCommander();
|
||||
rigThread = new QThread(this);
|
||||
rigThread->setObjectName("rigCommander()");
|
||||
|
||||
|
@ -993,7 +993,7 @@ void wfmain::setServerToPrefs()
|
|||
if (serverConfig.enabled) {
|
||||
serverConfig.lan = prefs.enableLAN;
|
||||
|
||||
udp = new udpServer(&serverConfig,this);
|
||||
udp = new udpServer(&serverConfig);
|
||||
|
||||
serverThread = new QThread(this);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue